34int main(
int argc,
char **argv)
42 size_t numberOfEvents;
49 JParser<> zap(
"Auxiliary program to generate particles.");
62 catch(
const exception& error) {
63 FATAL(error.what() << endl);
102 for (
size_t counter = 0; counter != numberOfEvents; ++counter) {
104 STATUS(
"event: " << setw(10) << counter <<
'\r');
DEBUG(endl);
Data structure for detector geometry and calibration.
Recording of objects on file according a format that follows from the file name extension.
int main(int argc, char **argv)
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
ROOT TTree parameter settings of various packages.
void push(T JHead::*pd)
Push given data member to Head.
JAANET::fixedcan fixedcan
double getRadius() const
Get radius.
double getY() const
Get y position.
double getX() const
Get x position.
double getZmin() const
Get minimal z position.
double getZmax() const
Get maximal z position.
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
double ycenter
y-center [m]
double xcenter
x-center [m]
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
int status
MC status code, see km3net-dataformat/definitions/trkmembers.csv for values.
int type
MC: particle type in PDG encoding.
double E
Energy [GeV] (either MC truth or reconstructed)
Vec pos
postion [m] of the track at time t
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Vec & normalize()
Normalise this vector.
static const int TRK_ST_FINALSTATE
for MC: the particle must be processed by detector simulation ('track_in' tag in evt files)....