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 
4 #include "evt/Trk.hh"
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
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