Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JTrk_t.hh
Go to the documentation of this file.
1 #ifndef __JAANET__JTRK_T__
2 #define __JAANET__JTRK_T__
3 
5 
6 
7 /**
8  * \author mdejong
9  */
10 
11 namespace JAANET {}
12 namespace JPP { using namespace JAANET; }
13 
14 namespace JAANET {
15 
16  /**
17  * Auxiliary class to set-up Trk.
18  */
19  struct JTrk_t :
20  public Trk
21  {
22  /**
23  * Constructor.
24  *
25  * \param id identifier
26  * \param type type
27  * \param origin origin
28  * \param pos position
29  * \param dir direction
30  * \param t time [ns]
31  * \param E energy [GeV]
32  */
33  JTrk_t(const int id,
34  const int type,
35  const int origin,
36  const Vec& pos,
37  const Vec& dir,
38  const double t,
39  const double E)
40  {
41  this->id = id;
42  this->type = type;
43  this->mother_id = origin;
44  this->pos = pos;
45  this->dir = dir;
46  this->t = t;
47  this->E = E;
48  }
49  };
50 }
51 
52 #endif
double t
track time [ns] (when the particle is at pos )
Definition: Trk.hh:18
Vec dir
track direction
Definition: Trk.hh:17
double E
Energy [GeV] (either MC truth or reconstructed)
Definition: Trk.hh:19
int mother_id
MC id of the parent particle.
Definition: Trk.hh:28
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Definition: Vec.hh:12
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:23
int id
track identifier
Definition: Trk.hh:15
Vec pos
postion of the track at time t [m]
Definition: Trk.hh:16
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
Definition: Trk.hh:13
Auxiliary class to set-up Trk.
Definition: JTrk_t.hh:19
JTrk_t(const int id, const int type, const int origin, const Vec &pos, const Vec &dir, const double t, const double E)
Constructor.
Definition: JTrk_t.hh:33