Class Reference for E1039 Core & Analysis Software
TreeData.h
Go to the documentation of this file.
1 #ifndef _TREE_DATA__H_
2 #define _TREE_DATA__H_
3 #include <vector>
4 #include <TROOT.h>
5 #include <TLorentzVector.h>
6 
7 struct EventData {
8  short run_id;
9  int spill_id;
10  int event_id;
11  short fpga_bits;
12  short nim_bits;
13  short D1;
14  short D2;
15  short D3p;
16  short D3m;
17 
19  virtual ~EventData() {;}
21 };
22 
23 struct DimuonData {
24  int road_pos;
25  int road_neg;
26  bool pos_top;
27  bool pos_bot;
28  bool neg_top;
29  bool neg_bot;
30  TVector3 pos;
31  TLorentzVector mom;
32  short n_hits_pos;
33  double chisq_pos ;
37  TVector3 pos_pos ;
38  TLorentzVector mom_pos ;
39  TVector3 pos_target_pos;
40  TVector3 pos_dump_pos;
41  short n_hits_neg;
42  double chisq_neg ;
46  TVector3 pos_neg ;
47  TLorentzVector mom_neg ;
48  TVector3 pos_target_neg;
49  TVector3 pos_dump_neg;
50  TLorentzVector mom_target;
51  TLorentzVector mom_dump ;
52 
54  virtual ~DimuonData() {;}
56 };
57 
58 typedef std::vector<DimuonData> DimuonList;
59 
60 struct TrackData {
61  short charge;
62  int road;
63  short n_hits;
64  double chisq ;
65  double chisq_target;
66  double chisq_dump;
68  TVector3 pos_vtx;
69  TLorentzVector mom_vtx;
70  TVector3 pos_st1;
71  TLorentzVector mom_st1;
72  TVector3 pos_st3;
73  TLorentzVector mom_st3;
74 
76  virtual ~TrackData() {;}
78 };
79 
80 typedef std::vector<TrackData> TrackList;
81 
82 #endif // _TREE_DATA__H_
std::vector< DimuonData > DimuonList
Definition: TreeData.h:54
std::vector< TrackData > TrackList
Definition: TreeData.h:53
TLorentzVector mom_pos
Definition: TreeData.h:37
double chisq_upstream_neg
Definition: TreeData.h:45
TLorentzVector mom
Definition: TreeData.h:36
TVector3 pos_target_pos
Definition: TreeData.h:39
double chisq_dump_pos
Definition: TreeData.h:35
bool neg_bot
Definition: TreeData.h:29
double chisq_pos
Definition: TreeData.h:33
ClassDef(DimuonData, 1)
bool pos_top
Definition: TreeData.h:26
TLorentzVector mom_target
Dimuon momentum with choice = 1.
Definition: TreeData.h:50
double chisq_upstream_pos
Definition: TreeData.h:36
TLorentzVector mom_dump
Dimuon momentum with choice = 2.
Definition: TreeData.h:51
short n_hits_neg
Definition: TreeData.h:41
TLorentzVector mom_neg
Definition: TreeData.h:38
bool pos_bot
Definition: TreeData.h:27
TVector3 pos_target_neg
Definition: TreeData.h:48
virtual ~DimuonData()
Definition: TreeData.h:54
TVector3 pos_dump_neg
Definition: TreeData.h:49
double chisq_neg
Definition: TreeData.h:42
double chisq_dump_neg
Definition: TreeData.h:44
double chisq_target_neg
Definition: TreeData.h:43
TVector3 pos_dump_pos
Definition: TreeData.h:40
bool neg_top
Definition: TreeData.h:28
short n_hits_pos
Definition: TreeData.h:32
TVector3 pos
Definition: TreeData.h:35
TVector3 pos_pos
Definition: TreeData.h:37
TVector3 pos_neg
Definition: TreeData.h:46
int road_pos
Definition: TreeData.h:24
double chisq_target_pos
Definition: TreeData.h:34
int road_neg
Definition: TreeData.h:25
int spill_id
Definition: TreeData.h:9
int event_id
Definition: TreeData.h:10
ClassDef(EventData, 1)
short nim_bits
Definition: TreeData.h:12
short D1
Definition: TreeData.h:13
virtual ~EventData()
Definition: TreeData.h:19
short D2
Definition: TreeData.h:14
short fpga_bits
Definition: TreeData.h:11
short run_id
Definition: TreeData.h:8
short D3p
Definition: TreeData.h:15
short D3m
Definition: TreeData.h:16
int road
Definition: TreeData.h:62
double chisq_target
Definition: TreeData.h:65
TVector3 pos_st3
Definition: TreeData.h:72
TLorentzVector mom_st3
Definition: TreeData.h:73
ClassDef(TrackData, 1)
TVector3 pos_st1
Definition: TreeData.h:70
TVector3 pos_vtx
Definition: TreeData.h:24
double chisq
Definition: TreeData.h:64
short n_hits
Definition: TreeData.h:63
virtual ~TrackData()
Definition: TreeData.h:76
double chisq_dump
Definition: TreeData.h:66
short charge
Definition: TreeData.h:61
TLorentzVector mom_vtx
Definition: TreeData.h:25
TLorentzVector mom_st1
Definition: TreeData.h:71
double chisq_upstream
Definition: TreeData.h:67