39 int main(
int argc,
char **argv)
49 JLimit_t& numberOfEvents = inputFile.getLimit();
55 JParser<> zap(
"Auxiliary program to store Monte Carlo true shower in format for subsequent fits.");
57 zap[
'f'] =
make_field(inputFile,
"output of JTriggerEfficiency[.sh]");
59 zap[
'n'] =
make_field(numberOfEvents) = JLimit::max();
65 catch(
const exception& error) {
66 FATAL(error.what() << endl);
83 const Evt*
event = ps;
90 if(!take_electron) fermion = find_if(event->mc_trks.begin(), event->mc_trks.end(),
is_neutrino);
91 else fermion = find_if(event->mc_trks.begin(), event->mc_trks.end(),
is_electron);
93 if (fermion != event->mc_trks.end()) {
96 double time = converter.
putTime();
103 electron_dir *= shower_elongation;
104 position.
add(electron_dir);
Recording of objects on file according a format that follows from the file name extension.
Longitudinal emission profile EM-shower.
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 main(int argc, char **argv)
ROOT TTree parameter settings of various packages.
Synchronously read DAQ events and Monte Carlo events (and optionally other events).
JTime & add(const JTime &value)
Addition operator.
double getE() const
Get energy.
Data structure for vector in three dimensions.
JVector3D & add(const JVector3D &vector)
Add vector.
Utility class to parse command line options.
double getMaximum(const double E) const
Get depth of shower maximum.
General purpose class for object reading from a list of file names.
counter_type getCounter() const
Get counter.
Auxiliary class to convert DAQ hit time to/from Monte Carlo hit time.
double putTime() const
Get Monte Carlo time minus DAQ/trigger time.
JDirection3D getDirection(const Vec &dir)
Get direction.
bool is_electron(const Trk &track)
Test whether given track is a (anti-)electron.
bool is_neutrino(const Trk &track)
Test whether given track is a neutrino.
JPosition3D getPosition(const Vec &pos)
Get position.
Vec getOffset(const JHead &header)
Get offset.
JFit getFit(const int id, const JMODEL::JString &string)
Get fit parameters of string.
static const JGeanz geanz(1.85, 0.62, 0.54)
Function object for longitudinal EM-shower profile.
const double getInverseSpeedOfLight()
Get inverse speed of light.
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.
General purpose class for multiple pointers.
Auxiliary class for defining the range of iterations of objects.
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 Vec class is a straightforward 3-d vector, which also works in pyroot.
Auxiliary include file for time conversion between DAQ/trigger hit and Monte Carlo hit.