1 #ifndef _DBCALTruthShower_
2 #define _DBCALTruthShower_
4 #include <JANA/JObject.h>
5 #include <JANA/JFactory.h>
26 void toStrings(vector<pair<string,string> > &items)
const{
27 AddString(items,
"ptype",
"%d", ptype);
28 AddString(items,
"track",
"%d",
track);
29 AddString(items,
"itrack",
"%d", itrack);
30 AddString(items,
"primary",
"%d", primary);
31 AddString(items,
"phi",
"%1.3f", phi);
32 AddString(items,
"r",
"%4.3f", r);
33 AddString(items,
"z",
"%4.1f", z);
34 AddString(items,
"t",
"%4.3f", t);
35 AddString(items,
"p",
"%4.3f",
sqrt(px*px +
py*
py + pz*pz));
36 AddString(items,
"E",
"%4.3f", E);
40 #endif // _DBCALTruthShower_
int track
This is the unique number that GEANT has assigned the particle.
int itrack
This is the index within the MCThrown structure of this track.
int ptype
This is the particle ID number.
void toStrings(vector< pair< string, string > > &items) const