39 using namespace KM3NETDAQ;
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 !=
"") {
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);
90 while (inputFile.hasNext()) {
92 STATUS(
"event: " << setw(10) << inputFile.getCounter() <<
'\r');
DEBUG(endl);
94 const Evt* evt = inputFile.next();
115 he.Fill(log10(tb.
getE()/ta.
getE()));
120 if (router.hasModule(i->dom_id)) {
double getT() const
Get calibrated time of hit.
Utility class to parse command line options.
const Trk & get_muon(const Evt &evt)
Get first muon from the event tracklist.
double getAngle(const JFirst_t &first, const JSecond_t &second)
Get space angle between objects.
JTrack3E getTrack(const Trk &track)
Get track.
double getIntersection(const JVector3D &pos) const
Get longitudinal position along axis of position of closest approach with given position.
Router for direct addressing of module data in detector data structure.
std::string comment
use as you like
then for HISTOGRAM in h0 h1
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
void move(const double step, const double velocity, const JGeane &geane)
Move vertex along this track with given velocity.
JVersor3D getDirection(const JVector3D &pos) const
Get photon direction of Cherenkov light on PMT.
JTime & add(const JTime &value)
Addition operator.
Auxiliary class for defining the range of iterations of objects.
double getE() const
Get energy.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
const JPosition3D & getPosition() const
Get position.
double mc_t
MC: time of the mc event.
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
double getTimeSinceRTS(const int frame_index)
Get time in ns since last RTS for a given frame index.
JRange< Double_t > JRange_t
bool has_muon(const Evt &evt)
Test whether given event has a muon.
General purpose class for object reading from a list of file names.
Data structure for L0 hit.
const JLimit & getLimit() const
Get limit.
std::vector< Hit > hits
list of hits
JHitL0 getHit(const Hit &hit)
Get transformation.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
then usage $script[input file[working directory[option]]] nWhere option can be E
#define DEBUG(A)
Message macros.