Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
Example program to analyse track fit results from AAnet formatted data.
- Author
- mdejong
Definition in file JAAnet.cc.
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 35 of file JAAnet.cc.
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 !=
"") {
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();
115 he.Fill(log10(tb.
getE()/ta.
getE()));
120 if (router.hasModule(i->dom_id)) {
std::vector< Hit > hits
list of hits
static const int JMUONEND
end range of reconstruction stages
Auxiliary class for defining the range of iterations of objects.
JHitL0 getHit(const Hit &hit)
Get transformation.
static const JGeaneWater gWater
Function object for energy loss of muon in sea water.
void load(const JString &file_name, JDetector &detector)
Load detector from input file.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
JTrack3E getTrack(const Trk &track)
Get track.
std::string comment
use as you like
Utility class to parse command line options.
double getT(const JVector3D &pos) const
Get arrival time of Cherenkov light at given position.
static const int JMUONBEGIN
begin range of reconstruction stages
double getT() const
Get calibrated time of hit.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
counter_type getCounter() const
Get counter.
JTime & add(const JTime &value)
Addition operator.
virtual const pointer_type & next()
Get next element.
void move(const double step, const double velocity, const JGeane &geane)
Move vertex along this track with given velocity.
const Trk & get_best_reconstructed_muon(const Evt &evt)
Get best reconstructed muon.
JVersor3D getDirection(const JVector3D &pos) const
Get photon direction of Cherenkov light on PMT.
virtual bool hasNext()
Check availability of next element.
Router for direct addressing of module data in detector data structure.
double getTimeSinceRTS(const int frame_index)
Get time in ns since last RTS for a given frame index.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose class for object reading from a list of file names.
const JPosition3D & getPosition() const
Get position.
Data structure for L0 hit.
const Trk & get_muon(const Evt &evt)
Get first muon from the event tracklist.
#define DEBUG(A)
Message macros.
KM3NeT DAQ data structures and auxiliaries.
double getIntersection(const JVector3D &pos) const
Get longitudinal position along axis of position of closest approach with given position.
double getAngle(const JFirst_t &first, const JSecond_t &second)
Get space angle between objects.
double mc_t
MC: time of the mc event.
double getE() const
Get energy.
bool has_muon(const Evt &evt)
Test whether given event has a muon.