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