30int main(
int argc,
char **argv)
38 JLimit& numberOfEvents = inputFile.getLimit();
45 JParser<> zap(
"Example program to histogram neutrino effective volume for triggered events."\
46 "\nFor genie/gSeaGen events, use application JEffectiveMass1D.");
51 zap[
'X'] =
make_field(logx,
"Use logarithm of energy");
57 catch(
const exception &error) {
58 FATAL(error.what() << endl);
70 const JHead buffer(head);
73 FATAL(
"Use JEffectiveMass1D" << endl);
76 const JVolume volume(head, logx);
90 const Evt*
event = ps;
95 const double E = neutrino.
E;
97 hV.Fill(volume.
getX(E), volume.
getW(hV.GetXaxis(), E));
100 WARNING(
"JVolume1D: cannot find neutrino in triggered event " << inputFile.
getCounter() );
General purpose messaging.
#define DEBUG(A)
Message macros.
Utility class to parse command line options.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
int numberOfBins
number of bins for average CDF integral of optical module
ROOT TTree parameter settings of various packages.
Synchronously read DAQ events and Monte Carlo events (and optionally other events).
int main(int argc, char **argv)
Utility class to parse command line options.
counter_type getCounter() const
Get counter.
bool is_genhen(const JHead &header)
Check for generator.
bool has_neutrino(const Evt &evt)
Test whether given event has an incoming neutrino.
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Head getHeader(const JMultipleFileScanner_t &file_list)
Get Monte Carlo header.
KM3NeT DAQ data structures and auxiliaries.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
Auxiliary class for histogramming of effective volume.
Double_t getX(const Double_t E, double constrain=false) const
Get abscissa value.
Double_t getW(TAxis *axis, const Double_t E) const
Get bin width corrected energy spectrum dependent weight.
Double_t getXmax() const
Get maximal abscissa value.
Double_t getXmin() const
Get minimal abscissa value.
General purpose class for multiple pointers.
Auxiliary class for defining the range of iterations of objects.
static counter_type max()
Get maximum counter value.
Auxiliary class to synchronously read DAQ events and Monte Carlo events (and optionally other events)...
virtual bool hasNext() override
Check availability of next element.
virtual const multi_pointer_type & next() override
Get next element.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
double E
Energy [GeV] (either MC truth or reconstructed)