ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/IPHCalignment2/analysis/TreeProducer.h
Revision: 1.5
Committed: Thu Dec 8 10:23:04 2011 UTC (13 years, 4 months ago) by cgoetzma
Content type: text/plain
Branch: MAIN
CVS Tags: TBD2011, HEAD
Changes since 1.4: +28 -13 lines
Error occurred while calculating annotation data.
Log Message:
chris update

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 Float_t QoverP_error[2];
60 Float_t lambda_error[2];
61 Float_t dxy_error[2];
62 Float_t dsz_error[2];
63 Float_t dxy0_error[2];
64 Float_t dsz0_error[2];
65
66 //-------------
67
68 Float_t BS_X;
69 Float_t BS_Y;
70 Float_t BS_Z;
71
72 Float_t TrackGen_p[2]; //[nTrack]
73 Float_t TrackGen_pt[2]; //[nTrack]
74 Float_t TrackGen_px[2]; //[nTrack]
75 Float_t TrackGen_py[2]; //[nTrack]
76 Float_t TrackGen_pz[2]; //[nTrack]
77 Float_t TrackGen_eta[2]; //[nTrack]
78 Float_t TrackGen_phi[2]; //[nTrack]
79 Float_t TrackGen_charge[2]; //[nTrack]
80 Float_t TrackGen_deltaRreco[2]; //[nTrack]
81 Int_t nHit;
82 Float_t hitXLocalPosition[1]; //[nHit]
83 Float_t hitYLocalPosition[1]; //[nHit]
84 Float_t hitZLocalPosition[1]; //[nHit]
85 Float_t hitXLocalPositionError[1]; //[nHit]
86 Float_t hitYLocalPositionError[1]; //[nHit]
87 Float_t hitZLocalPositionError[1]; //[nHit]
88 Float_t expectedXLocalPosition[1]; //[nHit]
89 Float_t expectedYLocalPosition[1]; //[nHit]
90 Float_t expectedZLocalPosition[1]; //[nHit]
91 Float_t expectedXLocalPositionError[1]; //[nHit]
92 Float_t expectedYLocalPositionError[1]; //[nHit]
93 Float_t expectedZLocalPositionError[1]; //[nHit]
94 Float_t hitXGlobalPosition[1]; //[nHit]
95 Float_t hitYGlobalPosition[1]; //[nHit]
96 Float_t hitZGlobalPosition[1]; //[nHit]
97 Float_t hitXGlobalPositionError[1]; //[nHit]
98 Float_t hitYGlobalPositionError[1]; //[nHit]
99 Float_t hitZGlobalPositionError[1]; //[nHit]
100 Float_t expectedXGlobalPosition[1]; //[nHit]
101 Float_t expectedYGlobalPosition[1]; //[nHit]
102 Float_t expectedZGlobalPosition[1]; //[nHit]
103 Float_t expectedXGlobalPositionError[1]; //[nHit]
104 Float_t expectedYGlobalPositionError[1]; //[nHit]
105 Float_t expectedZGlobalPositionError[1]; //[nHit]
106 Int_t RunNumber;
107 Int_t EventNumber;
108
109 Int_t vtxConverged;
110 Int_t momConverged;
111 Int_t fullConverged;
112
113 // List of branches
114 TBranch *b_nTrack; //!
115 TBranch *b_Track_dxy; //!
116 TBranch *b_Track_dxyError; //!
117 TBranch *b_Track_dz; //!
118 TBranch *b_Track_p; //!
119 TBranch *b_Track_pt; //!
120 TBranch *b_Track_px; //!
121 TBranch *b_Track_py; //!
122 TBranch *b_Track_pz; //!
123 TBranch *b_Track_eta; //!
124 TBranch *b_Track_phi; //!
125 TBranch *b_Track_chi2; //!
126 TBranch *b_Track_ndf; //!
127 TBranch *b_Track_charge; //!
128 TBranch *b_Track_nHitStrip; //!
129 TBranch *b_Track_nHitPixel; //!
130 TBranch *b_Track_hitIndexBegin; //!
131 TBranch *b_Track_hitIndexEnd; //!
132
133 TBranch *b_d0_Center;
134 TBranch *b_d0_BS;
135 TBranch *b_d0_PV;
136
137 //Alessio plots
138 TBranch *b_QoverPGen;
139 TBranch *b_lambdaGen;
140 TBranch *b_dxyGen;
141 TBranch *b_dszGen;
142 TBranch *b_dxy0Gen;
143 TBranch *b_dsz0Gen;
144
145 TBranch *b_QoverP;
146 TBranch *b_lambda;
147 TBranch *b_dxy;
148 TBranch *b_dsz;
149 TBranch *b_dxy0;
150 TBranch *b_dsz0;
151
152 TBranch *b_QoverP_error;
153 TBranch *b_lambda_error;
154 TBranch *b_dxy_error;
155 TBranch *b_dsz_error;
156 TBranch *b_dxy0_error;
157 TBranch *b_dsz0_error;
158 //-------------
159
160
161 TBranch *b_BS_X;
162 TBranch *b_BS_Y;
163 TBranch *b_BS_Z;
164
165 TBranch *b_TrackGen_p; //!
166 TBranch *b_TrackGen_pt; //!
167 TBranch *b_TrackGen_px; //!
168 TBranch *b_TrackGen_py; //!
169 TBranch *b_TrackGen_pz; //!
170 TBranch *b_TrackGen_eta; //!
171 TBranch *b_TrackGen_phi; //!
172 TBranch *b_TrackGen_charge; //!
173 TBranch *b_TrackGen_deltaRreco; //!
174 TBranch *b_nHit; //!
175 TBranch *b_hitXLocalPosition; //!
176 TBranch *b_hitYLocalPosition; //!
177 TBranch *b_hitZLocalPosition; //!
178 TBranch *b_hitXLocalPositionError; //!
179 TBranch *b_hitYLocalPositionError; //!
180 TBranch *b_hitZLocalPositionError; //!
181 TBranch *b_expectedXLocalPosition; //!
182 TBranch *b_expectedYLocalPosition; //!
183 TBranch *b_expectedZLocalPosition; //!
184 TBranch *b_expectedXLocalPositionError; //!
185 TBranch *b_expectedYLocalPositionError; //!
186 TBranch *b_expectedZLocalPositionError; //!
187 TBranch *b_hitXGlobalPosition; //!
188 TBranch *b_hitYGlobalPosition; //!
189 TBranch *b_hitZGlobalPosition; //!
190 TBranch *b_hitXGlobalPositionError; //!
191 TBranch *b_hitYGlobalPositionError; //!
192 TBranch *b_hitZGlobalPositionError; //!
193 TBranch *b_expectedXGlobalPosition; //!
194 TBranch *b_expectedYGlobalPosition; //!
195 TBranch *b_expectedZGlobalPosition; //!
196 TBranch *b_expectedXGlobalPositionError; //!
197 TBranch *b_expectedYGlobalPositionError; //!
198 TBranch *b_expectedZGlobalPositionError; //!
199 TBranch *b_RunNumber; //!
200 TBranch *b_EventNumber; //!
201
202 TBranch * b_vtxConverged;
203 TBranch * b_momConverged;
204 TBranch * b_fullConverged;
205
206 TreeProducer(const std::string& filename, const std::string& name);
207 ~TreeProducer();
208 Int_t Cut(Long64_t entry);
209 Int_t GetEntry(Long64_t entry);
210 Long64_t GetEntriesFast() {return fChain->GetEntriesFast();}
211 Long64_t LoadTree(Long64_t entry);
212 void Init(TTree *tree);
213 void Loop();
214 Bool_t Notify();
215 void Show(Long64_t entry = -1);
216 };
217
218 #endif