StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
standardPlots.h
1 /*
2  * $Id: standardPlots.h,v 1.7 2003/09/02 18:00:00 perev Exp $
3  * A. Rose, WSU
4  *
5  *
6  * $Log: standardPlots.h,v $
7  * Revision 1.7 2003/09/02 18:00:00 perev
8  * gcc 3.2 updates + WarnOff
9  *
10  * Revision 1.6 2002/08/26 22:17:16 andrewar
11  * Added multi-file input functionality (see doRun() for examples of use). Added
12  * cut string to provided easy equivalence of cut function in on-the-fly hists.
13  *
14  * Revision 1.5 2002/08/19 19:33:20 pruneau
15  * eliminated cout when unnecessary, made helix member of the EventFiller
16  *
17  * Revision 1.4 2002/07/08 14:32:49 pruneau
18  * added efficiency plots
19  *
20  * Revision 1.3 2002/07/02 18:59:30 andrewar
21  * fixed bug with constructor
22  *
23  * Revision 1.2 2002/06/26 14:34:13 andrewar
24  * Added cut handles.
25  *
26  * Revision 1.1 2002/06/12 20:22:02 andrewar
27  * Initial commit. Template for standard evaluation plot generation.
28  * Current version includes few real plots and no cut capability.
29  *
30  */
31 
32 #ifndef standardPlots_h
33 #define standardPlots_h
34 
35 #include <Stiostream.h>
36 #include <TROOT.h>
37 #include <TChain.h>
38 #include <TFile.h>
39 #include <TProfile.h>
40  const Int_t kMaxmMcTracks = 6000;
41  const Int_t kMaxmMatchedPairs = 6000;
42  const Int_t kMaxmMergedPairs = 500;
43  const Int_t kMaxmSplitPairs = 1;
44  const Int_t kMaxmGhostPairs = 1;
45  const Int_t kMaxmContamPairs = 1;
46 
47 class TSystem;
48 
50  public :
51  TChain *fChain;
52  Int_t fCurrent;
53 //Declaration of leaves types
54  Int_t mEventId;
55  Int_t mRunId;
56  Int_t mOriginMult;
57  Int_t mCentralMult;
58  Int_t mCentrality;
59  Int_t mNUncorrectedNegativePrimaries;
60  Int_t mNUncorrectedPrimaries;
61  Int_t mMcMult;
62  Float_t mVertexX;
63  Float_t mVertexY;
64  Float_t mVertexZ;
65  Float_t mMcVertexX;
66  Float_t mMcVertexY;
67  Float_t mMcVertexZ;
68  Float_t mMagField;
69  Float_t mCTB;
70  Float_t mZDCe;
71  Float_t mZDCw;
72  Int_t mNMcTrack;
73  Int_t mNMatchedPair;
74  Int_t mNMergedPair;
75  Int_t mNSplitPair;
76  Int_t mNGhostPair;
77  Int_t mNContamPair;
78  Int_t mMcTracks_;
79  Float_t mMcTracks_mPtMc[kMaxmMcTracks]; //[mMcTracks_]
80  Float_t mMcTracks_mPzMc[kMaxmMcTracks]; //[mMcTracks_]
81  Float_t mMcTracks_mEtaMc[kMaxmMcTracks]; //[mMcTracks_]
82  Float_t mMcTracks_mPhiMc[kMaxmMcTracks]; //[mMcTracks_]
83  Short_t mMcTracks_mNHitMc[kMaxmMcTracks]; //[mMcTracks_]
84  Short_t mMcTracks_mGeantId[kMaxmMcTracks]; //[mMcTracks_]
85  Short_t mMcTracks_mChargeMc[kMaxmMcTracks]; //[mMcTracks_]
86  Float_t mMcTracks_mStopR[kMaxmMcTracks]; //[mMcTracks_]
87  Short_t mMcTracks_mNAssocGl[kMaxmMcTracks]; //[mMcTracks_]
88  Short_t mMcTracks_mNAssocPr[kMaxmMcTracks]; //[mMcTracks_]
89  UInt_t mMcTracks_fUniqueID[kMaxmMcTracks]; //[mMcTracks_]
90  UInt_t mMcTracks_fBits[kMaxmMcTracks]; //[mMcTracks_]
91  Int_t mMatchedPairs_;
92  Short_t mMatchedPairs_mNCommonHit[kMaxmMatchedPairs]; //[mMatchedPairs_]
93  UChar_t mMatchedPairs_mIsBestContam[kMaxmMatchedPairs]; //[mMatchedPairs_]
94  Float_t mMatchedPairs_mPtMc[kMaxmMatchedPairs]; //[mMatchedPairs_]
95  Float_t mMatchedPairs_mPzMc[kMaxmMatchedPairs]; //[mMatchedPairs_]
96  Float_t mMatchedPairs_mEtaMc[kMaxmMatchedPairs]; //[mMatchedPairs_]
97  Float_t mMatchedPairs_mPhiMc[kMaxmMatchedPairs]; //[mMatchedPairs_]
98  Short_t mMatchedPairs_mNHitMc[kMaxmMatchedPairs]; //[mMatchedPairs_]
99  Short_t mMatchedPairs_mGeantId[kMaxmMatchedPairs]; //[mMatchedPairs_]
100  Short_t mMatchedPairs_mChargeMc[kMaxmMatchedPairs]; //[mMatchedPairs_]
101  Float_t mMatchedPairs_mStopR[kMaxmMatchedPairs]; //[mMatchedPairs_]
102  Short_t mMatchedPairs_mNAssocGl[kMaxmMatchedPairs]; //[mMatchedPairs_]
103  Short_t mMatchedPairs_mNAssocPr[kMaxmMatchedPairs]; //[mMatchedPairs_]
104  UInt_t mMatchedPairs_fUniqueID[kMaxmMatchedPairs]; //[mMatchedPairs_]
105  UInt_t mMatchedPairs_fBits[kMaxmMatchedPairs]; //[mMatchedPairs_]
106  Float_t mMatchedPairs_mPtPr[kMaxmMatchedPairs]; //[mMatchedPairs_]
107  Float_t mMatchedPairs_mPzPr[kMaxmMatchedPairs]; //[mMatchedPairs_]
108  Float_t mMatchedPairs_mEtaPr[kMaxmMatchedPairs]; //[mMatchedPairs_]
109  Float_t mMatchedPairs_mPhiPr[kMaxmMatchedPairs]; //[mMatchedPairs_]
110  Float_t mMatchedPairs_mDcaPr[kMaxmMatchedPairs]; //[mMatchedPairs_]
111  Float_t mMatchedPairs_mDcaXYPr[kMaxmMatchedPairs]; //[mMatchedPairs_]
112  Float_t mMatchedPairs_mDcaZPr[kMaxmMatchedPairs]; //[mMatchedPairs_]
113  Float_t mMatchedPairs_mChi2Pr[kMaxmMatchedPairs]; //[mMatchedPairs_]
114  Short_t mMatchedPairs_mFlag[kMaxmMatchedPairs]; //[mMatchedPairs_]
115  Float_t mMatchedPairs_mDedx[kMaxmMatchedPairs]; //[mMatchedPairs_]
116  Float_t mMatchedPairs_mPtGl[kMaxmMatchedPairs]; //[mMatchedPairs_]
117  Float_t mMatchedPairs_mPzGl[kMaxmMatchedPairs]; //[mMatchedPairs_]
118  Float_t mMatchedPairs_mEtaGl[kMaxmMatchedPairs]; //[mMatchedPairs_]
119  Float_t mMatchedPairs_mPhiGl[kMaxmMatchedPairs]; //[mMatchedPairs_]
120  Float_t mMatchedPairs_mDcaGl[kMaxmMatchedPairs]; //[mMatchedPairs_]
121  Float_t mMatchedPairs_mDcaXYGl[kMaxmMatchedPairs]; //[mMatchedPairs_]
122  Float_t mMatchedPairs_mDcaZGl[kMaxmMatchedPairs]; //[mMatchedPairs_]
123  Float_t mMatchedPairs_mPidPion[kMaxmMatchedPairs]; //[mMatchedPairs_]
124  Float_t mMatchedPairs_mPidProton[kMaxmMatchedPairs]; //[mMatchedPairs_]
125  Float_t mMatchedPairs_mPidKaon[kMaxmMatchedPairs]; //[mMatchedPairs_]
126  Float_t mMatchedPairs_mPidElectron[kMaxmMatchedPairs]; //[mMatchedPairs_]
127  Float_t mMatchedPairs_mFirstZ[kMaxmMatchedPairs]; //[mMatchedPairs_]
128  Float_t mMatchedPairs_mLastZ[kMaxmMatchedPairs]; //[mMatchedPairs_]
129  Short_t mMatchedPairs_mFirstPadrow[kMaxmMatchedPairs]; //[mMatchedPairs_]
130  Short_t mMatchedPairs_mLastPadrow[kMaxmMatchedPairs]; //[mMatchedPairs_]
131  Short_t mMatchedPairs_mFirstFitPadrow[kMaxmMatchedPairs]; //[mMatchedPairs_]
132  Short_t mMatchedPairs_mLastFitPadrow[kMaxmMatchedPairs]; //[mMatchedPairs_]
133  Short_t mMatchedPairs_mFirstSector[kMaxmMatchedPairs]; //[mMatchedPairs_]
134  Short_t mMatchedPairs_mLastSector[kMaxmMatchedPairs]; //[mMatchedPairs_]
135  Short_t mMatchedPairs_mFitPts[kMaxmMatchedPairs]; //[mMatchedPairs_]
136  Short_t mMatchedPairs_mAllPts[kMaxmMatchedPairs]; //[mMatchedPairs_]
137  Short_t mMatchedPairs_mCharge[kMaxmMatchedPairs]; //[mMatchedPairs_]
138  Short_t mMatchedPairs_mNAssocMc[kMaxmMatchedPairs]; //[mMatchedPairs_]
139  Short_t mMatchedPairs_mNPossible[kMaxmMatchedPairs]; //[mMatchedPairs_]
140  Int_t mMergedPairs_;
141  Short_t mMergedPairs_mNCommonHit[kMaxmMergedPairs]; //[mMergedPairs_]
142  UChar_t mMergedPairs_mIsBestContam[kMaxmMergedPairs]; //[mMergedPairs_]
143  Float_t mMergedPairs_mPtMc[kMaxmMergedPairs]; //[mMergedPairs_]
144  Float_t mMergedPairs_mPzMc[kMaxmMergedPairs]; //[mMergedPairs_]
145  Float_t mMergedPairs_mEtaMc[kMaxmMergedPairs]; //[mMergedPairs_]
146  Float_t mMergedPairs_mPhiMc[kMaxmMergedPairs]; //[mMergedPairs_]
147  Short_t mMergedPairs_mNHitMc[kMaxmMergedPairs]; //[mMergedPairs_]
148  Short_t mMergedPairs_mGeantId[kMaxmMergedPairs]; //[mMergedPairs_]
149  Short_t mMergedPairs_mChargeMc[kMaxmMergedPairs]; //[mMergedPairs_]
150  Float_t mMergedPairs_mStopR[kMaxmMergedPairs]; //[mMergedPairs_]
151  Short_t mMergedPairs_mNAssocGl[kMaxmMergedPairs]; //[mMergedPairs_]
152  Short_t mMergedPairs_mNAssocPr[kMaxmMergedPairs]; //[mMergedPairs_]
153  UInt_t mMergedPairs_fUniqueID[kMaxmMergedPairs]; //[mMergedPairs_]
154  UInt_t mMergedPairs_fBits[kMaxmMergedPairs]; //[mMergedPairs_]
155  Float_t mMergedPairs_mPtPr[kMaxmMergedPairs]; //[mMergedPairs_]
156  Float_t mMergedPairs_mPzPr[kMaxmMergedPairs]; //[mMergedPairs_]
157  Float_t mMergedPairs_mEtaPr[kMaxmMergedPairs]; //[mMergedPairs_]
158  Float_t mMergedPairs_mPhiPr[kMaxmMergedPairs]; //[mMergedPairs_]
159  Float_t mMergedPairs_mDcaPr[kMaxmMergedPairs]; //[mMergedPairs_]
160  Float_t mMergedPairs_mDcaXYPr[kMaxmMergedPairs]; //[mMergedPairs_]
161  Float_t mMergedPairs_mDcaZPr[kMaxmMergedPairs]; //[mMergedPairs_]
162  Float_t mMergedPairs_mChi2Pr[kMaxmMergedPairs]; //[mMergedPairs_]
163  Short_t mMergedPairs_mFlag[kMaxmMergedPairs]; //[mMergedPairs_]
164  Float_t mMergedPairs_mDedx[kMaxmMergedPairs]; //[mMergedPairs_]
165  Float_t mMergedPairs_mPtGl[kMaxmMergedPairs]; //[mMergedPairs_]
166  Float_t mMergedPairs_mPzGl[kMaxmMergedPairs]; //[mMergedPairs_]
167  Float_t mMergedPairs_mEtaGl[kMaxmMergedPairs]; //[mMergedPairs_]
168  Float_t mMergedPairs_mPhiGl[kMaxmMergedPairs]; //[mMergedPairs_]
169  Float_t mMergedPairs_mDcaGl[kMaxmMergedPairs]; //[mMergedPairs_]
170  Float_t mMergedPairs_mDcaXYGl[kMaxmMergedPairs]; //[mMergedPairs_]
171  Float_t mMergedPairs_mDcaZGl[kMaxmMergedPairs]; //[mMergedPairs_]
172  Float_t mMergedPairs_mPidPion[kMaxmMergedPairs]; //[mMergedPairs_]
173  Float_t mMergedPairs_mPidProton[kMaxmMergedPairs]; //[mMergedPairs_]
174  Float_t mMergedPairs_mPidKaon[kMaxmMergedPairs]; //[mMergedPairs_]
175  Float_t mMergedPairs_mPidElectron[kMaxmMergedPairs]; //[mMergedPairs_]
176  Float_t mMergedPairs_mFirstZ[kMaxmMergedPairs]; //[mMergedPairs_]
177  Float_t mMergedPairs_mLastZ[kMaxmMergedPairs]; //[mMergedPairs_]
178  Short_t mMergedPairs_mFirstPadrow[kMaxmMergedPairs]; //[mMergedPairs_]
179  Short_t mMergedPairs_mLastPadrow[kMaxmMergedPairs]; //[mMergedPairs_]
180  Short_t mMergedPairs_mFirstFitPadrow[kMaxmMergedPairs]; //[mMergedPairs_]
181  Short_t mMergedPairs_mLastFitPadrow[kMaxmMergedPairs]; //[mMergedPairs_]
182  Short_t mMergedPairs_mFirstSector[kMaxmMergedPairs]; //[mMergedPairs_]
183  Short_t mMergedPairs_mLastSector[kMaxmMergedPairs]; //[mMergedPairs_]
184  Short_t mMergedPairs_mFitPts[kMaxmMergedPairs]; //[mMergedPairs_]
185  Short_t mMergedPairs_mAllPts[kMaxmMergedPairs]; //[mMergedPairs_]
186  Short_t mMergedPairs_mCharge[kMaxmMergedPairs]; //[mMergedPairs_]
187  Short_t mMergedPairs_mNAssocMc[kMaxmMergedPairs]; //[mMergedPairs_]
188  Short_t mMergedPairs_mNPossible[kMaxmMergedPairs]; //[mMergedPairs_]
189  Int_t mSplitPairs_;
190  Short_t mSplitPairs_mNCommonHit[kMaxmSplitPairs]; //[mSplitPairs_]
191  UChar_t mSplitPairs_mIsBestContam[kMaxmSplitPairs]; //[mSplitPairs_]
192  Float_t mSplitPairs_mPtMc[kMaxmSplitPairs]; //[mSplitPairs_]
193  Float_t mSplitPairs_mPzMc[kMaxmSplitPairs]; //[mSplitPairs_]
194  Float_t mSplitPairs_mEtaMc[kMaxmSplitPairs]; //[mSplitPairs_]
195  Float_t mSplitPairs_mPhiMc[kMaxmSplitPairs]; //[mSplitPairs_]
196  Short_t mSplitPairs_mNHitMc[kMaxmSplitPairs]; //[mSplitPairs_]
197  Short_t mSplitPairs_mGeantId[kMaxmSplitPairs]; //[mSplitPairs_]
198  Short_t mSplitPairs_mChargeMc[kMaxmSplitPairs]; //[mSplitPairs_]
199  Float_t mSplitPairs_mStopR[kMaxmSplitPairs]; //[mSplitPairs_]
200  Short_t mSplitPairs_mNAssocGl[kMaxmSplitPairs]; //[mSplitPairs_]
201  Short_t mSplitPairs_mNAssocPr[kMaxmSplitPairs]; //[mSplitPairs_]
202  UInt_t mSplitPairs_fUniqueID[kMaxmSplitPairs]; //[mSplitPairs_]
203  UInt_t mSplitPairs_fBits[kMaxmSplitPairs]; //[mSplitPairs_]
204  Float_t mSplitPairs_mPtPr[kMaxmSplitPairs]; //[mSplitPairs_]
205  Float_t mSplitPairs_mPzPr[kMaxmSplitPairs]; //[mSplitPairs_]
206  Float_t mSplitPairs_mEtaPr[kMaxmSplitPairs]; //[mSplitPairs_]
207  Float_t mSplitPairs_mPhiPr[kMaxmSplitPairs]; //[mSplitPairs_]
208  Float_t mSplitPairs_mDcaPr[kMaxmSplitPairs]; //[mSplitPairs_]
209  Float_t mSplitPairs_mDcaXYPr[kMaxmSplitPairs]; //[mSplitPairs_]
210  Float_t mSplitPairs_mDcaZPr[kMaxmSplitPairs]; //[mSplitPairs_]
211  Float_t mSplitPairs_mChi2Pr[kMaxmSplitPairs]; //[mSplitPairs_]
212  Short_t mSplitPairs_mFlag[kMaxmSplitPairs]; //[mSplitPairs_]
213  Float_t mSplitPairs_mDedx[kMaxmSplitPairs]; //[mSplitPairs_]
214  Float_t mSplitPairs_mPtGl[kMaxmSplitPairs]; //[mSplitPairs_]
215  Float_t mSplitPairs_mPzGl[kMaxmSplitPairs]; //[mSplitPairs_]
216  Float_t mSplitPairs_mEtaGl[kMaxmSplitPairs]; //[mSplitPairs_]
217  Float_t mSplitPairs_mPhiGl[kMaxmSplitPairs]; //[mSplitPairs_]
218  Float_t mSplitPairs_mDcaGl[kMaxmSplitPairs]; //[mSplitPairs_]
219  Float_t mSplitPairs_mDcaXYGl[kMaxmSplitPairs]; //[mSplitPairs_]
220  Float_t mSplitPairs_mDcaZGl[kMaxmSplitPairs]; //[mSplitPairs_]
221  Float_t mSplitPairs_mPidPion[kMaxmSplitPairs]; //[mSplitPairs_]
222  Float_t mSplitPairs_mPidProton[kMaxmSplitPairs]; //[mSplitPairs_]
223  Float_t mSplitPairs_mPidKaon[kMaxmSplitPairs]; //[mSplitPairs_]
224  Float_t mSplitPairs_mPidElectron[kMaxmSplitPairs]; //[mSplitPairs_]
225  Float_t mSplitPairs_mFirstZ[kMaxmSplitPairs]; //[mSplitPairs_]
226  Float_t mSplitPairs_mLastZ[kMaxmSplitPairs]; //[mSplitPairs_]
227  Short_t mSplitPairs_mFirstPadrow[kMaxmSplitPairs]; //[mSplitPairs_]
228  Short_t mSplitPairs_mLastPadrow[kMaxmSplitPairs]; //[mSplitPairs_]
229  Short_t mSplitPairs_mFirstFitPadrow[kMaxmSplitPairs]; //[mSplitPairs_]
230  Short_t mSplitPairs_mLastFitPadrow[kMaxmSplitPairs]; //[mSplitPairs_]
231  Short_t mSplitPairs_mFirstSector[kMaxmSplitPairs]; //[mSplitPairs_]
232  Short_t mSplitPairs_mLastSector[kMaxmSplitPairs]; //[mSplitPairs_]
233  Short_t mSplitPairs_mFitPts[kMaxmSplitPairs]; //[mSplitPairs_]
234  Short_t mSplitPairs_mAllPts[kMaxmSplitPairs]; //[mSplitPairs_]
235  Short_t mSplitPairs_mCharge[kMaxmSplitPairs]; //[mSplitPairs_]
236  Short_t mSplitPairs_mNAssocMc[kMaxmSplitPairs]; //[mSplitPairs_]
237  Short_t mSplitPairs_mNPossible[kMaxmSplitPairs]; //[mSplitPairs_]
238  Int_t mGhostPairs_;
239  Short_t mGhostPairs_mNCommonHit[kMaxmGhostPairs]; //[mGhostPairs_]
240  UChar_t mGhostPairs_mIsBestContam[kMaxmGhostPairs]; //[mGhostPairs_]
241  Float_t mGhostPairs_mPtMc[kMaxmGhostPairs]; //[mGhostPairs_]
242  Float_t mGhostPairs_mPzMc[kMaxmGhostPairs]; //[mGhostPairs_]
243  Float_t mGhostPairs_mEtaMc[kMaxmGhostPairs]; //[mGhostPairs_]
244  Float_t mGhostPairs_mPhiMc[kMaxmGhostPairs]; //[mGhostPairs_]
245  Short_t mGhostPairs_mNHitMc[kMaxmGhostPairs]; //[mGhostPairs_]
246  Short_t mGhostPairs_mGeantId[kMaxmGhostPairs]; //[mGhostPairs_]
247  Short_t mGhostPairs_mChargeMc[kMaxmGhostPairs]; //[mGhostPairs_]
248  Float_t mGhostPairs_mStopR[kMaxmGhostPairs]; //[mGhostPairs_]
249  Short_t mGhostPairs_mNAssocGl[kMaxmGhostPairs]; //[mGhostPairs_]
250  Short_t mGhostPairs_mNAssocPr[kMaxmGhostPairs]; //[mGhostPairs_]
251  UInt_t mGhostPairs_fUniqueID[kMaxmGhostPairs]; //[mGhostPairs_]
252  UInt_t mGhostPairs_fBits[kMaxmGhostPairs]; //[mGhostPairs_]
253  Float_t mGhostPairs_mPtPr[kMaxmGhostPairs]; //[mGhostPairs_]
254  Float_t mGhostPairs_mPzPr[kMaxmGhostPairs]; //[mGhostPairs_]
255  Float_t mGhostPairs_mEtaPr[kMaxmGhostPairs]; //[mGhostPairs_]
256  Float_t mGhostPairs_mPhiPr[kMaxmGhostPairs]; //[mGhostPairs_]
257  Float_t mGhostPairs_mDcaPr[kMaxmGhostPairs]; //[mGhostPairs_]
258  Float_t mGhostPairs_mDcaXYPr[kMaxmGhostPairs]; //[mGhostPairs_]
259  Float_t mGhostPairs_mDcaZPr[kMaxmGhostPairs]; //[mGhostPairs_]
260  Float_t mGhostPairs_mChi2Pr[kMaxmGhostPairs]; //[mGhostPairs_]
261  Short_t mGhostPairs_mFlag[kMaxmGhostPairs]; //[mGhostPairs_]
262  Float_t mGhostPairs_mDedx[kMaxmGhostPairs]; //[mGhostPairs_]
263  Float_t mGhostPairs_mPtGl[kMaxmGhostPairs]; //[mGhostPairs_]
264  Float_t mGhostPairs_mPzGl[kMaxmGhostPairs]; //[mGhostPairs_]
265  Float_t mGhostPairs_mEtaGl[kMaxmGhostPairs]; //[mGhostPairs_]
266  Float_t mGhostPairs_mPhiGl[kMaxmGhostPairs]; //[mGhostPairs_]
267  Float_t mGhostPairs_mDcaGl[kMaxmGhostPairs]; //[mGhostPairs_]
268  Float_t mGhostPairs_mDcaXYGl[kMaxmGhostPairs]; //[mGhostPairs_]
269  Float_t mGhostPairs_mDcaZGl[kMaxmGhostPairs]; //[mGhostPairs_]
270  Float_t mGhostPairs_mPidPion[kMaxmGhostPairs]; //[mGhostPairs_]
271  Float_t mGhostPairs_mPidProton[kMaxmGhostPairs]; //[mGhostPairs_]
272  Float_t mGhostPairs_mPidKaon[kMaxmGhostPairs]; //[mGhostPairs_]
273  Float_t mGhostPairs_mPidElectron[kMaxmGhostPairs]; //[mGhostPairs_]
274  Float_t mGhostPairs_mFirstZ[kMaxmGhostPairs]; //[mGhostPairs_]
275  Float_t mGhostPairs_mLastZ[kMaxmGhostPairs]; //[mGhostPairs_]
276  Short_t mGhostPairs_mFirstPadrow[kMaxmGhostPairs]; //[mGhostPairs_]
277  Short_t mGhostPairs_mLastPadrow[kMaxmGhostPairs]; //[mGhostPairs_]
278  Short_t mGhostPairs_mFirstFitPadrow[kMaxmGhostPairs]; //[mGhostPairs_]
279  Short_t mGhostPairs_mLastFitPadrow[kMaxmGhostPairs]; //[mGhostPairs_]
280  Short_t mGhostPairs_mFirstSector[kMaxmGhostPairs]; //[mGhostPairs_]
281  Short_t mGhostPairs_mLastSector[kMaxmGhostPairs]; //[mGhostPairs_]
282  Short_t mGhostPairs_mFitPts[kMaxmGhostPairs]; //[mGhostPairs_]
283  Short_t mGhostPairs_mAllPts[kMaxmGhostPairs]; //[mGhostPairs_]
284  Short_t mGhostPairs_mCharge[kMaxmGhostPairs]; //[mGhostPairs_]
285  Short_t mGhostPairs_mNAssocMc[kMaxmGhostPairs]; //[mGhostPairs_]
286  Short_t mGhostPairs_mNPossible[kMaxmGhostPairs]; //[mGhostPairs_]
287  Int_t mContamPairs_;
288  Int_t mContamPairs_mParentGeantId[kMaxmContamPairs]; //[mContamPairs_]
289  Int_t mContamPairs_mGeantProcess[kMaxmContamPairs]; //[mContamPairs_]
290  Float_t mContamPairs_mPtMcParent[kMaxmContamPairs]; //[mContamPairs_]
291  Float_t mContamPairs_mEtaMcParent[kMaxmContamPairs]; //[mContamPairs_]
292  Int_t mContamPairs_mParentParentGeantId[kMaxmContamPairs]; //[mContamPairs_]
293  Float_t mContamPairs_mPtMcParentParent[kMaxmContamPairs]; //[mContamPairs_]
294  Float_t mContamPairs_mStartX[kMaxmContamPairs]; //[mContamPairs_]
295  Float_t mContamPairs_mStartY[kMaxmContamPairs]; //[mContamPairs_]
296  Float_t mContamPairs_mStartZ[kMaxmContamPairs]; //[mContamPairs_]
297  Short_t mContamPairs_mNCommonHit[kMaxmContamPairs]; //[mContamPairs_]
298  UChar_t mContamPairs_mIsBestContam[kMaxmContamPairs]; //[mContamPairs_]
299  Float_t mContamPairs_mPtMc[kMaxmContamPairs]; //[mContamPairs_]
300  Float_t mContamPairs_mPzMc[kMaxmContamPairs]; //[mContamPairs_]
301  Float_t mContamPairs_mEtaMc[kMaxmContamPairs]; //[mContamPairs_]
302  Float_t mContamPairs_mPhiMc[kMaxmContamPairs]; //[mContamPairs_]
303  Short_t mContamPairs_mNHitMc[kMaxmContamPairs]; //[mContamPairs_]
304  Short_t mContamPairs_mGeantId[kMaxmContamPairs]; //[mContamPairs_]
305  Short_t mContamPairs_mChargeMc[kMaxmContamPairs]; //[mContamPairs_]
306  Float_t mContamPairs_mStopR[kMaxmContamPairs]; //[mContamPairs_]
307  Short_t mContamPairs_mNAssocGl[kMaxmContamPairs]; //[mContamPairs_]
308  Short_t mContamPairs_mNAssocPr[kMaxmContamPairs]; //[mContamPairs_]
309  UInt_t mContamPairs_fUniqueID[kMaxmContamPairs]; //[mContamPairs_]
310  UInt_t mContamPairs_fBits[kMaxmContamPairs]; //[mContamPairs_]
311  Float_t mContamPairs_mPtPr[kMaxmContamPairs]; //[mContamPairs_]
312  Float_t mContamPairs_mPzPr[kMaxmContamPairs]; //[mContamPairs_]
313  Float_t mContamPairs_mEtaPr[kMaxmContamPairs]; //[mContamPairs_]
314  Float_t mContamPairs_mPhiPr[kMaxmContamPairs]; //[mContamPairs_]
315  Float_t mContamPairs_mDcaPr[kMaxmContamPairs]; //[mContamPairs_]
316  Float_t mContamPairs_mDcaXYPr[kMaxmContamPairs]; //[mContamPairs_]
317  Float_t mContamPairs_mDcaZPr[kMaxmContamPairs]; //[mContamPairs_]
318  Float_t mContamPairs_mChi2Pr[kMaxmContamPairs]; //[mContamPairs_]
319  Short_t mContamPairs_mFlag[kMaxmContamPairs]; //[mContamPairs_]
320  Float_t mContamPairs_mDedx[kMaxmContamPairs]; //[mContamPairs_]
321  Float_t mContamPairs_mPtGl[kMaxmContamPairs]; //[mContamPairs_]
322  Float_t mContamPairs_mPzGl[kMaxmContamPairs]; //[mContamPairs_]
323  Float_t mContamPairs_mEtaGl[kMaxmContamPairs]; //[mContamPairs_]
324  Float_t mContamPairs_mPhiGl[kMaxmContamPairs]; //[mContamPairs_]
325  Float_t mContamPairs_mDcaGl[kMaxmContamPairs]; //[mContamPairs_]
326  Float_t mContamPairs_mDcaXYGl[kMaxmContamPairs]; //[mContamPairs_]
327  Float_t mContamPairs_mDcaZGl[kMaxmContamPairs]; //[mContamPairs_]
328  Float_t mContamPairs_mPidPion[kMaxmContamPairs]; //[mContamPairs_]
329  Float_t mContamPairs_mPidProton[kMaxmContamPairs]; //[mContamPairs_]
330  Float_t mContamPairs_mPidKaon[kMaxmContamPairs]; //[mContamPairs_]
331  Float_t mContamPairs_mPidElectron[kMaxmContamPairs]; //[mContamPairs_]
332  Float_t mContamPairs_mFirstZ[kMaxmContamPairs]; //[mContamPairs_]
333  Float_t mContamPairs_mLastZ[kMaxmContamPairs]; //[mContamPairs_]
334  Short_t mContamPairs_mFirstPadrow[kMaxmContamPairs]; //[mContamPairs_]
335  Short_t mContamPairs_mLastPadrow[kMaxmContamPairs]; //[mContamPairs_]
336  Short_t mContamPairs_mFirstFitPadrow[kMaxmContamPairs]; //[mContamPairs_]
337  Short_t mContamPairs_mLastFitPadrow[kMaxmContamPairs]; //[mContamPairs_]
338  Short_t mContamPairs_mFirstSector[kMaxmContamPairs]; //[mContamPairs_]
339  Short_t mContamPairs_mLastSector[kMaxmContamPairs]; //[mContamPairs_]
340  Short_t mContamPairs_mFitPts[kMaxmContamPairs]; //[mContamPairs_]
341  Short_t mContamPairs_mAllPts[kMaxmContamPairs]; //[mContamPairs_]
342  Short_t mContamPairs_mCharge[kMaxmContamPairs]; //[mContamPairs_]
343  Short_t mContamPairs_mNAssocMc[kMaxmContamPairs]; //[mContamPairs_]
344  Short_t mContamPairs_mNPossible[kMaxmContamPairs]; //[mContamPairs_]
345  UInt_t fUniqueID;
346  UInt_t fBits;
347 
348 //List of branches
349  TBranch *b_mEventId;
350  TBranch *b_mRunId;
351  TBranch *b_mOriginMult;
352  TBranch *b_mCentralMult;
353  TBranch *b_mCentrality;
354  TBranch *b_mNUncorrectedNegativePrimaries;
355  TBranch *b_mNUncorrectedPrimaries;
356  TBranch *b_mMcMult;
357  TBranch *b_mVertexX;
358  TBranch *b_mVertexY;
359  TBranch *b_mVertexZ;
360  TBranch *b_mMcVertexX;
361  TBranch *b_mMcVertexY;
362  TBranch *b_mMcVertexZ;
363  TBranch *b_mMagField;
364  TBranch *b_mCTB;
365  TBranch *b_mZDCe;
366  TBranch *b_mZDCw;
367  TBranch *b_mNMcTrack;
368  TBranch *b_mNMatchedPair;
369  TBranch *b_mNMergedPair;
370  TBranch *b_mNSplitPair;
371  TBranch *b_mNGhostPair;
372  TBranch *b_mNContamPair;
373  TBranch *b_mMcTracks_;
374  TBranch *b_mMcTracks_mPtMc;
375  TBranch *b_mMcTracks_mPzMc;
376  TBranch *b_mMcTracks_mEtaMc;
377  TBranch *b_mMcTracks_mPhiMc;
378  TBranch *b_mMcTracks_mNHitMc;
379  TBranch *b_mMcTracks_mGeantId;
380  TBranch *b_mMcTracks_mChargeMc;
381  TBranch *b_mMcTracks_mStopR;
382  TBranch *b_mMcTracks_mNAssocGl;
383  TBranch *b_mMcTracks_mNAssocPr;
384  TBranch *b_mMcTracks_fUniqueID;
385  TBranch *b_mMcTracks_fBits;
386  TBranch *b_mMatchedPairs_;
387  TBranch *b_mMatchedPairs_mNCommonHit;
388  TBranch *b_mMatchedPairs_mIsBestContam;
389  TBranch *b_mMatchedPairs_mPtMc;
390  TBranch *b_mMatchedPairs_mPzMc;
391  TBranch *b_mMatchedPairs_mEtaMc;
392  TBranch *b_mMatchedPairs_mPhiMc;
393  TBranch *b_mMatchedPairs_mNHitMc;
394  TBranch *b_mMatchedPairs_mGeantId;
395  TBranch *b_mMatchedPairs_mChargeMc;
396  TBranch *b_mMatchedPairs_mStopR;
397  TBranch *b_mMatchedPairs_mNAssocGl;
398  TBranch *b_mMatchedPairs_mNAssocPr;
399  TBranch *b_mMatchedPairs_fUniqueID;
400  TBranch *b_mMatchedPairs_fBits;
401  TBranch *b_mMatchedPairs_mPtPr;
402  TBranch *b_mMatchedPairs_mPzPr;
403  TBranch *b_mMatchedPairs_mEtaPr;
404  TBranch *b_mMatchedPairs_mPhiPr;
405  TBranch *b_mMatchedPairs_mDcaPr;
406  TBranch *b_mMatchedPairs_mDcaXYPr;
407  TBranch *b_mMatchedPairs_mDcaZPr;
408  TBranch *b_mMatchedPairs_mChi2Pr;
409  TBranch *b_mMatchedPairs_mFlag;
410  TBranch *b_mMatchedPairs_mDedx;
411  TBranch *b_mMatchedPairs_mPtGl;
412  TBranch *b_mMatchedPairs_mPzGl;
413  TBranch *b_mMatchedPairs_mEtaGl;
414  TBranch *b_mMatchedPairs_mPhiGl;
415  TBranch *b_mMatchedPairs_mDcaGl;
416  TBranch *b_mMatchedPairs_mDcaXYGl;
417  TBranch *b_mMatchedPairs_mDcaZGl;
418  TBranch *b_mMatchedPairs_mPidPion;
419  TBranch *b_mMatchedPairs_mPidProton;
420  TBranch *b_mMatchedPairs_mPidKaon;
421  TBranch *b_mMatchedPairs_mPidElectron;
422  TBranch *b_mMatchedPairs_mFirstZ;
423  TBranch *b_mMatchedPairs_mLastZ;
424  TBranch *b_mMatchedPairs_mFirstPadrow;
425  TBranch *b_mMatchedPairs_mLastPadrow;
426  TBranch *b_mMatchedPairs_mFirstFitPadrow;
427  TBranch *b_mMatchedPairs_mLastFitPadrow;
428  TBranch *b_mMatchedPairs_mFirstSector;
429  TBranch *b_mMatchedPairs_mLastSector;
430  TBranch *b_mMatchedPairs_mFitPts;
431  TBranch *b_mMatchedPairs_mAllPts;
432  TBranch *b_mMatchedPairs_mCharge;
433  TBranch *b_mMatchedPairs_mNAssocMc;
434  TBranch *b_mMatchedPairs_mNPossible;
435  TBranch *b_mMergedPairs_;
436  TBranch *b_mMergedPairs_mNCommonHit;
437  TBranch *b_mMergedPairs_mIsBestContam;
438  TBranch *b_mMergedPairs_mPtMc;
439  TBranch *b_mMergedPairs_mPzMc;
440  TBranch *b_mMergedPairs_mEtaMc;
441  TBranch *b_mMergedPairs_mPhiMc;
442  TBranch *b_mMergedPairs_mNHitMc;
443  TBranch *b_mMergedPairs_mGeantId;
444  TBranch *b_mMergedPairs_mChargeMc;
445  TBranch *b_mMergedPairs_mStopR;
446  TBranch *b_mMergedPairs_mNAssocGl;
447  TBranch *b_mMergedPairs_mNAssocPr;
448  TBranch *b_mMergedPairs_fUniqueID;
449  TBranch *b_mMergedPairs_fBits;
450  TBranch *b_mMergedPairs_mPtPr;
451  TBranch *b_mMergedPairs_mPzPr;
452  TBranch *b_mMergedPairs_mEtaPr;
453  TBranch *b_mMergedPairs_mPhiPr;
454  TBranch *b_mMergedPairs_mDcaPr;
455  TBranch *b_mMergedPairs_mDcaXYPr;
456  TBranch *b_mMergedPairs_mDcaZPr;
457  TBranch *b_mMergedPairs_mChi2Pr;
458  TBranch *b_mMergedPairs_mFlag;
459  TBranch *b_mMergedPairs_mDedx;
460  TBranch *b_mMergedPairs_mPtGl;
461  TBranch *b_mMergedPairs_mPzGl;
462  TBranch *b_mMergedPairs_mEtaGl;
463  TBranch *b_mMergedPairs_mPhiGl;
464  TBranch *b_mMergedPairs_mDcaGl;
465  TBranch *b_mMergedPairs_mDcaXYGl;
466  TBranch *b_mMergedPairs_mDcaZGl;
467  TBranch *b_mMergedPairs_mPidPion;
468  TBranch *b_mMergedPairs_mPidProton;
469  TBranch *b_mMergedPairs_mPidKaon;
470  TBranch *b_mMergedPairs_mPidElectron;
471  TBranch *b_mMergedPairs_mFirstZ;
472  TBranch *b_mMergedPairs_mLastZ;
473  TBranch *b_mMergedPairs_mFirstPadrow;
474  TBranch *b_mMergedPairs_mLastPadrow;
475  TBranch *b_mMergedPairs_mFirstFitPadrow;
476  TBranch *b_mMergedPairs_mLastFitPadrow;
477  TBranch *b_mMergedPairs_mFirstSector;
478  TBranch *b_mMergedPairs_mLastSector;
479  TBranch *b_mMergedPairs_mFitPts;
480  TBranch *b_mMergedPairs_mAllPts;
481  TBranch *b_mMergedPairs_mCharge;
482  TBranch *b_mMergedPairs_mNAssocMc;
483  TBranch *b_mMergedPairs_mNPossible;
484  TBranch *b_mSplitPairs_;
485  TBranch *b_mSplitPairs_mNCommonHit;
486  TBranch *b_mSplitPairs_mIsBestContam;
487  TBranch *b_mSplitPairs_mPtMc;
488  TBranch *b_mSplitPairs_mPzMc;
489  TBranch *b_mSplitPairs_mEtaMc;
490  TBranch *b_mSplitPairs_mPhiMc;
491  TBranch *b_mSplitPairs_mNHitMc;
492  TBranch *b_mSplitPairs_mGeantId;
493  TBranch *b_mSplitPairs_mChargeMc;
494  TBranch *b_mSplitPairs_mStopR;
495  TBranch *b_mSplitPairs_mNAssocGl;
496  TBranch *b_mSplitPairs_mNAssocPr;
497  TBranch *b_mSplitPairs_fUniqueID;
498  TBranch *b_mSplitPairs_fBits;
499  TBranch *b_mSplitPairs_mPtPr;
500  TBranch *b_mSplitPairs_mPzPr;
501  TBranch *b_mSplitPairs_mEtaPr;
502  TBranch *b_mSplitPairs_mPhiPr;
503  TBranch *b_mSplitPairs_mDcaPr;
504  TBranch *b_mSplitPairs_mDcaXYPr;
505  TBranch *b_mSplitPairs_mDcaZPr;
506  TBranch *b_mSplitPairs_mChi2Pr;
507  TBranch *b_mSplitPairs_mFlag;
508  TBranch *b_mSplitPairs_mDedx;
509  TBranch *b_mSplitPairs_mPtGl;
510  TBranch *b_mSplitPairs_mPzGl;
511  TBranch *b_mSplitPairs_mEtaGl;
512  TBranch *b_mSplitPairs_mPhiGl;
513  TBranch *b_mSplitPairs_mDcaGl;
514  TBranch *b_mSplitPairs_mDcaXYGl;
515  TBranch *b_mSplitPairs_mDcaZGl;
516  TBranch *b_mSplitPairs_mPidPion;
517  TBranch *b_mSplitPairs_mPidProton;
518  TBranch *b_mSplitPairs_mPidKaon;
519  TBranch *b_mSplitPairs_mPidElectron;
520  TBranch *b_mSplitPairs_mFirstZ;
521  TBranch *b_mSplitPairs_mLastZ;
522  TBranch *b_mSplitPairs_mFirstPadrow;
523  TBranch *b_mSplitPairs_mLastPadrow;
524  TBranch *b_mSplitPairs_mFirstFitPadrow;
525  TBranch *b_mSplitPairs_mLastFitPadrow;
526  TBranch *b_mSplitPairs_mFirstSector;
527  TBranch *b_mSplitPairs_mLastSector;
528  TBranch *b_mSplitPairs_mFitPts;
529  TBranch *b_mSplitPairs_mAllPts;
530  TBranch *b_mSplitPairs_mCharge;
531  TBranch *b_mSplitPairs_mNAssocMc;
532  TBranch *b_mSplitPairs_mNPossible;
533  TBranch *b_mGhostPairs_;
534  TBranch *b_mGhostPairs_mNCommonHit;
535  TBranch *b_mGhostPairs_mIsBestContam;
536  TBranch *b_mGhostPairs_mPtMc;
537  TBranch *b_mGhostPairs_mPzMc;
538  TBranch *b_mGhostPairs_mEtaMc;
539  TBranch *b_mGhostPairs_mPhiMc;
540  TBranch *b_mGhostPairs_mNHitMc;
541  TBranch *b_mGhostPairs_mGeantId;
542  TBranch *b_mGhostPairs_mChargeMc;
543  TBranch *b_mGhostPairs_mStopR;
544  TBranch *b_mGhostPairs_mNAssocGl;
545  TBranch *b_mGhostPairs_mNAssocPr;
546  TBranch *b_mGhostPairs_fUniqueID;
547  TBranch *b_mGhostPairs_fBits;
548  TBranch *b_mGhostPairs_mPtPr;
549  TBranch *b_mGhostPairs_mPzPr;
550  TBranch *b_mGhostPairs_mEtaPr;
551  TBranch *b_mGhostPairs_mPhiPr;
552  TBranch *b_mGhostPairs_mDcaPr;
553  TBranch *b_mGhostPairs_mDcaXYPr;
554  TBranch *b_mGhostPairs_mDcaZPr;
555  TBranch *b_mGhostPairs_mChi2Pr;
556  TBranch *b_mGhostPairs_mFlag;
557  TBranch *b_mGhostPairs_mDedx;
558  TBranch *b_mGhostPairs_mPtGl;
559  TBranch *b_mGhostPairs_mPzGl;
560  TBranch *b_mGhostPairs_mEtaGl;
561  TBranch *b_mGhostPairs_mPhiGl;
562  TBranch *b_mGhostPairs_mDcaGl;
563  TBranch *b_mGhostPairs_mDcaXYGl;
564  TBranch *b_mGhostPairs_mDcaZGl;
565  TBranch *b_mGhostPairs_mPidPion;
566  TBranch *b_mGhostPairs_mPidProton;
567  TBranch *b_mGhostPairs_mPidKaon;
568  TBranch *b_mGhostPairs_mPidElectron;
569  TBranch *b_mGhostPairs_mFirstZ;
570  TBranch *b_mGhostPairs_mLastZ;
571  TBranch *b_mGhostPairs_mFirstPadrow;
572  TBranch *b_mGhostPairs_mLastPadrow;
573  TBranch *b_mGhostPairs_mFirstFitPadrow;
574  TBranch *b_mGhostPairs_mLastFitPadrow;
575  TBranch *b_mGhostPairs_mFirstSector;
576  TBranch *b_mGhostPairs_mLastSector;
577  TBranch *b_mGhostPairs_mFitPts;
578  TBranch *b_mGhostPairs_mAllPts;
579  TBranch *b_mGhostPairs_mCharge;
580  TBranch *b_mGhostPairs_mNAssocMc;
581  TBranch *b_mGhostPairs_mNPossible;
582  TBranch *b_mContamPairs_;
583  TBranch *b_mContamPairs_mParentGeantId;
584  TBranch *b_mContamPairs_mGeantProcess;
585  TBranch *b_mContamPairs_mPtMcParent;
586  TBranch *b_mContamPairs_mEtaMcParent;
587  TBranch *b_mContamPairs_mParentParentGeantId;
588  TBranch *b_mContamPairs_mPtMcParentParent;
589  TBranch *b_mContamPairs_mStartX;
590  TBranch *b_mContamPairs_mStartY;
591  TBranch *b_mContamPairs_mStartZ;
592  TBranch *b_mContamPairs_mNCommonHit;
593  TBranch *b_mContamPairs_mIsBestContam;
594  TBranch *b_mContamPairs_mPtMc;
595  TBranch *b_mContamPairs_mPzMc;
596  TBranch *b_mContamPairs_mEtaMc;
597  TBranch *b_mContamPairs_mPhiMc;
598  TBranch *b_mContamPairs_mNHitMc;
599  TBranch *b_mContamPairs_mGeantId;
600  TBranch *b_mContamPairs_mChargeMc;
601  TBranch *b_mContamPairs_mStopR;
602  TBranch *b_mContamPairs_mNAssocGl;
603  TBranch *b_mContamPairs_mNAssocPr;
604  TBranch *b_mContamPairs_fUniqueID;
605  TBranch *b_mContamPairs_fBits;
606  TBranch *b_mContamPairs_mPtPr;
607  TBranch *b_mContamPairs_mPzPr;
608  TBranch *b_mContamPairs_mEtaPr;
609  TBranch *b_mContamPairs_mPhiPr;
610  TBranch *b_mContamPairs_mDcaPr;
611  TBranch *b_mContamPairs_mDcaXYPr;
612  TBranch *b_mContamPairs_mDcaZPr;
613  TBranch *b_mContamPairs_mChi2Pr;
614  TBranch *b_mContamPairs_mFlag;
615  TBranch *b_mContamPairs_mDedx;
616  TBranch *b_mContamPairs_mPtGl;
617  TBranch *b_mContamPairs_mPzGl;
618  TBranch *b_mContamPairs_mEtaGl;
619  TBranch *b_mContamPairs_mPhiGl;
620  TBranch *b_mContamPairs_mDcaGl;
621  TBranch *b_mContamPairs_mDcaXYGl;
622  TBranch *b_mContamPairs_mDcaZGl;
623  TBranch *b_mContamPairs_mPidPion;
624  TBranch *b_mContamPairs_mPidProton;
625  TBranch *b_mContamPairs_mPidKaon;
626  TBranch *b_mContamPairs_mPidElectron;
627  TBranch *b_mContamPairs_mFirstZ;
628  TBranch *b_mContamPairs_mLastZ;
629  TBranch *b_mContamPairs_mFirstPadrow;
630  TBranch *b_mContamPairs_mLastPadrow;
631  TBranch *b_mContamPairs_mFirstFitPadrow;
632  TBranch *b_mContamPairs_mLastFitPadrow;
633  TBranch *b_mContamPairs_mFirstSector;
634  TBranch *b_mContamPairs_mLastSector;
635  TBranch *b_mContamPairs_mFitPts;
636  TBranch *b_mContamPairs_mAllPts;
637  TBranch *b_mContamPairs_mCharge;
638  TBranch *b_mContamPairs_mNAssocMc;
639  TBranch *b_mContamPairs_mNPossible;
640  TBranch *b_fUniqueID;
641  TBranch *b_fBits;
642 
643  standardPlots(TSystem* mSystem,
644  char* path="/star/data22/ITTF/EvalData/MCNtuple/",
645  char* file="*evts.minimc.root");
646 
647  ~standardPlots();
648 
649  //cut arrays
650  float multCut[2];
651  float zCut[2];
652  float ptCut[2];
653  float etaCut[2];
654  float nHitCut[2];
655  float nHitACut[2];
656  float dca[2];
657  float geantId;
658  float primary;
659  float global;
660  char rcTrackCutString[300];
661  char mcTrackCutString[300];
662 
663  Int_t iEntry;
664  Int_t nentries;
665  Int_t nbytes;
666  Int_t nb;
667 
668  Int_t GetEntry(Int_t entry);
669  Int_t LoadTree(Int_t entry);
670  void Init(TChain *tree);
671  void InitHists();
672  void Loop();
673  Bool_t Notify();
674  void Show(Int_t entry = -1);
675 
676  void SetEventCutMult(float low, float high)
677  {multCut[0]=low;multCut[1]=high;
678  makeRcTrackCutString();makeMcTrackCutString();};
679  void SetEventCutZ(float low, float high)
680  {zCut[0]=low;zCut[1]=high;
681  makeRcTrackCutString();makeMcTrackCutString();};
682  Int_t Cut(Int_t entry);
683 
684  void SetTrackCutPt(float low, float high)
685  {ptCut[0]=low;ptCut[1]=high;
686  makeRcTrackCutString();makeMcTrackCutString();};
687  void SetTrackCutEta(float low, float high)
688  {etaCut[0]=low;etaCut[1]=high;
689  makeRcTrackCutString();makeMcTrackCutString();};
690  void SetTrackCutNHit(float low, float high)
691  {nHitCut[0]=low;nHitCut[1]=high;
692  makeRcTrackCutString();makeMcTrackCutString();};
693  void SetTrackCutNAHit(float low, float high)
694  {nHitACut[0]=low;nHitACut[1]=high;
695  makeRcTrackCutString();makeMcTrackCutString();};
696  void SetTrackCutDca(float low, float high)
697  {dca[0]=low;dca[1]=high;
698  makeRcTrackCutString();makeMcTrackCutString();};
699  void SetTrackCutId(int Id)
700  {geantId=Id;
701  makeRcTrackCutString();makeMcTrackCutString();};
702 
703  int trackCut(int entry, int track);
704  int mcTrackCut(int entry, int track);
705  void showCuts();
706  void makeMcTrackCutString();
707  void makeRcTrackCutString();
708 
709 
710  //functions to make plots
711  void makeTrackEffPlots(int nEvents);
712  void makeMomentumPlots();
713  void makeHitEffPlots();
714  void makeFitPointsPlots();
715  void makeGeantIdPlots();
716 
717  //hist pointers
718 
719  TProfile* primaryTrackEff;
720  TH1D* primaryTrackEffEta;
721  TH1D* primaryTrackEffPt;
722  TProfile* primaryTrackEffMult;
723 
724  TH1D* primaryTrackPt;
725  TH1D* primaryTrackEta;
726  TH1D* mcTrackEffPt;
727  TH1D* mcTrackEffEta;
728 
729  TProfile *hitEffMult;
730  TProfile *hitEffPt;
731  TProfile *hitEffEta;
732  TH1D *hitN;
733  TH1D *lastHit;
734  TH1D *firstHit;
735  TProfile *lastHitPt;
736  TProfile *firstHitPt;
737  TProfile *lastHitEta;
738  TProfile *firstHitEta;
739 
740  TH1D* fitPointsPlot;
741  TH1D* fitPointsUsed;
742  TH1D* fitPointsPossible;
743  TProfile *fitPointsPt;
744  TProfile *fitPointsEta;
745 
746  TH1D* mGeantIdPlot;
747 
748 };
749 
750 #endif
751 
752 #ifdef standardPlots_cxx
753 standardPlots::standardPlots(TSystem *mSystem,char* path, char* file)
754 {
755  //TTree *dummy=0;
756  //standardPlots(dummy, infile);
757 
758  //TSystem *mSystem = new TSystem("mSystem","Current Sys");
759 
760  //make file list from provided path
761  const char *fileListQQ[]={0,0};
762  if (strncmp(path,"GC",2)==0) {
763  //fileListQQ=0;
764  } else if (path[0]=='-') {
765  fileListQQ[0]=file;
766  } else if (!file[0]) {
767  fileListQQ[0]=path;
768  } else {
769  fileListQQ[0] = mSystem->ConcatFileName(path,file);
770  }
771 
772  //open files and add to chain
773  int iList=0;
774  TChain *tree = new TChain("StMiniMcTree");
775  while(fileListQQ[iList])
776  {
777  cout <<"Adding file " <<fileListQQ[iList]<<endl;
778  tree->Add(fileListQQ[iList]);
779  iList++;
780  }
781 
782  Init(tree);
783  InitHists();
784  cout<<"Total Files: "<<iList<<endl;
785  cout <<"Total Entries: "<<tree->GetEntries()<<endl;
786 
787 
788 // standardPlots::standardPlots(TTree *tree, char* infile) */
789 // { */
790 // // if parameter tree is not specified (or zero), connect the file */
791 // // used to generate this class and read the Tree. */
792 // if (tree == 0) { */
793 // TFile *f = (TFile*)gROOT->GetListOfFiles()->FindObject(infile); */
794 // if (!f) { */
795 // f = new TFile(infile); */
796 // } */
797 // tree = (TTree*)gDirectory->Get("StMiniMcTree"); */
798 
799 // } */
800 // Init(tree); */
801 
802 
803  //set inital cuts
804  SetTrackCutPt(0.,20.);
805  SetTrackCutEta(-1.5,1.5);
806  SetTrackCutNHit(25.,55.);
807  SetTrackCutNAHit(10.,55.);
808  SetTrackCutDca(0.,20.);
809  SetTrackCutId(8);
810  SetEventCutMult(0.,10000.);
811  SetEventCutZ(-30.,30.);
812 }
813 
814 standardPlots::~standardPlots()
815 {
816  if (!fChain) return;
817  delete fChain->GetCurrentFile();
818 }
819 
820 Int_t standardPlots::GetEntry(Int_t entry)
821 {
822 // Read contents of entry.
823  if (!fChain) return 0;
824  return fChain->GetEntry(entry);
825 }
826 
827 Int_t standardPlots::LoadTree(Int_t entry)
828 {
829 // Set the environment to read one entry
830  if (!fChain) return -5;
831  Int_t centry = fChain->LoadTree(entry);
832  if (centry < 0) return centry;
833  if (fChain->IsA() != TChain::Class()) return centry;
834  TChain *chain = (TChain*)fChain;
835  if (chain->GetTreeNumber() != fCurrent) {
836  fCurrent = chain->GetTreeNumber();
837  Notify();
838  }
839  return centry;
840 }
841 
842 void standardPlots::Init(TChain *tree)
843 {
844 // Set branch addresses
845  if (tree == 0) return;
846  fChain = tree;
847  fCurrent = -1;
848  fChain->SetMakeClass(1);
849 
850  fChain->SetBranchAddress("mEventId",&mEventId);
851  fChain->SetBranchAddress("mRunId",&mRunId);
852  fChain->SetBranchAddress("mOriginMult",&mOriginMult);
853  fChain->SetBranchAddress("mCentralMult",&mCentralMult);
854  fChain->SetBranchAddress("mCentrality",&mCentrality);
855  fChain->SetBranchAddress("mNUncorrectedNegativePrimaries",&mNUncorrectedNegativePrimaries);
856  fChain->SetBranchAddress("mNUncorrectedPrimaries",&mNUncorrectedPrimaries);
857  fChain->SetBranchAddress("mMcMult",&mMcMult);
858  fChain->SetBranchAddress("mVertexX",&mVertexX);
859  fChain->SetBranchAddress("mVertexY",&mVertexY);
860  fChain->SetBranchAddress("mVertexZ",&mVertexZ);
861  fChain->SetBranchAddress("mMcVertexX",&mMcVertexX);
862  fChain->SetBranchAddress("mMcVertexY",&mMcVertexY);
863  fChain->SetBranchAddress("mMcVertexZ",&mMcVertexZ);
864  fChain->SetBranchAddress("mMagField",&mMagField);
865  fChain->SetBranchAddress("mCTB",&mCTB);
866  fChain->SetBranchAddress("mZDCe",&mZDCe);
867  fChain->SetBranchAddress("mZDCw",&mZDCw);
868  fChain->SetBranchAddress("mNMcTrack",&mNMcTrack);
869  fChain->SetBranchAddress("mNMatchedPair",&mNMatchedPair);
870  fChain->SetBranchAddress("mNMergedPair",&mNMergedPair);
871  fChain->SetBranchAddress("mNSplitPair",&mNSplitPair);
872  fChain->SetBranchAddress("mNGhostPair",&mNGhostPair);
873  fChain->SetBranchAddress("mNContamPair",&mNContamPair);
874  fChain->SetBranchAddress("mMcTracks_",&mMcTracks_);
875  fChain->SetBranchAddress("mMcTracks.mPtMc",mMcTracks_mPtMc);
876  fChain->SetBranchAddress("mMcTracks.mPzMc",mMcTracks_mPzMc);
877  fChain->SetBranchAddress("mMcTracks.mEtaMc",mMcTracks_mEtaMc);
878  fChain->SetBranchAddress("mMcTracks.mPhiMc",mMcTracks_mPhiMc);
879  fChain->SetBranchAddress("mMcTracks.mNHitMc",mMcTracks_mNHitMc);
880  fChain->SetBranchAddress("mMcTracks.mGeantId",mMcTracks_mGeantId);
881  fChain->SetBranchAddress("mMcTracks.mChargeMc",mMcTracks_mChargeMc);
882  fChain->SetBranchAddress("mMcTracks.mStopR",mMcTracks_mStopR);
883  fChain->SetBranchAddress("mMcTracks.mNAssocGl",mMcTracks_mNAssocGl);
884  fChain->SetBranchAddress("mMcTracks.mNAssocPr",mMcTracks_mNAssocPr);
885  fChain->SetBranchAddress("mMcTracks.fUniqueID",mMcTracks_fUniqueID);
886  fChain->SetBranchAddress("mMcTracks.fBits",mMcTracks_fBits);
887  fChain->SetBranchAddress("mMatchedPairs_",&mMatchedPairs_);
888  fChain->SetBranchAddress("mMatchedPairs.mNCommonHit",mMatchedPairs_mNCommonHit);
889  fChain->SetBranchAddress("mMatchedPairs.mIsBestContam",mMatchedPairs_mIsBestContam);
890  fChain->SetBranchAddress("mMatchedPairs.mPtMc",mMatchedPairs_mPtMc);
891  fChain->SetBranchAddress("mMatchedPairs.mPzMc",mMatchedPairs_mPzMc);
892  fChain->SetBranchAddress("mMatchedPairs.mEtaMc",mMatchedPairs_mEtaMc);
893  fChain->SetBranchAddress("mMatchedPairs.mPhiMc",mMatchedPairs_mPhiMc);
894  fChain->SetBranchAddress("mMatchedPairs.mNHitMc",mMatchedPairs_mNHitMc);
895  fChain->SetBranchAddress("mMatchedPairs.mGeantId",mMatchedPairs_mGeantId);
896  fChain->SetBranchAddress("mMatchedPairs.mChargeMc",mMatchedPairs_mChargeMc);
897  fChain->SetBranchAddress("mMatchedPairs.mStopR",mMatchedPairs_mStopR);
898  fChain->SetBranchAddress("mMatchedPairs.mNAssocGl",mMatchedPairs_mNAssocGl);
899  fChain->SetBranchAddress("mMatchedPairs.mNAssocPr",mMatchedPairs_mNAssocPr);
900  fChain->SetBranchAddress("mMatchedPairs.fUniqueID",mMatchedPairs_fUniqueID);
901  fChain->SetBranchAddress("mMatchedPairs.fBits",mMatchedPairs_fBits);
902  fChain->SetBranchAddress("mMatchedPairs.mPtPr",mMatchedPairs_mPtPr);
903  fChain->SetBranchAddress("mMatchedPairs.mPzPr",mMatchedPairs_mPzPr);
904  fChain->SetBranchAddress("mMatchedPairs.mEtaPr",mMatchedPairs_mEtaPr);
905  fChain->SetBranchAddress("mMatchedPairs.mPhiPr",mMatchedPairs_mPhiPr);
906  fChain->SetBranchAddress("mMatchedPairs.mDcaPr",mMatchedPairs_mDcaPr);
907  fChain->SetBranchAddress("mMatchedPairs.mDcaXYPr",mMatchedPairs_mDcaXYPr);
908  fChain->SetBranchAddress("mMatchedPairs.mDcaZPr",mMatchedPairs_mDcaZPr);
909  fChain->SetBranchAddress("mMatchedPairs.mChi2Pr",mMatchedPairs_mChi2Pr);
910  fChain->SetBranchAddress("mMatchedPairs.mFlag",mMatchedPairs_mFlag);
911  fChain->SetBranchAddress("mMatchedPairs.mDedx",mMatchedPairs_mDedx);
912  fChain->SetBranchAddress("mMatchedPairs.mPtGl",mMatchedPairs_mPtGl);
913  fChain->SetBranchAddress("mMatchedPairs.mPzGl",mMatchedPairs_mPzGl);
914  fChain->SetBranchAddress("mMatchedPairs.mEtaGl",mMatchedPairs_mEtaGl);
915  fChain->SetBranchAddress("mMatchedPairs.mPhiGl",mMatchedPairs_mPhiGl);
916  fChain->SetBranchAddress("mMatchedPairs.mDcaGl",mMatchedPairs_mDcaGl);
917  fChain->SetBranchAddress("mMatchedPairs.mDcaXYGl",mMatchedPairs_mDcaXYGl);
918  fChain->SetBranchAddress("mMatchedPairs.mDcaZGl",mMatchedPairs_mDcaZGl);
919  fChain->SetBranchAddress("mMatchedPairs.mPidPion",mMatchedPairs_mPidPion);
920  fChain->SetBranchAddress("mMatchedPairs.mPidProton",mMatchedPairs_mPidProton);
921  fChain->SetBranchAddress("mMatchedPairs.mPidKaon",mMatchedPairs_mPidKaon);
922  fChain->SetBranchAddress("mMatchedPairs.mPidElectron",mMatchedPairs_mPidElectron);
923  fChain->SetBranchAddress("mMatchedPairs.mFirstZ",mMatchedPairs_mFirstZ);
924  fChain->SetBranchAddress("mMatchedPairs.mLastZ",mMatchedPairs_mLastZ);
925  fChain->SetBranchAddress("mMatchedPairs.mFirstPadrow",mMatchedPairs_mFirstPadrow);
926  fChain->SetBranchAddress("mMatchedPairs.mLastPadrow",mMatchedPairs_mLastPadrow);
927  fChain->SetBranchAddress("mMatchedPairs.mFirstFitPadrow",mMatchedPairs_mFirstFitPadrow);
928  fChain->SetBranchAddress("mMatchedPairs.mLastFitPadrow",mMatchedPairs_mLastFitPadrow);
929  fChain->SetBranchAddress("mMatchedPairs.mFirstSector",mMatchedPairs_mFirstSector);
930  fChain->SetBranchAddress("mMatchedPairs.mLastSector",mMatchedPairs_mLastSector);
931  fChain->SetBranchAddress("mMatchedPairs.mFitPts",mMatchedPairs_mFitPts);
932  fChain->SetBranchAddress("mMatchedPairs.mAllPts",mMatchedPairs_mAllPts);
933  fChain->SetBranchAddress("mMatchedPairs.mCharge",mMatchedPairs_mCharge);
934  fChain->SetBranchAddress("mMatchedPairs.mNAssocMc",mMatchedPairs_mNAssocMc);
935  fChain->SetBranchAddress("mMatchedPairs.mNPossible",mMatchedPairs_mNPossible);
936  fChain->SetBranchAddress("mMergedPairs_",&mMergedPairs_);
937  fChain->SetBranchAddress("mMergedPairs.mNCommonHit",mMergedPairs_mNCommonHit);
938  fChain->SetBranchAddress("mMergedPairs.mIsBestContam",mMergedPairs_mIsBestContam);
939  fChain->SetBranchAddress("mMergedPairs.mPtMc",mMergedPairs_mPtMc);
940  fChain->SetBranchAddress("mMergedPairs.mPzMc",mMergedPairs_mPzMc);
941  fChain->SetBranchAddress("mMergedPairs.mEtaMc",mMergedPairs_mEtaMc);
942  fChain->SetBranchAddress("mMergedPairs.mPhiMc",mMergedPairs_mPhiMc);
943  fChain->SetBranchAddress("mMergedPairs.mNHitMc",mMergedPairs_mNHitMc);
944  fChain->SetBranchAddress("mMergedPairs.mGeantId",mMergedPairs_mGeantId);
945  fChain->SetBranchAddress("mMergedPairs.mChargeMc",mMergedPairs_mChargeMc);
946  fChain->SetBranchAddress("mMergedPairs.mStopR",mMergedPairs_mStopR);
947  fChain->SetBranchAddress("mMergedPairs.mNAssocGl",mMergedPairs_mNAssocGl);
948  fChain->SetBranchAddress("mMergedPairs.mNAssocPr",mMergedPairs_mNAssocPr);
949  fChain->SetBranchAddress("mMergedPairs.fUniqueID",mMergedPairs_fUniqueID);
950  fChain->SetBranchAddress("mMergedPairs.fBits",mMergedPairs_fBits);
951  fChain->SetBranchAddress("mMergedPairs.mPtPr",mMergedPairs_mPtPr);
952  fChain->SetBranchAddress("mMergedPairs.mPzPr",mMergedPairs_mPzPr);
953  fChain->SetBranchAddress("mMergedPairs.mEtaPr",mMergedPairs_mEtaPr);
954  fChain->SetBranchAddress("mMergedPairs.mPhiPr",mMergedPairs_mPhiPr);
955  fChain->SetBranchAddress("mMergedPairs.mDcaPr",mMergedPairs_mDcaPr);
956  fChain->SetBranchAddress("mMergedPairs.mDcaXYPr",mMergedPairs_mDcaXYPr);
957  fChain->SetBranchAddress("mMergedPairs.mDcaZPr",mMergedPairs_mDcaZPr);
958  fChain->SetBranchAddress("mMergedPairs.mChi2Pr",mMergedPairs_mChi2Pr);
959  fChain->SetBranchAddress("mMergedPairs.mFlag",mMergedPairs_mFlag);
960  fChain->SetBranchAddress("mMergedPairs.mDedx",mMergedPairs_mDedx);
961  fChain->SetBranchAddress("mMergedPairs.mPtGl",mMergedPairs_mPtGl);
962  fChain->SetBranchAddress("mMergedPairs.mPzGl",mMergedPairs_mPzGl);
963  fChain->SetBranchAddress("mMergedPairs.mEtaGl",mMergedPairs_mEtaGl);
964  fChain->SetBranchAddress("mMergedPairs.mPhiGl",mMergedPairs_mPhiGl);
965  fChain->SetBranchAddress("mMergedPairs.mDcaGl",mMergedPairs_mDcaGl);
966  fChain->SetBranchAddress("mMergedPairs.mDcaXYGl",mMergedPairs_mDcaXYGl);
967  fChain->SetBranchAddress("mMergedPairs.mDcaZGl",mMergedPairs_mDcaZGl);
968  fChain->SetBranchAddress("mMergedPairs.mPidPion",mMergedPairs_mPidPion);
969  fChain->SetBranchAddress("mMergedPairs.mPidProton",mMergedPairs_mPidProton);
970  fChain->SetBranchAddress("mMergedPairs.mPidKaon",mMergedPairs_mPidKaon);
971  fChain->SetBranchAddress("mMergedPairs.mPidElectron",mMergedPairs_mPidElectron);
972  fChain->SetBranchAddress("mMergedPairs.mFirstZ",mMergedPairs_mFirstZ);
973  fChain->SetBranchAddress("mMergedPairs.mLastZ",mMergedPairs_mLastZ);
974  fChain->SetBranchAddress("mMergedPairs.mFirstPadrow",mMergedPairs_mFirstPadrow);
975  fChain->SetBranchAddress("mMergedPairs.mLastPadrow",mMergedPairs_mLastPadrow);
976  fChain->SetBranchAddress("mMergedPairs.mFirstFitPadrow",mMergedPairs_mFirstFitPadrow);
977  fChain->SetBranchAddress("mMergedPairs.mLastFitPadrow",mMergedPairs_mLastFitPadrow);
978  fChain->SetBranchAddress("mMergedPairs.mFirstSector",mMergedPairs_mFirstSector);
979  fChain->SetBranchAddress("mMergedPairs.mLastSector",mMergedPairs_mLastSector);
980  fChain->SetBranchAddress("mMergedPairs.mFitPts",mMergedPairs_mFitPts);
981  fChain->SetBranchAddress("mMergedPairs.mAllPts",mMergedPairs_mAllPts);
982  fChain->SetBranchAddress("mMergedPairs.mCharge",mMergedPairs_mCharge);
983  fChain->SetBranchAddress("mMergedPairs.mNAssocMc",mMergedPairs_mNAssocMc);
984  fChain->SetBranchAddress("mMergedPairs.mNPossible",mMergedPairs_mNPossible);
985  fChain->SetBranchAddress("mSplitPairs_",&mSplitPairs_);
986  fChain->SetBranchAddress("mSplitPairs.mNCommonHit",&mSplitPairs_mNCommonHit);
987  fChain->SetBranchAddress("mSplitPairs.mIsBestContam",&mSplitPairs_mIsBestContam);
988  fChain->SetBranchAddress("mSplitPairs.mPtMc",&mSplitPairs_mPtMc);
989  fChain->SetBranchAddress("mSplitPairs.mPzMc",&mSplitPairs_mPzMc);
990  fChain->SetBranchAddress("mSplitPairs.mEtaMc",&mSplitPairs_mEtaMc);
991  fChain->SetBranchAddress("mSplitPairs.mPhiMc",&mSplitPairs_mPhiMc);
992  fChain->SetBranchAddress("mSplitPairs.mNHitMc",&mSplitPairs_mNHitMc);
993  fChain->SetBranchAddress("mSplitPairs.mGeantId",&mSplitPairs_mGeantId);
994  fChain->SetBranchAddress("mSplitPairs.mChargeMc",&mSplitPairs_mChargeMc);
995  fChain->SetBranchAddress("mSplitPairs.mStopR",&mSplitPairs_mStopR);
996  fChain->SetBranchAddress("mSplitPairs.mNAssocGl",&mSplitPairs_mNAssocGl);
997  fChain->SetBranchAddress("mSplitPairs.mNAssocPr",&mSplitPairs_mNAssocPr);
998  fChain->SetBranchAddress("mSplitPairs.fUniqueID",&mSplitPairs_fUniqueID);
999  fChain->SetBranchAddress("mSplitPairs.fBits",&mSplitPairs_fBits);
1000  fChain->SetBranchAddress("mSplitPairs.mPtPr",&mSplitPairs_mPtPr);
1001  fChain->SetBranchAddress("mSplitPairs.mPzPr",&mSplitPairs_mPzPr);
1002  fChain->SetBranchAddress("mSplitPairs.mEtaPr",&mSplitPairs_mEtaPr);
1003  fChain->SetBranchAddress("mSplitPairs.mPhiPr",&mSplitPairs_mPhiPr);
1004  fChain->SetBranchAddress("mSplitPairs.mDcaPr",&mSplitPairs_mDcaPr);
1005  fChain->SetBranchAddress("mSplitPairs.mDcaXYPr",&mSplitPairs_mDcaXYPr);
1006  fChain->SetBranchAddress("mSplitPairs.mDcaZPr",&mSplitPairs_mDcaZPr);
1007  fChain->SetBranchAddress("mSplitPairs.mChi2Pr",&mSplitPairs_mChi2Pr);
1008  fChain->SetBranchAddress("mSplitPairs.mFlag",&mSplitPairs_mFlag);
1009  fChain->SetBranchAddress("mSplitPairs.mDedx",&mSplitPairs_mDedx);
1010  fChain->SetBranchAddress("mSplitPairs.mPtGl",&mSplitPairs_mPtGl);
1011  fChain->SetBranchAddress("mSplitPairs.mPzGl",&mSplitPairs_mPzGl);
1012  fChain->SetBranchAddress("mSplitPairs.mEtaGl",&mSplitPairs_mEtaGl);
1013  fChain->SetBranchAddress("mSplitPairs.mPhiGl",&mSplitPairs_mPhiGl);
1014  fChain->SetBranchAddress("mSplitPairs.mDcaGl",&mSplitPairs_mDcaGl);
1015  fChain->SetBranchAddress("mSplitPairs.mDcaXYGl",&mSplitPairs_mDcaXYGl);
1016  fChain->SetBranchAddress("mSplitPairs.mDcaZGl",&mSplitPairs_mDcaZGl);
1017  fChain->SetBranchAddress("mSplitPairs.mPidPion",&mSplitPairs_mPidPion);
1018  fChain->SetBranchAddress("mSplitPairs.mPidProton",&mSplitPairs_mPidProton);
1019  fChain->SetBranchAddress("mSplitPairs.mPidKaon",&mSplitPairs_mPidKaon);
1020  fChain->SetBranchAddress("mSplitPairs.mPidElectron",&mSplitPairs_mPidElectron);
1021  fChain->SetBranchAddress("mSplitPairs.mFirstZ",&mSplitPairs_mFirstZ);
1022  fChain->SetBranchAddress("mSplitPairs.mLastZ",&mSplitPairs_mLastZ);
1023  fChain->SetBranchAddress("mSplitPairs.mFirstPadrow",&mSplitPairs_mFirstPadrow);
1024  fChain->SetBranchAddress("mSplitPairs.mLastPadrow",&mSplitPairs_mLastPadrow);
1025  fChain->SetBranchAddress("mSplitPairs.mFirstFitPadrow",&mSplitPairs_mFirstFitPadrow);
1026  fChain->SetBranchAddress("mSplitPairs.mLastFitPadrow",&mSplitPairs_mLastFitPadrow);
1027  fChain->SetBranchAddress("mSplitPairs.mFirstSector",&mSplitPairs_mFirstSector);
1028  fChain->SetBranchAddress("mSplitPairs.mLastSector",&mSplitPairs_mLastSector);
1029  fChain->SetBranchAddress("mSplitPairs.mFitPts",&mSplitPairs_mFitPts);
1030  fChain->SetBranchAddress("mSplitPairs.mAllPts",&mSplitPairs_mAllPts);
1031  fChain->SetBranchAddress("mSplitPairs.mCharge",&mSplitPairs_mCharge);
1032  fChain->SetBranchAddress("mSplitPairs.mNAssocMc",&mSplitPairs_mNAssocMc);
1033  fChain->SetBranchAddress("mSplitPairs.mNPossible",&mSplitPairs_mNPossible);
1034  fChain->SetBranchAddress("mGhostPairs_",&mGhostPairs_);
1035  fChain->SetBranchAddress("mGhostPairs.mNCommonHit",&mGhostPairs_mNCommonHit);
1036  fChain->SetBranchAddress("mGhostPairs.mIsBestContam",&mGhostPairs_mIsBestContam);
1037  fChain->SetBranchAddress("mGhostPairs.mPtMc",&mGhostPairs_mPtMc);
1038  fChain->SetBranchAddress("mGhostPairs.mPzMc",&mGhostPairs_mPzMc);
1039  fChain->SetBranchAddress("mGhostPairs.mEtaMc",&mGhostPairs_mEtaMc);
1040  fChain->SetBranchAddress("mGhostPairs.mPhiMc",&mGhostPairs_mPhiMc);
1041  fChain->SetBranchAddress("mGhostPairs.mNHitMc",&mGhostPairs_mNHitMc);
1042  fChain->SetBranchAddress("mGhostPairs.mGeantId",&mGhostPairs_mGeantId);
1043  fChain->SetBranchAddress("mGhostPairs.mChargeMc",&mGhostPairs_mChargeMc);
1044  fChain->SetBranchAddress("mGhostPairs.mStopR",&mGhostPairs_mStopR);
1045  fChain->SetBranchAddress("mGhostPairs.mNAssocGl",&mGhostPairs_mNAssocGl);
1046  fChain->SetBranchAddress("mGhostPairs.mNAssocPr",&mGhostPairs_mNAssocPr);
1047  fChain->SetBranchAddress("mGhostPairs.fUniqueID",&mGhostPairs_fUniqueID);
1048  fChain->SetBranchAddress("mGhostPairs.fBits",&mGhostPairs_fBits);
1049  fChain->SetBranchAddress("mGhostPairs.mPtPr",&mGhostPairs_mPtPr);
1050  fChain->SetBranchAddress("mGhostPairs.mPzPr",&mGhostPairs_mPzPr);
1051  fChain->SetBranchAddress("mGhostPairs.mEtaPr",&mGhostPairs_mEtaPr);
1052  fChain->SetBranchAddress("mGhostPairs.mPhiPr",&mGhostPairs_mPhiPr);
1053  fChain->SetBranchAddress("mGhostPairs.mDcaPr",&mGhostPairs_mDcaPr);
1054  fChain->SetBranchAddress("mGhostPairs.mDcaXYPr",&mGhostPairs_mDcaXYPr);
1055  fChain->SetBranchAddress("mGhostPairs.mDcaZPr",&mGhostPairs_mDcaZPr);
1056  fChain->SetBranchAddress("mGhostPairs.mChi2Pr",&mGhostPairs_mChi2Pr);
1057  fChain->SetBranchAddress("mGhostPairs.mFlag",&mGhostPairs_mFlag);
1058  fChain->SetBranchAddress("mGhostPairs.mDedx",&mGhostPairs_mDedx);
1059  fChain->SetBranchAddress("mGhostPairs.mPtGl",&mGhostPairs_mPtGl);
1060  fChain->SetBranchAddress("mGhostPairs.mPzGl",&mGhostPairs_mPzGl);
1061  fChain->SetBranchAddress("mGhostPairs.mEtaGl",&mGhostPairs_mEtaGl);
1062  fChain->SetBranchAddress("mGhostPairs.mPhiGl",&mGhostPairs_mPhiGl);
1063  fChain->SetBranchAddress("mGhostPairs.mDcaGl",&mGhostPairs_mDcaGl);
1064  fChain->SetBranchAddress("mGhostPairs.mDcaXYGl",&mGhostPairs_mDcaXYGl);
1065  fChain->SetBranchAddress("mGhostPairs.mDcaZGl",&mGhostPairs_mDcaZGl);
1066  fChain->SetBranchAddress("mGhostPairs.mPidPion",&mGhostPairs_mPidPion);
1067  fChain->SetBranchAddress("mGhostPairs.mPidProton",&mGhostPairs_mPidProton);
1068  fChain->SetBranchAddress("mGhostPairs.mPidKaon",&mGhostPairs_mPidKaon);
1069  fChain->SetBranchAddress("mGhostPairs.mPidElectron",&mGhostPairs_mPidElectron);
1070  fChain->SetBranchAddress("mGhostPairs.mFirstZ",&mGhostPairs_mFirstZ);
1071  fChain->SetBranchAddress("mGhostPairs.mLastZ",&mGhostPairs_mLastZ);
1072  fChain->SetBranchAddress("mGhostPairs.mFirstPadrow",&mGhostPairs_mFirstPadrow);
1073  fChain->SetBranchAddress("mGhostPairs.mLastPadrow",&mGhostPairs_mLastPadrow);
1074  fChain->SetBranchAddress("mGhostPairs.mFirstFitPadrow",&mGhostPairs_mFirstFitPadrow);
1075  fChain->SetBranchAddress("mGhostPairs.mLastFitPadrow",&mGhostPairs_mLastFitPadrow);
1076  fChain->SetBranchAddress("mGhostPairs.mFirstSector",&mGhostPairs_mFirstSector);
1077  fChain->SetBranchAddress("mGhostPairs.mLastSector",&mGhostPairs_mLastSector);
1078  fChain->SetBranchAddress("mGhostPairs.mFitPts",&mGhostPairs_mFitPts);
1079  fChain->SetBranchAddress("mGhostPairs.mAllPts",&mGhostPairs_mAllPts);
1080  fChain->SetBranchAddress("mGhostPairs.mCharge",&mGhostPairs_mCharge);
1081  fChain->SetBranchAddress("mGhostPairs.mNAssocMc",&mGhostPairs_mNAssocMc);
1082  fChain->SetBranchAddress("mGhostPairs.mNPossible",&mGhostPairs_mNPossible);
1083  fChain->SetBranchAddress("mContamPairs_",&mContamPairs_);
1084  fChain->SetBranchAddress("mContamPairs.mParentGeantId",&mContamPairs_mParentGeantId);
1085  fChain->SetBranchAddress("mContamPairs.mGeantProcess",&mContamPairs_mGeantProcess);
1086  fChain->SetBranchAddress("mContamPairs.mPtMcParent",&mContamPairs_mPtMcParent);
1087  fChain->SetBranchAddress("mContamPairs.mEtaMcParent",&mContamPairs_mEtaMcParent);
1088  fChain->SetBranchAddress("mContamPairs.mParentParentGeantId",&mContamPairs_mParentParentGeantId);
1089  fChain->SetBranchAddress("mContamPairs.mPtMcParentParent",&mContamPairs_mPtMcParentParent);
1090  fChain->SetBranchAddress("mContamPairs.mStartX",&mContamPairs_mStartX);
1091  fChain->SetBranchAddress("mContamPairs.mStartY",&mContamPairs_mStartY);
1092  fChain->SetBranchAddress("mContamPairs.mStartZ",&mContamPairs_mStartZ);
1093  fChain->SetBranchAddress("mContamPairs.mNCommonHit",&mContamPairs_mNCommonHit);
1094  fChain->SetBranchAddress("mContamPairs.mIsBestContam",&mContamPairs_mIsBestContam);
1095  fChain->SetBranchAddress("mContamPairs.mPtMc",&mContamPairs_mPtMc);
1096  fChain->SetBranchAddress("mContamPairs.mPzMc",&mContamPairs_mPzMc);
1097  fChain->SetBranchAddress("mContamPairs.mEtaMc",&mContamPairs_mEtaMc);
1098  fChain->SetBranchAddress("mContamPairs.mPhiMc",&mContamPairs_mPhiMc);
1099  fChain->SetBranchAddress("mContamPairs.mNHitMc",&mContamPairs_mNHitMc);
1100  fChain->SetBranchAddress("mContamPairs.mGeantId",&mContamPairs_mGeantId);
1101  fChain->SetBranchAddress("mContamPairs.mChargeMc",&mContamPairs_mChargeMc);
1102  fChain->SetBranchAddress("mContamPairs.mStopR",&mContamPairs_mStopR);
1103  fChain->SetBranchAddress("mContamPairs.mNAssocGl",&mContamPairs_mNAssocGl);
1104  fChain->SetBranchAddress("mContamPairs.mNAssocPr",&mContamPairs_mNAssocPr);
1105  fChain->SetBranchAddress("mContamPairs.fUniqueID",&mContamPairs_fUniqueID);
1106  fChain->SetBranchAddress("mContamPairs.fBits",&mContamPairs_fBits);
1107  fChain->SetBranchAddress("mContamPairs.mPtPr",&mContamPairs_mPtPr);
1108  fChain->SetBranchAddress("mContamPairs.mPzPr",&mContamPairs_mPzPr);
1109  fChain->SetBranchAddress("mContamPairs.mEtaPr",&mContamPairs_mEtaPr);
1110  fChain->SetBranchAddress("mContamPairs.mPhiPr",&mContamPairs_mPhiPr);
1111  fChain->SetBranchAddress("mContamPairs.mDcaPr",&mContamPairs_mDcaPr);
1112  fChain->SetBranchAddress("mContamPairs.mDcaXYPr",&mContamPairs_mDcaXYPr);
1113  fChain->SetBranchAddress("mContamPairs.mDcaZPr",&mContamPairs_mDcaZPr);
1114  fChain->SetBranchAddress("mContamPairs.mChi2Pr",&mContamPairs_mChi2Pr);
1115  fChain->SetBranchAddress("mContamPairs.mFlag",&mContamPairs_mFlag);
1116  fChain->SetBranchAddress("mContamPairs.mDedx",&mContamPairs_mDedx);
1117  fChain->SetBranchAddress("mContamPairs.mPtGl",&mContamPairs_mPtGl);
1118  fChain->SetBranchAddress("mContamPairs.mPzGl",&mContamPairs_mPzGl);
1119  fChain->SetBranchAddress("mContamPairs.mEtaGl",&mContamPairs_mEtaGl);
1120  fChain->SetBranchAddress("mContamPairs.mPhiGl",&mContamPairs_mPhiGl);
1121  fChain->SetBranchAddress("mContamPairs.mDcaGl",&mContamPairs_mDcaGl);
1122  fChain->SetBranchAddress("mContamPairs.mDcaXYGl",&mContamPairs_mDcaXYGl);
1123  fChain->SetBranchAddress("mContamPairs.mDcaZGl",&mContamPairs_mDcaZGl);
1124  fChain->SetBranchAddress("mContamPairs.mPidPion",&mContamPairs_mPidPion);
1125  fChain->SetBranchAddress("mContamPairs.mPidProton",&mContamPairs_mPidProton);
1126  fChain->SetBranchAddress("mContamPairs.mPidKaon",&mContamPairs_mPidKaon);
1127  fChain->SetBranchAddress("mContamPairs.mPidElectron",&mContamPairs_mPidElectron);
1128  fChain->SetBranchAddress("mContamPairs.mFirstZ",&mContamPairs_mFirstZ);
1129  fChain->SetBranchAddress("mContamPairs.mLastZ",&mContamPairs_mLastZ);
1130  fChain->SetBranchAddress("mContamPairs.mFirstPadrow",&mContamPairs_mFirstPadrow);
1131  fChain->SetBranchAddress("mContamPairs.mLastPadrow",&mContamPairs_mLastPadrow);
1132  fChain->SetBranchAddress("mContamPairs.mFirstFitPadrow",&mContamPairs_mFirstFitPadrow);
1133  fChain->SetBranchAddress("mContamPairs.mLastFitPadrow",&mContamPairs_mLastFitPadrow);
1134  fChain->SetBranchAddress("mContamPairs.mFirstSector",&mContamPairs_mFirstSector);
1135  fChain->SetBranchAddress("mContamPairs.mLastSector",&mContamPairs_mLastSector);
1136  fChain->SetBranchAddress("mContamPairs.mFitPts",&mContamPairs_mFitPts);
1137  fChain->SetBranchAddress("mContamPairs.mAllPts",&mContamPairs_mAllPts);
1138  fChain->SetBranchAddress("mContamPairs.mCharge",&mContamPairs_mCharge);
1139  fChain->SetBranchAddress("mContamPairs.mNAssocMc",&mContamPairs_mNAssocMc);
1140  fChain->SetBranchAddress("mContamPairs.mNPossible",&mContamPairs_mNPossible);
1141  fChain->SetBranchAddress("fUniqueID",&fUniqueID);
1142  fChain->SetBranchAddress("fBits",&fBits);
1143  Notify();
1144 }
1145 
1146 void standardPlots::InitHists()
1147 {
1148 
1149  cout <<"InitHists(): Initializing hists"<<endl;
1150  primaryTrackEff=new TProfile("primaryTrackEff","Sti PrimaryTracks vs. Mc PrimaryTracks",100,0,MAX_TRACKS);
1151  primaryTrackEffEta=new TProfile("primaryTrackEffEta","Sti PrimaryTracks vs. Mc PrimaryTracks",100,0,MAX_TRACKS);
1152  primaryTrackEffPt=new TProfile("primaryTrackEffPt","Sti PrimaryTracks vs. Mc PrimaryTracks",100,0,MAX_TRACKS);
1153  primaryTrackEffMult=new TProfile("primaryTrackEffMult","PrimaryTrack Finding Efficiency vs. McMult",100,0,MAX_TRACKS);
1154 
1155  primaryTrackPt=new TH1D("primaryTrackPt","PrimaryTrack Pt",100,0,5);
1156  primaryTrackEta=new TH1D("primaryTrackEta","PrimaryTrack Eta",100,-1,1);
1157  mcTrackEffPt=new TH1D("mcTrackEffPt","McTrack Pt",100,0,5);
1158  mcTrackEffEta=new TH1D("mcTrackEffEta","McTrack Eta",100,-1,1);
1159 
1160 
1161  hitEffMult=new TProfile("hitEffMult","Hit Shared / N Hits Possible", 50, 0, MAX_TRACKS);
1162  hitEffPt=new TProfile("hitEffPt","Hit Shared / N Hits Possible", 50, 0, 5);
1163  hitEffEta=new TProfile("hitEffEta","Hits Shared with MC Track / N Hits Possible", 50, -1.5,1.5);
1164  hitN = new TH1D("hitN","Number of Hits on Track", 56,0,55);
1165  lastHit = new TH1D("lastHit","Max hit Padrow",56,0,55);
1166  firstHit= new TH1D("firstHit","Min hit Padrow",56,0,55);
1167  lastHitPt=new TProfile("lastHitPt","Max padrow vs. Pt",100,0,5);;
1168  firstHitPt=new TProfile("firstHitPt","Min padrow vs. Pt",100,0,5);;
1169  lastHitEta=new TProfile("lastHitEta","Max padrow vs. Eta",100,0,5);;
1170  firstHitEta=new TProfile("firstHitEta","Min padrow vs. Eta",100,0,5);;
1171 
1172  //fit point plots
1173  fitPointsPlot = new TH1D("fitPointsPlot","Number of Fit Points / Number Possible", 50, 0,1);
1174  fitPointsUsed = new TH1D("fitPointsUsed","Number of Fit Points Used", 50, 0, 50);
1175  fitPointsPossible = new TH1D("fitPointsPossible","Number of Fit Points Possible", 50, 0,50);
1176  fitPointsPt = new TProfile("fitPointsPt","Number of Fit Points vs. Pt",100,0,5);
1177  fitPointsEta = new TProfile("fitPointsEta","Number of Fit Points vs. Eta",100,0,5);
1178 
1179  mGeantIdPlot = new TH1D("mGeantIdPlot","GeantId",40,0,39);
1180 
1181 }
1182 Bool_t standardPlots::Notify()
1183 {
1184  // Called when loading a new file.
1185  // Get branch pointers.
1186  b_mEventId = fChain->GetBranch("mEventId");
1187  b_mRunId = fChain->GetBranch("mRunId");
1188  b_mOriginMult = fChain->GetBranch("mOriginMult");
1189  b_mCentralMult = fChain->GetBranch("mCentralMult");
1190  b_mCentrality = fChain->GetBranch("mCentrality");
1191  b_mNUncorrectedNegativePrimaries = fChain->GetBranch("mNUncorrectedNegativePrimaries");
1192  b_mNUncorrectedPrimaries = fChain->GetBranch("mNUncorrectedPrimaries");
1193  b_mMcMult = fChain->GetBranch("mMcMult");
1194  b_mVertexX = fChain->GetBranch("mVertexX");
1195  b_mVertexY = fChain->GetBranch("mVertexY");
1196  b_mVertexZ = fChain->GetBranch("mVertexZ");
1197  b_mMcVertexX = fChain->GetBranch("mMcVertexX");
1198  b_mMcVertexY = fChain->GetBranch("mMcVertexY");
1199  b_mMcVertexZ = fChain->GetBranch("mMcVertexZ");
1200  b_mMagField = fChain->GetBranch("mMagField");
1201  b_mCTB = fChain->GetBranch("mCTB");
1202  b_mZDCe = fChain->GetBranch("mZDCe");
1203  b_mZDCw = fChain->GetBranch("mZDCw");
1204  b_mNMcTrack = fChain->GetBranch("mNMcTrack");
1205  b_mNMatchedPair = fChain->GetBranch("mNMatchedPair");
1206  b_mNMergedPair = fChain->GetBranch("mNMergedPair");
1207  b_mNSplitPair = fChain->GetBranch("mNSplitPair");
1208  b_mNGhostPair = fChain->GetBranch("mNGhostPair");
1209  b_mNContamPair = fChain->GetBranch("mNContamPair");
1210  b_mMcTracks_ = fChain->GetBranch("mMcTracks_");
1211  b_mMcTracks_mPtMc = fChain->GetBranch("mMcTracks.mPtMc");
1212  b_mMcTracks_mPzMc = fChain->GetBranch("mMcTracks.mPzMc");
1213  b_mMcTracks_mEtaMc = fChain->GetBranch("mMcTracks.mEtaMc");
1214  b_mMcTracks_mPhiMc = fChain->GetBranch("mMcTracks.mPhiMc");
1215  b_mMcTracks_mNHitMc = fChain->GetBranch("mMcTracks.mNHitMc");
1216  b_mMcTracks_mGeantId = fChain->GetBranch("mMcTracks.mGeantId");
1217  b_mMcTracks_mChargeMc = fChain->GetBranch("mMcTracks.mChargeMc");
1218  b_mMcTracks_mStopR = fChain->GetBranch("mMcTracks.mStopR");
1219  b_mMcTracks_mNAssocGl = fChain->GetBranch("mMcTracks.mNAssocGl");
1220  b_mMcTracks_mNAssocPr = fChain->GetBranch("mMcTracks.mNAssocPr");
1221  b_mMcTracks_fUniqueID = fChain->GetBranch("mMcTracks.fUniqueID");
1222  b_mMcTracks_fBits = fChain->GetBranch("mMcTracks.fBits");
1223  b_mMatchedPairs_ = fChain->GetBranch("mMatchedPairs_");
1224  b_mMatchedPairs_mNCommonHit = fChain->GetBranch("mMatchedPairs.mNCommonHit");
1225  b_mMatchedPairs_mIsBestContam = fChain->GetBranch("mMatchedPairs.mIsBestContam");
1226  b_mMatchedPairs_mPtMc = fChain->GetBranch("mMatchedPairs.mPtMc");
1227  b_mMatchedPairs_mPzMc = fChain->GetBranch("mMatchedPairs.mPzMc");
1228  b_mMatchedPairs_mEtaMc = fChain->GetBranch("mMatchedPairs.mEtaMc");
1229  b_mMatchedPairs_mPhiMc = fChain->GetBranch("mMatchedPairs.mPhiMc");
1230  b_mMatchedPairs_mNHitMc = fChain->GetBranch("mMatchedPairs.mNHitMc");
1231  b_mMatchedPairs_mGeantId = fChain->GetBranch("mMatchedPairs.mGeantId");
1232  b_mMatchedPairs_mChargeMc = fChain->GetBranch("mMatchedPairs.mChargeMc");
1233  b_mMatchedPairs_mStopR = fChain->GetBranch("mMatchedPairs.mStopR");
1234  b_mMatchedPairs_mNAssocGl = fChain->GetBranch("mMatchedPairs.mNAssocGl");
1235  b_mMatchedPairs_mNAssocPr = fChain->GetBranch("mMatchedPairs.mNAssocPr");
1236  b_mMatchedPairs_fUniqueID = fChain->GetBranch("mMatchedPairs.fUniqueID");
1237  b_mMatchedPairs_fBits = fChain->GetBranch("mMatchedPairs.fBits");
1238  b_mMatchedPairs_mPtPr = fChain->GetBranch("mMatchedPairs.mPtPr");
1239  b_mMatchedPairs_mPzPr = fChain->GetBranch("mMatchedPairs.mPzPr");
1240  b_mMatchedPairs_mEtaPr = fChain->GetBranch("mMatchedPairs.mEtaPr");
1241  b_mMatchedPairs_mPhiPr = fChain->GetBranch("mMatchedPairs.mPhiPr");
1242  b_mMatchedPairs_mDcaPr = fChain->GetBranch("mMatchedPairs.mDcaPr");
1243  b_mMatchedPairs_mDcaXYPr = fChain->GetBranch("mMatchedPairs.mDcaXYPr");
1244  b_mMatchedPairs_mDcaZPr = fChain->GetBranch("mMatchedPairs.mDcaZPr");
1245  b_mMatchedPairs_mChi2Pr = fChain->GetBranch("mMatchedPairs.mChi2Pr");
1246  b_mMatchedPairs_mFlag = fChain->GetBranch("mMatchedPairs.mFlag");
1247  b_mMatchedPairs_mDedx = fChain->GetBranch("mMatchedPairs.mDedx");
1248  b_mMatchedPairs_mPtGl = fChain->GetBranch("mMatchedPairs.mPtGl");
1249  b_mMatchedPairs_mPzGl = fChain->GetBranch("mMatchedPairs.mPzGl");
1250  b_mMatchedPairs_mEtaGl = fChain->GetBranch("mMatchedPairs.mEtaGl");
1251  b_mMatchedPairs_mPhiGl = fChain->GetBranch("mMatchedPairs.mPhiGl");
1252  b_mMatchedPairs_mDcaGl = fChain->GetBranch("mMatchedPairs.mDcaGl");
1253  b_mMatchedPairs_mDcaXYGl = fChain->GetBranch("mMatchedPairs.mDcaXYGl");
1254  b_mMatchedPairs_mDcaZGl = fChain->GetBranch("mMatchedPairs.mDcaZGl");
1255  b_mMatchedPairs_mPidPion = fChain->GetBranch("mMatchedPairs.mPidPion");
1256  b_mMatchedPairs_mPidProton = fChain->GetBranch("mMatchedPairs.mPidProton");
1257  b_mMatchedPairs_mPidKaon = fChain->GetBranch("mMatchedPairs.mPidKaon");
1258  b_mMatchedPairs_mPidElectron = fChain->GetBranch("mMatchedPairs.mPidElectron");
1259  b_mMatchedPairs_mFirstZ = fChain->GetBranch("mMatchedPairs.mFirstZ");
1260  b_mMatchedPairs_mLastZ = fChain->GetBranch("mMatchedPairs.mLastZ");
1261  b_mMatchedPairs_mFirstPadrow = fChain->GetBranch("mMatchedPairs.mFirstPadrow");
1262  b_mMatchedPairs_mLastPadrow = fChain->GetBranch("mMatchedPairs.mLastPadrow");
1263  b_mMatchedPairs_mFirstFitPadrow = fChain->GetBranch("mMatchedPairs.mFirstFitPadrow");
1264  b_mMatchedPairs_mLastFitPadrow = fChain->GetBranch("mMatchedPairs.mLastFitPadrow");
1265  b_mMatchedPairs_mFirstSector = fChain->GetBranch("mMatchedPairs.mFirstSector");
1266  b_mMatchedPairs_mLastSector = fChain->GetBranch("mMatchedPairs.mLastSector");
1267  b_mMatchedPairs_mFitPts = fChain->GetBranch("mMatchedPairs.mFitPts");
1268  b_mMatchedPairs_mAllPts = fChain->GetBranch("mMatchedPairs.mAllPts");
1269  b_mMatchedPairs_mCharge = fChain->GetBranch("mMatchedPairs.mCharge");
1270  b_mMatchedPairs_mNAssocMc = fChain->GetBranch("mMatchedPairs.mNAssocMc");
1271  b_mMatchedPairs_mNPossible = fChain->GetBranch("mMatchedPairs.mNPossible");
1272  b_mMergedPairs_ = fChain->GetBranch("mMergedPairs_");
1273  b_mMergedPairs_mNCommonHit = fChain->GetBranch("mMergedPairs.mNCommonHit");
1274  b_mMergedPairs_mIsBestContam = fChain->GetBranch("mMergedPairs.mIsBestContam");
1275  b_mMergedPairs_mPtMc = fChain->GetBranch("mMergedPairs.mPtMc");
1276  b_mMergedPairs_mPzMc = fChain->GetBranch("mMergedPairs.mPzMc");
1277  b_mMergedPairs_mEtaMc = fChain->GetBranch("mMergedPairs.mEtaMc");
1278  b_mMergedPairs_mPhiMc = fChain->GetBranch("mMergedPairs.mPhiMc");
1279  b_mMergedPairs_mNHitMc = fChain->GetBranch("mMergedPairs.mNHitMc");
1280  b_mMergedPairs_mGeantId = fChain->GetBranch("mMergedPairs.mGeantId");
1281  b_mMergedPairs_mChargeMc = fChain->GetBranch("mMergedPairs.mChargeMc");
1282  b_mMergedPairs_mStopR = fChain->GetBranch("mMergedPairs.mStopR");
1283  b_mMergedPairs_mNAssocGl = fChain->GetBranch("mMergedPairs.mNAssocGl");
1284  b_mMergedPairs_mNAssocPr = fChain->GetBranch("mMergedPairs.mNAssocPr");
1285  b_mMergedPairs_fUniqueID = fChain->GetBranch("mMergedPairs.fUniqueID");
1286  b_mMergedPairs_fBits = fChain->GetBranch("mMergedPairs.fBits");
1287  b_mMergedPairs_mPtPr = fChain->GetBranch("mMergedPairs.mPtPr");
1288  b_mMergedPairs_mPzPr = fChain->GetBranch("mMergedPairs.mPzPr");
1289  b_mMergedPairs_mEtaPr = fChain->GetBranch("mMergedPairs.mEtaPr");
1290  b_mMergedPairs_mPhiPr = fChain->GetBranch("mMergedPairs.mPhiPr");
1291  b_mMergedPairs_mDcaPr = fChain->GetBranch("mMergedPairs.mDcaPr");
1292  b_mMergedPairs_mDcaXYPr = fChain->GetBranch("mMergedPairs.mDcaXYPr");
1293  b_mMergedPairs_mDcaZPr = fChain->GetBranch("mMergedPairs.mDcaZPr");
1294  b_mMergedPairs_mChi2Pr = fChain->GetBranch("mMergedPairs.mChi2Pr");
1295  b_mMergedPairs_mFlag = fChain->GetBranch("mMergedPairs.mFlag");
1296  b_mMergedPairs_mDedx = fChain->GetBranch("mMergedPairs.mDedx");
1297  b_mMergedPairs_mPtGl = fChain->GetBranch("mMergedPairs.mPtGl");
1298  b_mMergedPairs_mPzGl = fChain->GetBranch("mMergedPairs.mPzGl");
1299  b_mMergedPairs_mEtaGl = fChain->GetBranch("mMergedPairs.mEtaGl");
1300  b_mMergedPairs_mPhiGl = fChain->GetBranch("mMergedPairs.mPhiGl");
1301  b_mMergedPairs_mDcaGl = fChain->GetBranch("mMergedPairs.mDcaGl");
1302  b_mMergedPairs_mDcaXYGl = fChain->GetBranch("mMergedPairs.mDcaXYGl");
1303  b_mMergedPairs_mDcaZGl = fChain->GetBranch("mMergedPairs.mDcaZGl");
1304  b_mMergedPairs_mPidPion = fChain->GetBranch("mMergedPairs.mPidPion");
1305  b_mMergedPairs_mPidProton = fChain->GetBranch("mMergedPairs.mPidProton");
1306  b_mMergedPairs_mPidKaon = fChain->GetBranch("mMergedPairs.mPidKaon");
1307  b_mMergedPairs_mPidElectron = fChain->GetBranch("mMergedPairs.mPidElectron");
1308  b_mMergedPairs_mFirstZ = fChain->GetBranch("mMergedPairs.mFirstZ");
1309  b_mMergedPairs_mLastZ = fChain->GetBranch("mMergedPairs.mLastZ");
1310  b_mMergedPairs_mFirstPadrow = fChain->GetBranch("mMergedPairs.mFirstPadrow");
1311  b_mMergedPairs_mLastPadrow = fChain->GetBranch("mMergedPairs.mLastPadrow");
1312  b_mMergedPairs_mFirstFitPadrow = fChain->GetBranch("mMergedPairs.mFirstFitPadrow");
1313  b_mMergedPairs_mLastFitPadrow = fChain->GetBranch("mMergedPairs.mLastFitPadrow");
1314  b_mMergedPairs_mFirstSector = fChain->GetBranch("mMergedPairs.mFirstSector");
1315  b_mMergedPairs_mLastSector = fChain->GetBranch("mMergedPairs.mLastSector");
1316  b_mMergedPairs_mFitPts = fChain->GetBranch("mMergedPairs.mFitPts");
1317  b_mMergedPairs_mAllPts = fChain->GetBranch("mMergedPairs.mAllPts");
1318  b_mMergedPairs_mCharge = fChain->GetBranch("mMergedPairs.mCharge");
1319  b_mMergedPairs_mNAssocMc = fChain->GetBranch("mMergedPairs.mNAssocMc");
1320  b_mMergedPairs_mNPossible = fChain->GetBranch("mMergedPairs.mNPossible");
1321  b_mSplitPairs_ = fChain->GetBranch("mSplitPairs_");
1322  b_mSplitPairs_mNCommonHit = fChain->GetBranch("mSplitPairs.mNCommonHit");
1323  b_mSplitPairs_mIsBestContam = fChain->GetBranch("mSplitPairs.mIsBestContam");
1324  b_mSplitPairs_mPtMc = fChain->GetBranch("mSplitPairs.mPtMc");
1325  b_mSplitPairs_mPzMc = fChain->GetBranch("mSplitPairs.mPzMc");
1326  b_mSplitPairs_mEtaMc = fChain->GetBranch("mSplitPairs.mEtaMc");
1327  b_mSplitPairs_mPhiMc = fChain->GetBranch("mSplitPairs.mPhiMc");
1328  b_mSplitPairs_mNHitMc = fChain->GetBranch("mSplitPairs.mNHitMc");
1329  b_mSplitPairs_mGeantId = fChain->GetBranch("mSplitPairs.mGeantId");
1330  b_mSplitPairs_mChargeMc = fChain->GetBranch("mSplitPairs.mChargeMc");
1331  b_mSplitPairs_mStopR = fChain->GetBranch("mSplitPairs.mStopR");
1332  b_mSplitPairs_mNAssocGl = fChain->GetBranch("mSplitPairs.mNAssocGl");
1333  b_mSplitPairs_mNAssocPr = fChain->GetBranch("mSplitPairs.mNAssocPr");
1334  b_mSplitPairs_fUniqueID = fChain->GetBranch("mSplitPairs.fUniqueID");
1335  b_mSplitPairs_fBits = fChain->GetBranch("mSplitPairs.fBits");
1336  b_mSplitPairs_mPtPr = fChain->GetBranch("mSplitPairs.mPtPr");
1337  b_mSplitPairs_mPzPr = fChain->GetBranch("mSplitPairs.mPzPr");
1338  b_mSplitPairs_mEtaPr = fChain->GetBranch("mSplitPairs.mEtaPr");
1339  b_mSplitPairs_mPhiPr = fChain->GetBranch("mSplitPairs.mPhiPr");
1340  b_mSplitPairs_mDcaPr = fChain->GetBranch("mSplitPairs.mDcaPr");
1341  b_mSplitPairs_mDcaXYPr = fChain->GetBranch("mSplitPairs.mDcaXYPr");
1342  b_mSplitPairs_mDcaZPr = fChain->GetBranch("mSplitPairs.mDcaZPr");
1343  b_mSplitPairs_mChi2Pr = fChain->GetBranch("mSplitPairs.mChi2Pr");
1344  b_mSplitPairs_mFlag = fChain->GetBranch("mSplitPairs.mFlag");
1345  b_mSplitPairs_mDedx = fChain->GetBranch("mSplitPairs.mDedx");
1346  b_mSplitPairs_mPtGl = fChain->GetBranch("mSplitPairs.mPtGl");
1347  b_mSplitPairs_mPzGl = fChain->GetBranch("mSplitPairs.mPzGl");
1348  b_mSplitPairs_mEtaGl = fChain->GetBranch("mSplitPairs.mEtaGl");
1349  b_mSplitPairs_mPhiGl = fChain->GetBranch("mSplitPairs.mPhiGl");
1350  b_mSplitPairs_mDcaGl = fChain->GetBranch("mSplitPairs.mDcaGl");
1351  b_mSplitPairs_mDcaXYGl = fChain->GetBranch("mSplitPairs.mDcaXYGl");
1352  b_mSplitPairs_mDcaZGl = fChain->GetBranch("mSplitPairs.mDcaZGl");
1353  b_mSplitPairs_mPidPion = fChain->GetBranch("mSplitPairs.mPidPion");
1354  b_mSplitPairs_mPidProton = fChain->GetBranch("mSplitPairs.mPidProton");
1355  b_mSplitPairs_mPidKaon = fChain->GetBranch("mSplitPairs.mPidKaon");
1356  b_mSplitPairs_mPidElectron = fChain->GetBranch("mSplitPairs.mPidElectron");
1357  b_mSplitPairs_mFirstZ = fChain->GetBranch("mSplitPairs.mFirstZ");
1358  b_mSplitPairs_mLastZ = fChain->GetBranch("mSplitPairs.mLastZ");
1359  b_mSplitPairs_mFirstPadrow = fChain->GetBranch("mSplitPairs.mFirstPadrow");
1360  b_mSplitPairs_mLastPadrow = fChain->GetBranch("mSplitPairs.mLastPadrow");
1361  b_mSplitPairs_mFirstFitPadrow = fChain->GetBranch("mSplitPairs.mFirstFitPadrow");
1362  b_mSplitPairs_mLastFitPadrow = fChain->GetBranch("mSplitPairs.mLastFitPadrow");
1363  b_mSplitPairs_mFirstSector = fChain->GetBranch("mSplitPairs.mFirstSector");
1364  b_mSplitPairs_mLastSector = fChain->GetBranch("mSplitPairs.mLastSector");
1365  b_mSplitPairs_mFitPts = fChain->GetBranch("mSplitPairs.mFitPts");
1366  b_mSplitPairs_mAllPts = fChain->GetBranch("mSplitPairs.mAllPts");
1367  b_mSplitPairs_mCharge = fChain->GetBranch("mSplitPairs.mCharge");
1368  b_mSplitPairs_mNAssocMc = fChain->GetBranch("mSplitPairs.mNAssocMc");
1369  b_mSplitPairs_mNPossible = fChain->GetBranch("mSplitPairs.mNPossible");
1370  b_mGhostPairs_ = fChain->GetBranch("mGhostPairs_");
1371  b_mGhostPairs_mNCommonHit = fChain->GetBranch("mGhostPairs.mNCommonHit");
1372  b_mGhostPairs_mIsBestContam = fChain->GetBranch("mGhostPairs.mIsBestContam");
1373  b_mGhostPairs_mPtMc = fChain->GetBranch("mGhostPairs.mPtMc");
1374  b_mGhostPairs_mPzMc = fChain->GetBranch("mGhostPairs.mPzMc");
1375  b_mGhostPairs_mEtaMc = fChain->GetBranch("mGhostPairs.mEtaMc");
1376  b_mGhostPairs_mPhiMc = fChain->GetBranch("mGhostPairs.mPhiMc");
1377  b_mGhostPairs_mNHitMc = fChain->GetBranch("mGhostPairs.mNHitMc");
1378  b_mGhostPairs_mGeantId = fChain->GetBranch("mGhostPairs.mGeantId");
1379  b_mGhostPairs_mChargeMc = fChain->GetBranch("mGhostPairs.mChargeMc");
1380  b_mGhostPairs_mStopR = fChain->GetBranch("mGhostPairs.mStopR");
1381  b_mGhostPairs_mNAssocGl = fChain->GetBranch("mGhostPairs.mNAssocGl");
1382  b_mGhostPairs_mNAssocPr = fChain->GetBranch("mGhostPairs.mNAssocPr");
1383  b_mGhostPairs_fUniqueID = fChain->GetBranch("mGhostPairs.fUniqueID");
1384  b_mGhostPairs_fBits = fChain->GetBranch("mGhostPairs.fBits");
1385  b_mGhostPairs_mPtPr = fChain->GetBranch("mGhostPairs.mPtPr");
1386  b_mGhostPairs_mPzPr = fChain->GetBranch("mGhostPairs.mPzPr");
1387  b_mGhostPairs_mEtaPr = fChain->GetBranch("mGhostPairs.mEtaPr");
1388  b_mGhostPairs_mPhiPr = fChain->GetBranch("mGhostPairs.mPhiPr");
1389  b_mGhostPairs_mDcaPr = fChain->GetBranch("mGhostPairs.mDcaPr");
1390  b_mGhostPairs_mDcaXYPr = fChain->GetBranch("mGhostPairs.mDcaXYPr");
1391  b_mGhostPairs_mDcaZPr = fChain->GetBranch("mGhostPairs.mDcaZPr");
1392  b_mGhostPairs_mChi2Pr = fChain->GetBranch("mGhostPairs.mChi2Pr");
1393  b_mGhostPairs_mFlag = fChain->GetBranch("mGhostPairs.mFlag");
1394  b_mGhostPairs_mDedx = fChain->GetBranch("mGhostPairs.mDedx");
1395  b_mGhostPairs_mPtGl = fChain->GetBranch("mGhostPairs.mPtGl");
1396  b_mGhostPairs_mPzGl = fChain->GetBranch("mGhostPairs.mPzGl");
1397  b_mGhostPairs_mEtaGl = fChain->GetBranch("mGhostPairs.mEtaGl");
1398  b_mGhostPairs_mPhiGl = fChain->GetBranch("mGhostPairs.mPhiGl");
1399  b_mGhostPairs_mDcaGl = fChain->GetBranch("mGhostPairs.mDcaGl");
1400  b_mGhostPairs_mDcaXYGl = fChain->GetBranch("mGhostPairs.mDcaXYGl");
1401  b_mGhostPairs_mDcaZGl = fChain->GetBranch("mGhostPairs.mDcaZGl");
1402  b_mGhostPairs_mPidPion = fChain->GetBranch("mGhostPairs.mPidPion");
1403  b_mGhostPairs_mPidProton = fChain->GetBranch("mGhostPairs.mPidProton");
1404  b_mGhostPairs_mPidKaon = fChain->GetBranch("mGhostPairs.mPidKaon");
1405  b_mGhostPairs_mPidElectron = fChain->GetBranch("mGhostPairs.mPidElectron");
1406  b_mGhostPairs_mFirstZ = fChain->GetBranch("mGhostPairs.mFirstZ");
1407  b_mGhostPairs_mLastZ = fChain->GetBranch("mGhostPairs.mLastZ");
1408  b_mGhostPairs_mFirstPadrow = fChain->GetBranch("mGhostPairs.mFirstPadrow");
1409  b_mGhostPairs_mLastPadrow = fChain->GetBranch("mGhostPairs.mLastPadrow");
1410  b_mGhostPairs_mFirstFitPadrow = fChain->GetBranch("mGhostPairs.mFirstFitPadrow");
1411  b_mGhostPairs_mLastFitPadrow = fChain->GetBranch("mGhostPairs.mLastFitPadrow");
1412  b_mGhostPairs_mFirstSector = fChain->GetBranch("mGhostPairs.mFirstSector");
1413  b_mGhostPairs_mLastSector = fChain->GetBranch("mGhostPairs.mLastSector");
1414  b_mGhostPairs_mFitPts = fChain->GetBranch("mGhostPairs.mFitPts");
1415  b_mGhostPairs_mAllPts = fChain->GetBranch("mGhostPairs.mAllPts");
1416  b_mGhostPairs_mCharge = fChain->GetBranch("mGhostPairs.mCharge");
1417  b_mGhostPairs_mNAssocMc = fChain->GetBranch("mGhostPairs.mNAssocMc");
1418  b_mGhostPairs_mNPossible = fChain->GetBranch("mGhostPairs.mNPossible");
1419  b_mContamPairs_ = fChain->GetBranch("mContamPairs_");
1420  b_mContamPairs_mParentGeantId = fChain->GetBranch("mContamPairs.mParentGeantId");
1421  b_mContamPairs_mGeantProcess = fChain->GetBranch("mContamPairs.mGeantProcess");
1422  b_mContamPairs_mPtMcParent = fChain->GetBranch("mContamPairs.mPtMcParent");
1423  b_mContamPairs_mEtaMcParent = fChain->GetBranch("mContamPairs.mEtaMcParent");
1424  b_mContamPairs_mParentParentGeantId = fChain->GetBranch("mContamPairs.mParentParentGeantId");
1425  b_mContamPairs_mPtMcParentParent = fChain->GetBranch("mContamPairs.mPtMcParentParent");
1426  b_mContamPairs_mStartX = fChain->GetBranch("mContamPairs.mStartX");
1427  b_mContamPairs_mStartY = fChain->GetBranch("mContamPairs.mStartY");
1428  b_mContamPairs_mStartZ = fChain->GetBranch("mContamPairs.mStartZ");
1429  b_mContamPairs_mNCommonHit = fChain->GetBranch("mContamPairs.mNCommonHit");
1430  b_mContamPairs_mIsBestContam = fChain->GetBranch("mContamPairs.mIsBestContam");
1431  b_mContamPairs_mPtMc = fChain->GetBranch("mContamPairs.mPtMc");
1432  b_mContamPairs_mPzMc = fChain->GetBranch("mContamPairs.mPzMc");
1433  b_mContamPairs_mEtaMc = fChain->GetBranch("mContamPairs.mEtaMc");
1434  b_mContamPairs_mPhiMc = fChain->GetBranch("mContamPairs.mPhiMc");
1435  b_mContamPairs_mNHitMc = fChain->GetBranch("mContamPairs.mNHitMc");
1436  b_mContamPairs_mGeantId = fChain->GetBranch("mContamPairs.mGeantId");
1437  b_mContamPairs_mChargeMc = fChain->GetBranch("mContamPairs.mChargeMc");
1438  b_mContamPairs_mStopR = fChain->GetBranch("mContamPairs.mStopR");
1439  b_mContamPairs_mNAssocGl = fChain->GetBranch("mContamPairs.mNAssocGl");
1440  b_mContamPairs_mNAssocPr = fChain->GetBranch("mContamPairs.mNAssocPr");
1441  b_mContamPairs_fUniqueID = fChain->GetBranch("mContamPairs.fUniqueID");
1442  b_mContamPairs_fBits = fChain->GetBranch("mContamPairs.fBits");
1443  b_mContamPairs_mPtPr = fChain->GetBranch("mContamPairs.mPtPr");
1444  b_mContamPairs_mPzPr = fChain->GetBranch("mContamPairs.mPzPr");
1445  b_mContamPairs_mEtaPr = fChain->GetBranch("mContamPairs.mEtaPr");
1446  b_mContamPairs_mPhiPr = fChain->GetBranch("mContamPairs.mPhiPr");
1447  b_mContamPairs_mDcaPr = fChain->GetBranch("mContamPairs.mDcaPr");
1448  b_mContamPairs_mDcaXYPr = fChain->GetBranch("mContamPairs.mDcaXYPr");
1449  b_mContamPairs_mDcaZPr = fChain->GetBranch("mContamPairs.mDcaZPr");
1450  b_mContamPairs_mChi2Pr = fChain->GetBranch("mContamPairs.mChi2Pr");
1451  b_mContamPairs_mFlag = fChain->GetBranch("mContamPairs.mFlag");
1452  b_mContamPairs_mDedx = fChain->GetBranch("mContamPairs.mDedx");
1453  b_mContamPairs_mPtGl = fChain->GetBranch("mContamPairs.mPtGl");
1454  b_mContamPairs_mPzGl = fChain->GetBranch("mContamPairs.mPzGl");
1455  b_mContamPairs_mEtaGl = fChain->GetBranch("mContamPairs.mEtaGl");
1456  b_mContamPairs_mPhiGl = fChain->GetBranch("mContamPairs.mPhiGl");
1457  b_mContamPairs_mDcaGl = fChain->GetBranch("mContamPairs.mDcaGl");
1458  b_mContamPairs_mDcaXYGl = fChain->GetBranch("mContamPairs.mDcaXYGl");
1459  b_mContamPairs_mDcaZGl = fChain->GetBranch("mContamPairs.mDcaZGl");
1460  b_mContamPairs_mPidPion = fChain->GetBranch("mContamPairs.mPidPion");
1461  b_mContamPairs_mPidProton = fChain->GetBranch("mContamPairs.mPidProton");
1462  b_mContamPairs_mPidKaon = fChain->GetBranch("mContamPairs.mPidKaon");
1463  b_mContamPairs_mPidElectron = fChain->GetBranch("mContamPairs.mPidElectron");
1464  b_mContamPairs_mFirstZ = fChain->GetBranch("mContamPairs.mFirstZ");
1465  b_mContamPairs_mLastZ = fChain->GetBranch("mContamPairs.mLastZ");
1466  b_mContamPairs_mFirstPadrow = fChain->GetBranch("mContamPairs.mFirstPadrow");
1467  b_mContamPairs_mLastPadrow = fChain->GetBranch("mContamPairs.mLastPadrow");
1468  b_mContamPairs_mFirstFitPadrow = fChain->GetBranch("mContamPairs.mFirstFitPadrow");
1469  b_mContamPairs_mLastFitPadrow = fChain->GetBranch("mContamPairs.mLastFitPadrow");
1470  b_mContamPairs_mFirstSector = fChain->GetBranch("mContamPairs.mFirstSector");
1471  b_mContamPairs_mLastSector = fChain->GetBranch("mContamPairs.mLastSector");
1472  b_mContamPairs_mFitPts = fChain->GetBranch("mContamPairs.mFitPts");
1473  b_mContamPairs_mAllPts = fChain->GetBranch("mContamPairs.mAllPts");
1474  b_mContamPairs_mCharge = fChain->GetBranch("mContamPairs.mCharge");
1475  b_mContamPairs_mNAssocMc = fChain->GetBranch("mContamPairs.mNAssocMc");
1476  b_mContamPairs_mNPossible = fChain->GetBranch("mContamPairs.mNPossible");
1477  b_fUniqueID = fChain->GetBranch("fUniqueID");
1478  b_fBits = fChain->GetBranch("fBits");
1479  return kTRUE;
1480 }
1481 
1482 void standardPlots::Show(Int_t entry)
1483 {
1484 // Print contents of entry.
1485 // If entry is not specified, print current entry
1486  if (!fChain) return;
1487  fChain->Show(entry);
1488 }
1489 
1490 Int_t standardPlots::Cut(Int_t entry)
1491 {
1492 // This function may be called from Loop.
1493 // returns 1 if entry is accepted.
1494 // returns -1 otherwise.
1495  if(mMatchedPairs_>multCut[0] && mMatchedPairs_<multCut[1]
1496  && mVertexZ>zCut[0] && mVertexZ<zCut[1]) return 1;
1497 
1498  return 0;
1499 }
1500 
1501 int standardPlots::trackCut(int entry, int track)
1502 {
1503 // This function may be called from Loop.
1504 // returns 1 if entry is accepted.
1505 // returns 0 otherwise.
1506  if( mMatchedPairs_mPtPr[track] > ptCut[0]
1507  && mMatchedPairs_mPtPr[track] < ptCut[1]
1508  && mMatchedPairs_mEtaPr[track] > etaCut[0]
1509  && mMatchedPairs_mEtaPr[track] < etaCut[1]
1510  && mMatchedPairs_mNCommonHit[track] > nHitCut[0]
1511  && mMatchedPairs_mNCommonHit[track] < nHitCut[1]
1512  && mMatchedPairs_mDcaGl[track] > dca[0]
1513  && mMatchedPairs_mDcaGl[track] < dca[1]
1514  && (mMatchedPairs_mGeantId[track] == (short int)geantId
1515  ||mMatchedPairs_mGeantId[track] == 0)
1516  ) return 1;
1517 
1518 
1519  return 0;
1520 }
1521 void standardPlots::makeRcTrackCutString()
1522 {
1523  cout<<" Making reconstructed track cut string."<<endl;
1524  //char* tmpString = "mMatchedPairs.mPtPr > %d && mMatchedPairs.mPtPr < %d && mMatchedPairs.mEtaPr > %d && mMatchedPairs.mEtaPr < %f && mMatchedPairs.mNCommonHit > %f && mMatchedPairs.mNCommontHit < %f mMatchedPairs.mDcaGl > %f && mMatchedPairs.mDcaGl < %f";
1525 
1526  (void)sprintf(rcTrackCutString,
1527  "mMatchedPairs.mPtPr > %f && mMatchedPairs.mPtPr < %f && mMatchedPairs.mEtaPr > %f && mMatchedPairs.mEtaPr < %f && mMatchedPairs.mNCommonHit > %f && mMatchedPairs.mNCommontHit < %f mMatchedPairs.mDcaGl > %f && mMatchedPairs.mDcaGl < %f",
1528  ptCut[0], ptCut[1],
1529  etaCut[0], etaCut[1],
1530  nHitCut[0], nHitCut[1],
1531  dca[0],dca[1]);
1532 }
1533 
1534 int standardPlots::mcTrackCut(int entry, int track)
1535 {
1536 // This function may be called from Loop.
1537 // returns 1 if entry is accepted.
1538 // returns 0 otherwise.
1539  if( mMcTracks_mPtMc[track] > ptCut[0]
1540  &&mMcTracks_mPtMc[track] < ptCut[1]
1541  &&(mMcTracks_mEtaMc[track] > etaCut[0]
1542  &&mMcTracks_mEtaMc[track] < etaCut[1])
1543  &&mMcTracks_mNHitMc[track] > nHitCut[0]
1544  && mMcTracks_mNHitMc[track] < nHitCut[1]
1545  &&mMcTracks_mChargeMc[track] !=0
1546  &&(mMcTracks_mGeantId[track] ==geantId
1547  || mMcTracks_mGeantId[track] ==0))
1548  return 1;
1549 
1550  return 0;
1551 }
1552 
1553 void standardPlots::makeMcTrackCutString()
1554 {
1555  cout<<" Making Monte Carlo track cut string."<<endl;
1556  // char* tempString = "mMcTracks.mPtMc > %f && mMcTracks.mPtPc < %f && mMcTracks.mEtaMc > %f && mMcTracks.mEtaMc < %f && mMcTracks.mNHitMc > %f && mMcTracks.mNHitMc < %f && mMcTracks.mChargeMc != 0";
1557  (void)sprintf(mcTrackCutString,
1558  "mMcTracks.mPtMc > %f && mMcTracks.mPtPc < %f && mMcTracks.mEtaMc > %f && mMcTracks.mEtaMc < %f && mMcTracks.mNHitMc > %f && mMcTracks.mNHitMc < %f && mMcTracks.mChargeMc != 0",
1559  ptCut[0], ptCut[1],
1560  etaCut[0], etaCut[1],
1561  nHitCut[0], nHitCut[1]);
1562 }
1563 
1564 
1565 void standardPlots::showCuts()
1566 {
1567  cout <<"The Event cuts currently defined are:\t\tlow\thigh"<<endl
1568  <<"\tVertex Z :\t"
1569  <<"\t\t\t"<<zCut[0]<<"\t"<<zCut[1]<<endl
1570  <<"\tMultiplicity :\t"
1571  <<"\t\t\t"<<multCut[0]<<"\t"<<multCut[1]<<endl<<endl
1572  <<"The Track Cuts currently defined are:\t\tlow\thigh"<<endl
1573  <<"\tTransverse Momentum :\t"
1574  <<"\t\t"<<ptCut[0]<<"\t"<<ptCut[1]<<endl
1575  <<"\tEta :\t"
1576  <<"\t\t\t\t"<<etaCut[0]<<"\t"<<etaCut[1]<<endl
1577  <<"\tTpc Hits :\t"
1578  <<"\t\t\t"<<nHitCut[0]<<"\t"<<nHitCut[1]<<endl
1579  <<"\tAssociated Hits :\t"
1580  <<"\t\t"<<nHitACut[0]<<"\t"<<nHitACut[1]<<endl
1581  <<"\tGeant Id:\t"
1582  <<"\t\t\t"<<geantId
1583  <<endl;
1584 }
1585 #endif // #ifdef standardPlots_cxx
1586 
Definition: Cut.h:18
Int_t fCurrent
pointer to the analyzed TTree or TChain
Definition: standardPlots.h:52
Int_t mEventId
current Tree number in a TChain
Definition: standardPlots.h:54