Jpp
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->origin = origin;
44  this->pos = pos;
45  this->dir = dir;
46  this->t = t;
47  this->E = E;
48  }
49  };
50 }
51 
52 #endif
Trk::E
double E
Energy (either MC truth or reconstructed)
Definition: Trk.hh:18
Trk
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
Definition: Trk.hh:12
Trk::t
double t
track time (when the particle is at pos )
Definition: Trk.hh:17
Trk::dir
Vec dir
track direction
Definition: Trk.hh:16
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition: JAAnetToolkit.hh:37
JAANET::JTrk_t::JTrk_t
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
Trk.hh
JAANET::JTrk_t
Auxiliary class to set-up Trk.
Definition: JTrk_t.hh:19
Trk::type
int type
MC: particle type in PDG encoding.
Definition: Trk.hh:22
Trk::pos
Vec pos
postion of the track at time t
Definition: Trk.hh:15
JAANET
Extensions to AAnet data format.
Definition: JAAnetToolkit.hh:36
Trk::id
int id
track identifier
Definition: Trk.hh:14
Vec
The Vec class is a straightforward 3-d vector, which also works in pyroot.
Definition: Vec.hh:12