34 int main(
int argc,
char **argv)
42 size_t numberOfEvents;
49 JParser<> zap(
"Auxiliary program to generate particles.");
54 zap[
'D'] =
make_field(trk.dir,
"direction") =
Vec(0.0, 0.0, 1.0);
56 zap[
'T'] =
make_field(trk.type,
"particle type (PDG)");
62 catch(
const exception& error) {
63 FATAL(error.what() << endl);
91 buffer.
push(&JHead::fixedcan);
102 for (
size_t counter = 0; counter != numberOfEvents; ++counter) {
104 STATUS(
"event: " << setw(10) << counter <<
'\r');
DEBUG(endl);
Utility class to parse command line options.
int main(int argc, char *argv[])
ROOT TTree parameter settings of various packages.
Recording of objects on file according a format that follows from the file name extension.
Data structure for detector geometry and calibration.
double ycenter
y-center [m]
double xcenter
x-center [m]
The Vec class is a straightforward 3-d vector, which also works in pyroot.
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
General purpose messaging.
The Head class reflects the header of Monte-Carlo event files, which consists of keys (also referred ...
void push(T JHead::*pd)
Push given data member to Head.
static const int TRK_ST_FINALSTATE
for MC: the particle must be processed by detector simulation ('track_in' tag in evt files)...
void load(const std::string &file_name, JDetector &detector)
Load detector from input file.
Utility class to parse command line options.
void copy(const Head &from, JHead &to)
Copy header from from to to.
do set_variable DETECTOR_TXT $WORKDIR detector
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
std::vector< Trk > mc_trks
MC: list of MC truth tracks.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.
#define DEBUG(A)
Message macros.
JAANET::fixedcan fixedcan