ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/IPHCalignment2/analysis/TreeProducer.h
Revision: 1.4
Committed: Wed Dec 7 18:31:52 2011 UTC (13 years, 4 months ago) by cgoetzma
Content type: text/plain
Branch: MAIN
Changes since 1.3: +33 -0 lines
Log Message:
chris mod

File Contents

# Content
1 //////////////////////////////////////////////////////////
2 // This class has been automatically generated on
3 // Thu Nov 24 19:03:33 2011 by ROOT version 5.27/06b
4 // from TTree ttree_NoAlgo/ttree_NoAlgo
5 // found on file: analyzerTree.root
6 //////////////////////////////////////////////////////////
7
8 #ifndef TreeProducer_h
9 #define TreeProducer_h
10
11 #include <TROOT.h>
12 #include <TChain.h>
13 #include <TFile.h>
14
15 class TreeProducer {
16 public :
17 TTree *fChain; //!pointer to the analyzed TTree or TChain
18 Int_t fCurrent; //!current Tree number in a TChain
19
20 // Declaration of leaf types
21 Int_t nTrack;
22 Float_t Track_dxy[2]; //[nTrack]
23 Float_t Track_dxyError[2]; //[nTrack]
24 Float_t Track_dz[2]; //[nTrack]
25 Float_t Track_p[2]; //[nTrack]
26 Float_t Track_pt[2]; //[nTrack]
27 Float_t Track_px[2]; //[nTrack]
28 Float_t Track_py[2]; //[nTrack]
29 Float_t Track_pz[2]; //[nTrack]
30 Float_t Track_eta[2]; //[nTrack]
31 Float_t Track_phi[2]; //[nTrack]
32 Float_t Track_chi2[2]; //[nTrack]
33 Int_t Track_ndf[2]; //[nTrack]
34 Int_t Track_charge[2]; //[nTrack]
35 Int_t Track_nHitStrip[2]; //[nTrack]
36 Int_t Track_nHitPixel[2]; //[nTrack]
37 Int_t Track_hitIndexBegin[2]; //[nTrack]
38 Int_t Track_hitIndexEnd[2]; //[nTrack]
39
40 Float_t d0_Center;
41 Float_t d0_BS;
42 Float_t d0_PV;
43
44 //Alessio plots
45 Float_t QoverPGen[2];
46 Float_t lambdaGen[2];
47 Float_t dxyGen[2];
48 Float_t dszGen[2];
49 Float_t dxy0Gen[2];
50 Float_t dsz0Gen[2];
51
52 Float_t QoverP[2];
53 Float_t lambda[2];
54 Float_t dxy[2];
55 Float_t dsz[2];
56 Float_t dxy0[2];
57 Float_t dsz0[2];
58 //-------------
59
60 Float_t BS_X;
61 Float_t BS_Y;
62 Float_t BS_Z;
63
64 Float_t TrackGen_p[2]; //[nTrack]
65 Float_t TrackGen_pt[2]; //[nTrack]
66 Float_t TrackGen_px[2]; //[nTrack]
67 Float_t TrackGen_py[2]; //[nTrack]
68 Float_t TrackGen_pz[2]; //[nTrack]
69 Float_t TrackGen_eta[2]; //[nTrack]
70 Float_t TrackGen_phi[2]; //[nTrack]
71 Float_t TrackGen_charge[2]; //[nTrack]
72 Float_t TrackGen_deltaRreco[2]; //[nTrack]
73 Int_t nHit;
74 Float_t hitXLocalPosition[1]; //[nHit]
75 Float_t hitYLocalPosition[1]; //[nHit]
76 Float_t hitZLocalPosition[1]; //[nHit]
77 Float_t hitXLocalPositionError[1]; //[nHit]
78 Float_t hitYLocalPositionError[1]; //[nHit]
79 Float_t hitZLocalPositionError[1]; //[nHit]
80 Float_t expectedXLocalPosition[1]; //[nHit]
81 Float_t expectedYLocalPosition[1]; //[nHit]
82 Float_t expectedZLocalPosition[1]; //[nHit]
83 Float_t expectedXLocalPositionError[1]; //[nHit]
84 Float_t expectedYLocalPositionError[1]; //[nHit]
85 Float_t expectedZLocalPositionError[1]; //[nHit]
86 Float_t hitXGlobalPosition[1]; //[nHit]
87 Float_t hitYGlobalPosition[1]; //[nHit]
88 Float_t hitZGlobalPosition[1]; //[nHit]
89 Float_t hitXGlobalPositionError[1]; //[nHit]
90 Float_t hitYGlobalPositionError[1]; //[nHit]
91 Float_t hitZGlobalPositionError[1]; //[nHit]
92 Float_t expectedXGlobalPosition[1]; //[nHit]
93 Float_t expectedYGlobalPosition[1]; //[nHit]
94 Float_t expectedZGlobalPosition[1]; //[nHit]
95 Float_t expectedXGlobalPositionError[1]; //[nHit]
96 Float_t expectedYGlobalPositionError[1]; //[nHit]
97 Float_t expectedZGlobalPositionError[1]; //[nHit]
98 Int_t RunNumber;
99 Int_t EventNumber;
100
101 Int_t vtxConverged;
102 Int_t momConverged;
103 Int_t fullConverged;
104
105 // List of branches
106 TBranch *b_nTrack; //!
107 TBranch *b_Track_dxy; //!
108 TBranch *b_Track_dxyError; //!
109 TBranch *b_Track_dz; //!
110 TBranch *b_Track_p; //!
111 TBranch *b_Track_pt; //!
112 TBranch *b_Track_px; //!
113 TBranch *b_Track_py; //!
114 TBranch *b_Track_pz; //!
115 TBranch *b_Track_eta; //!
116 TBranch *b_Track_phi; //!
117 TBranch *b_Track_chi2; //!
118 TBranch *b_Track_ndf; //!
119 TBranch *b_Track_charge; //!
120 TBranch *b_Track_nHitStrip; //!
121 TBranch *b_Track_nHitPixel; //!
122 TBranch *b_Track_hitIndexBegin; //!
123 TBranch *b_Track_hitIndexEnd; //!
124
125 TBranch *b_d0_Center;
126 TBranch *b_d0_BS;
127 TBranch *b_d0_PV;
128
129 //Alessio plots
130 TBranch *b_QoverPGen[2];
131 TBranch *b_lambdaGen[2];
132 TBranch *b_dxyGen[2];
133 TBranch *b_dszGen[2];
134 TBranch *b_dxy0Gen[2];
135 TBranch *b_dsz0Gen[2];
136
137 TBranch *b_QoverP[2];
138 TBranch *b_lambda[2];
139 TBranch *b_dxy[2];
140 TBranch *b_dsz[2];
141 TBranch *b_dxy0[2];
142 TBranch *b_dsz0[2];
143 //-------------
144
145
146 TBranch *b_BS_X;
147 TBranch *b_BS_Y;
148 TBranch *b_BS_Z;
149
150 TBranch *b_TrackGen_p; //!
151 TBranch *b_TrackGen_pt; //!
152 TBranch *b_TrackGen_px; //!
153 TBranch *b_TrackGen_py; //!
154 TBranch *b_TrackGen_pz; //!
155 TBranch *b_TrackGen_eta; //!
156 TBranch *b_TrackGen_phi; //!
157 TBranch *b_TrackGen_charge; //!
158 TBranch *b_TrackGen_deltaRreco; //!
159 TBranch *b_nHit; //!
160 TBranch *b_hitXLocalPosition; //!
161 TBranch *b_hitYLocalPosition; //!
162 TBranch *b_hitZLocalPosition; //!
163 TBranch *b_hitXLocalPositionError; //!
164 TBranch *b_hitYLocalPositionError; //!
165 TBranch *b_hitZLocalPositionError; //!
166 TBranch *b_expectedXLocalPosition; //!
167 TBranch *b_expectedYLocalPosition; //!
168 TBranch *b_expectedZLocalPosition; //!
169 TBranch *b_expectedXLocalPositionError; //!
170 TBranch *b_expectedYLocalPositionError; //!
171 TBranch *b_expectedZLocalPositionError; //!
172 TBranch *b_hitXGlobalPosition; //!
173 TBranch *b_hitYGlobalPosition; //!
174 TBranch *b_hitZGlobalPosition; //!
175 TBranch *b_hitXGlobalPositionError; //!
176 TBranch *b_hitYGlobalPositionError; //!
177 TBranch *b_hitZGlobalPositionError; //!
178 TBranch *b_expectedXGlobalPosition; //!
179 TBranch *b_expectedYGlobalPosition; //!
180 TBranch *b_expectedZGlobalPosition; //!
181 TBranch *b_expectedXGlobalPositionError; //!
182 TBranch *b_expectedYGlobalPositionError; //!
183 TBranch *b_expectedZGlobalPositionError; //!
184 TBranch *b_RunNumber; //!
185 TBranch *b_EventNumber; //!
186
187 TBranch * b_vtxConverged;
188 TBranch * b_momConverged;
189 TBranch * b_fullConverged;
190
191 TreeProducer(const std::string& filename, const std::string& name);
192 ~TreeProducer();
193 Int_t Cut(Long64_t entry);
194 Int_t GetEntry(Long64_t entry);
195 Long64_t GetEntriesFast() {return fChain->GetEntriesFast();}
196 Long64_t LoadTree(Long64_t entry);
197 void Init(TTree *tree);
198 void Loop();
199 Bool_t Notify();
200 void Show(Long64_t entry = -1);
201 };
202
203 #endif