Class Reference for E1039 Core & Analysis Software
TreeData.h
Go to the documentation of this file.
1 #ifndef _MJ_TREE_DATA_H__
2 #define _MJ_TREE_DATA_H__
3 #include <TObject.h>
4 #include <TLorentzVector.h>
5 
6 
7 class MCEventData : public TObject
8 {
9  public:
11  int process_id; // 223
12  int particle_id[4]; // 2->2
13  TLorentzVector particle_mom[4];
14 
15  MCEventData();
16  virtual ~MCEventData() {;}
17 
19 };
20 
21 class EventData : public TObject
22 {
23  public:
24  int event_id;
25  int trig_bits; // trigger bits
26 
28  virtual ~EventData() {;}
29 
31 };
32 
33 class DimuonData : public TObject
34 {
35  public:
36  int dim_id;
37  int pdg_id;
38  double mass;
39  double x1;
40  double x2;
41  double xf;
44  TLorentzVector mom;
45  TLorentzVector mom_pos;
46  TLorentzVector mom_neg;
47 
49  virtual ~DimuonData() {;}
50 
52 };
53 
54 class TrackData : public TObject
55 {
56  public:
57  int track_id;
58  int charge;
59  float zvtx;
60 
62  virtual ~TrackData() {;}
63 
65 };
66 
67 class HitData : public TObject
68 {
69  public:
70  int hit_id;
71  int track_id;
74  float tdc_time;
75  bool in_time;
76 
78  virtual ~HitData() {;}
79 
81 };
82 
83 class TrackletData : public TObject
84 {
85  public:
86  int n_hits;
87  float chisq;
88  int charge;
89  int detector_id[24];
90  float detector_zpos[24];
91  float x_exp[24]; // track x
92  float y_exp[24]; // track y
93  bool in_plane[24]; // track at detector acceptance
94  int element_id_exp[24]; // expected hit element
95  int hit_id[24];
96  int track_id[24];
97  int element_id_pos[24]; // expected hit element position
98  int element_id_closest[24]; // exp, nearest, or -1
99 
100  TrackletData();
101  virtual ~TrackletData() {;}
102 
104 };
105 
106 typedef std::vector<DimuonData> DimuonList;
107 typedef std::vector<TrackData> TrackList;
108 typedef std::vector<HitData> HitList;
109 typedef std::vector<TrackletData> TrackletList;
110 #endif /* _MJ_TREE_DATA_H__ */
std::vector< HitData > HitList
Definition: TreeData.h:34
std::vector< DimuonData > DimuonList
Definition: TreeData.h:54
std::vector< TrackData > TrackList
Definition: TreeData.h:53
std::vector< TrackletData > TrackletList
Definition: TreeData.h:109
MCEventData()
Definition: TreeData.cc:4
TLorentzVector particle_mom[4]
Definition: TreeData.h:13
ClassDef(MCEventData, 1)
virtual ~MCEventData()
Definition: TreeData.h:16
int process_id
MC Event Info.
Definition: TreeData.h:11
int particle_id[4]
Definition: TreeData.h:12
int n_hits
Definition: TreeData.h:86
float x_exp[24]
Definition: TreeData.h:91
bool in_plane[24]
Definition: TreeData.h:93
int element_id_pos[24]
Definition: TreeData.h:97
float detector_zpos[24]
Definition: TreeData.h:90
int element_id_exp[24]
Definition: TreeData.h:94
ClassDef(TrackletData, 1)
int track_id[24]
Definition: TreeData.h:96
float chisq
Definition: TreeData.h:87
float y_exp[24]
Definition: TreeData.h:92
int charge
Definition: TreeData.h:88
int detector_id[24]
Definition: TreeData.h:89
int element_id_closest[24]
Definition: TreeData.h:98
virtual ~TrackletData()
Definition: TreeData.h:101
int hit_id[24]
Definition: TreeData.h:95
TLorentzVector mom_pos
Definition: TreeData.h:37
TLorentzVector mom
Definition: TreeData.h:36
int track_id_pos
Definition: TreeData.h:42
ClassDef(DimuonData, 1)
int pdg_id
Definition: TreeData.h:34
double x1
Definition: TreeData.h:41
TLorentzVector mom_neg
Definition: TreeData.h:38
virtual ~DimuonData()
Definition: TreeData.h:49
double x2
Definition: TreeData.h:42
double mass
Definition: TreeData.h:39
int dim_id
Definition: TreeData.h:36
double xf
Definition: TreeData.h:41
int track_id_neg
Definition: TreeData.h:43
int trig_bits
Definition: TreeData.h:11
int event_id
Definition: TreeData.h:10
ClassDef(EventData, 1)
virtual ~EventData()
Definition: TreeData.h:28
int hit_id
Definition: TreeData.h:70
virtual ~HitData()
Definition: TreeData.h:78
float tdc_time
Definition: TreeData.h:74
int track_id
Definition: TreeData.h:71
int detector_id
Definition: TreeData.h:72
bool in_time
Definition: TreeData.h:75
ClassDef(HitData, 1)
int element_id
Definition: TreeData.h:73
int track_id
Definition: TreeData.h:57
ClassDef(TrackData, 1)
int charge
Definition: TreeData.h:23
virtual ~TrackData()
Definition: TreeData.h:62
float zvtx
Definition: TreeData.h:59