11 #include "evt/Head.hh"
35 int main(
int argc,
char **argv)
44 JLimit_t& numberOfEvents = inputFile.getLimit();
52 JParser<> zap(
"Example program to analyse track fit results from AAnet formatted data.");
55 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
63 catch(
const exception& error) {
64 FATAL(error.what() << endl);
70 if (detectorFile !=
"") {
72 load(detectorFile, detector);
74 catch(
const JException& error) {
79 const JModuleRouter router(detector);
83 TH1D hx(
"hx", NULL, 100, -3.0, +2.3);
84 TH1D hd(
"hd", NULL, 100, 0.0, 10.0);
85 TH1D ht(
"ht", NULL, 100, -100.0, 100.0);
86 TH1D he(
"he", NULL, 100, -5.0, +5.0);
87 TH1D h1(
"h1", NULL, 100, -50.0, +50.0);
94 const Evt* evt = inputFile.
next();
112 hx.Fill(log10(
getAngle(ta.getDirection(), tb.getDirection())));
113 hd.Fill((ta.getPosition() - tb.getPosition()).getLength());
114 ht.Fill( ta.getT() - tb.getT());
115 he.Fill(log10(tb.getE()/ta.getE()));
120 if (router.hasModule(i->dom_id)) {
122 const JHitL0 hit =
getHit(*i, router);
124 h1.Fill(hit.getT() - tb.getT(hit.getPosition()));