58int main(
int argc,
char **argv)
67 JLimit_t& numberOfEvents = inputFile.getLimit();
75 JParser<> zap(
"Example program to analyse track fit results from Evt formatted data.");
86 catch(
const exception& error) {
87 FATAL(error.what() << endl);
93 if (detectorFile !=
"") {
106 TH1D hx(
"hx", NULL, 100, -3.0, +2.3);
107 TH1D hd(
"hd", NULL, 100, 0.0, 10.0);
108 TH1D ht(
"ht", NULL, 100, -100.0, 100.0);
109 TH1D he(
"he", NULL, 100, -5.0, +5.0);
110 TH1D h1(
"h1", NULL, 100, -50.0, +50.0);
117 const Evt* evt = inputFile.
next();
138 he.Fill(log10(tb.
getE()/ta.
getE()));
141 for (vector<Hit>::const_iterator i = evt->
hits.begin(); i != evt->
hits.end(); ++i) {
145 const JHitL0 hit = getHit(*i, router);
int main(int argc, char **argv)
Data structure for detector geometry and calibration.
Basic data structure for L0 hit.
General purpose messaging.
#define DEBUG(A)
Message macros.
Scanning of objects from multiple files according a format that follows from the extension of each fi...
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
Auxiliary class to define a range between two values.
ROOT TTree parameter settings of various packages.
const JCalibration & getCalibration() const
Get calibration.
Router for direct addressing of module data in detector data structure.
bool hasModule(const JObjectID &id) const
Has module.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
const JPMT & getPMT(const int index) const
Get PMT.
Data structure for PMT geometry, calibration and status.
double getIntersection(const JVector3D &pos) const
Get longitudinal position along axis of position of closest approach with given position.
const JAxis3D & getAxis() const
Get axis.
const JPosition3D & getPosition() const
Get position.
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
JTime & add(const JTime &value)
Addition operator.
JVersor3D getDirection(const JVector3D &pos) const
Get photon direction of Cherenkov light on PMT.
void move(const double step, const double velocity, const JGeane &geane)
Move vertex along this track with given velocity.
double getE() const
Get energy.
Utility class to parse command line options.
General purpose class for object reading from a list of file names.
virtual bool hasNext() override
Check availability of next element.
counter_type getCounter() const
Get counter.
virtual const pointer_type & next() override
Get next element.
Data structure for L0 hit.
double getT() const
Get calibrated time of hit.
JTrack3E getTrack(const Trk &track)
Get track.
bool has_muon(const Evt &evt)
Test whether given event has a muon.
const Trk & get_muon(const Evt &evt)
Get first muon from the event tracklist.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
double getAngle(const JQuaternion3D &first, const JQuaternion3D &second)
Get space angle between quanternions.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
const char * getTime()
Get current local time conform ISO-8601 standard.
KM3NeT DAQ data structures and auxiliaries.
double getTimeSinceRTS(const int frame_index)
Get time in ns since last RTS for a given frame index.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
double mc_t
MC: time where the mc-event was put in the timeslice, since start of run (offset+frameidx*timeslice_d...
std::vector< Hit > hits
list of hits
int dom_id
module identifier from the data (unique in the detector).
unsigned int tdc
hit tdc (=time in ns)
unsigned int channel_id
PMT channel id {0,1, .., 30} local to moduke.
unsigned int tot
tot value as stored in raw data (int for pyroot)
Type definition of range.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
std::string comment
use as you like