StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Bin.h
1 /*
2  standard histogram bins and ranges
3 */
4 
5 #ifndef Bin_H
6 #define Bin_H
7 
8 #include "TObject.h"
9 #include "TArrayD.h"
10 #include <cmath>
11 #include <cstdlib>
12 
13 namespace Bin
14 {
15  //
16  // event stuff
17  //
18 
19  // 0-9 9 is overflow(most central)
20  const Double_t flowCentMin = -0.5;
21  const Double_t flowCentMax = 9.5;
22  const Int_t nFlowCentBin = 10;
23 
24  const Double_t vertexZEvtMin = -200;
25  const Double_t vertexZEvtMax = 200;
26  const Int_t nVertexZEvtBin =
27  (Int_t) ceil((vertexZEvtMax-vertexZEvtMin)/5);
28  const Int_t nVertexZEvtThinBin = (Int_t)ceil((vertexZEvtMax-vertexZEvtMin)/1);
29 
30  // 0-9 0 is most central (kFive)
31  const Double_t zdcCentMin = -0.5;
32  const Double_t zdcCentMax = 9.5;
33  const Int_t nZdcCentBin = 10;
34 
35  const Double_t vertexXMin = -1;
36  const Double_t vertexXMax = 1;
37  const Int_t nVertexXBin = (Int_t)ceil((vertexXMax-vertexXMin)/.05);
38 
39  const Double_t vertexREvtMin = 0;
40  const Double_t vertexREvtMax = 5;
41  const Int_t nVertexREvtBin = (Int_t)ceil((vertexREvtMax-vertexREvtMin)/.1);
42 
43  const Double_t zdcMin=-0.5;
44  const Double_t zdcMax=200.5;
45  const Int_t nZdcBin=(Int_t)ceil((zdcMax-zdcMin));
46 
47  const Double_t hMinusMin=-0.5;
48  const Double_t hMinusMax=400.5;
49  const Int_t nHMinusBin=(Int_t)ceil((hMinusMax-hMinusMin));
50 
51  const Double_t nChMin=-0.5;
52  const Double_t nChMax=800.5;
53  const Int_t nNchBin=(Int_t)ceil((nChMax-nChMin));
54 
55 
56  const Double_t ctbMin = -0.5;
57  const Double_t ctbMax = 30000.5;
58  const Int_t nCtbBin=(Int_t)ceil((ctbMax-ctbMin)/100);
59 
60  //
61  //****** track stuff
62  //
63  void initPtAry(TArrayD* a, int type);
64 
65  const Double_t ptMin = 0.5;
66  const Double_t ptMax = 8.0;
67  const Int_t nPtBin = (Int_t)ceil((ptMax-ptMin)/.5);
68 
69  const Double_t ptThinMin = 1.2;
70  const Double_t ptThinMax = 8.0;
71  const Int_t nPtThinBin = (Int_t)ceil((ptThinMax-ptThinMin)/.2);
72 
73  const Double_t ptTinyMin = 0;
74  const Double_t ptTinyMax = 8;
75  const Int_t nPtTinyBin = (Int_t)ceil((ptTinyMax-ptTinyMin)/.2);
76 
77  // will rebin with these
78  const double ptRebinMin = 1;
79  const double ptRebinMax = 6;
80  const double nPtRebinBin = (int)ceil((ptRebinMax-ptRebinMin)/.05);
81 
82 
83  const Double_t resPtMin = -1.5;
84  const Double_t resPtMax = 1.5;
85  const Int_t nResPtBin = (Int_t)ceil((resPtMax-resPtMin)/.005);
86 
87  const Double_t resEtaMin = -.5;
88  const Double_t resEtaMax = .5;
89  const Int_t nResEtaBin = (Int_t)ceil((resEtaMax-resEtaMin)/.02);
90 
91  const Double_t resCurvMin = -2;
92  const Double_t resCurvMax = 1;
93  const Int_t nResCurvBin = (Int_t)ceil((resCurvMax-resCurvMin)/.02);
94 
95  const Double_t etaMin = -1.0;
96  const Double_t etaMax = 1.0;
97  const Int_t nEtaBin = (Int_t)ceil((etaMax-etaMin)/.1);
98 
99  const Double_t etaBigMin = -1.0;
100  const Double_t etaBigMax = 1.0;
101  const Int_t nEtaBigBin = (Int_t)ceil((etaBigMax-etaBigMin)/.25);
102 
103  const Double_t etaThinMin = -1.;
104  const Double_t etaThinMax = 1;
105  const Int_t nEtaThinBin = (Int_t)ceil((etaThinMax-etaThinMin)/.025);
106 
107  const Double_t etaSmallMin = -1.0;
108  const Double_t etaSmallMax = 1.0;
109  const Int_t nEtaSmallBin = (Int_t)ceil((etaSmallMax-etaSmallMin)/.05);
110 
111  const Double_t sDcaMin = -3;
112  const Double_t sDcaMax = 3;
113  const Int_t nSDcaBin = (Int_t)ceil((sDcaMax-sDcaMin)/.1);
114 
115  const Double_t dcaXYGlMin = -3;
116  const Double_t dcaXYGlMax = 3;
117  const Double_t nDcaXYGlBin =(Int_t)ceil((dcaXYGlMax-dcaXYGlMin)/.05);
118 
119  const Double_t dcaXYGlWideMin = -3;
120  const Double_t dcaXYGlWideMax = 3;
121  const Double_t nDcaXYGlWideBin =(Int_t)ceil((dcaXYGlMax-dcaXYGlMin)/.1);
122 
123 
124 
125  const Double_t dcaMin = 0;
126  const Double_t dcaMax = 3;
127  const Int_t nDcaBin = (Int_t)ceil((dcaMax-dcaMin)/.05);
128 
129  const Double_t dcaThinMin = 0;
130  const Double_t dcaThinMax = 3;
131  const Int_t nDcaThinBin = (Int_t)ceil((dcaThinMax-dcaThinMin)/.05);
132 
133  const Double_t commonFracMin = 0;
134  const Double_t commonFracMax = 1;
135  const Int_t nCommonFracBin = (Int_t)ceil((commonFracMax-commonFracMin)/.02);
136 
137  const Double_t fitPtsMin = 0.5;
138  const Double_t fitPtsMax = 45.5;
139  const Int_t nFitPtsBin = 45;
140 
141  const Double_t fitPtsWideMin=25.5; // 26-29,30-33,34-37,38-41,42-45
142  const Double_t fitPtsWideMax=45.5;
143  const Int_t nFitPtsWideBin=5;
144 
145  const Double_t fitPtsCentMin = 0.5;
146  const Double_t fitPtsCentMax = 45.5;
147  const Int_t nFitPtsCentBin = 45;
148 
149  const Double_t fitHitMin = 0.5;
150  const Double_t fitHitMax = 45.5;
151  const Int_t nFitHitBin = 1;
152 
153  const Double_t fracHitMin = 0;
154  const Double_t fracHitMax = 1;
155  const Int_t nFracHitBin = (Int_t)ceil((fracHitMax-fracHitMin)/.02);
156 
157  const Double_t fitHitThinMin = 0.5;
158  const Double_t fitHitThinMax = 45.5;
159  const Int_t nFitHitThinBin = 45;
160 
161  const Double_t vertexZMin = -200;
162  const Double_t vertexZMax = 200;
163  const Int_t nVertexZBin = (Int_t)ceil((vertexZMax-vertexZMin)/10);
164  const Int_t nEnterZBin = (Int_t)ceil((vertexZMax-vertexZMin)/10);
165 
166  const Double_t vertexZWideMin = -200;
167  const Double_t vertexZWideMax = 200;
168  const Int_t nVertexZWideBin = (Int_t)ceil((vertexZWideMax-vertexZWideMin)/25);
169 
170  const Double_t vertexZBigMin = -200;
171  const Double_t vertexZBigMax = 200;
172  const Int_t nVertexZBigBin = (Int_t) ceil((vertexZBigMax-vertexZBigMin)/50);
173 
174  const Double_t midZBigMin = -200;
175  const Double_t midZBigMax = 200;
176  const Int_t nMidZBigBin = (Int_t) ceil((midZBigMax-midZBigMin)/50);
177 
178  const Double_t absZBigMin = 0;
179  const Double_t absZBigMax = 200;
180  const Double_t nAbsZBigBin = 4;
181 
182  const Double_t sectorWestMin = 0.5;
183  const Double_t sectorWestMax = 12.5;
184 
185  const Double_t sectorEastMin = 12.5;
186  const Double_t sectorEastMax = 24.5;
187 
188  const Int_t nSectorBin = 12;
189 
190 
191  const Double_t dPhiMin = -.02;
192  const Double_t dPhiMax = .02;
193  const Int_t nDPhiBin = (Int_t)ceil((dPhiMax-dPhiMin)/.001);
194 
195  const Double_t dEtaMin = -.1;
196  const Double_t dEtaMax = .1;
197  const Int_t nDEtaBin = (Int_t)ceil((dEtaMax-dEtaMin)/.001);
198 
199  // const Double_t dPtMin = -6;
200  // const Double_t dPtMax = 6;
201  // const Int_t nDPtBin = (Int_t)ceil((dPtMax-dPtMin)/.2);
202 
203  const Double_t phiMin = -3.14159;
204  const Double_t phiMax = 3.14159;
205  const Double_t phiDegMin = -165;
206  const Double_t phiDegMax = 195;
207  const Int_t nPhiBin = 12;
208  const Int_t nPhiSmallBin = 24;
209  const Int_t nPhiThinBin = 24*5;
210 
211  const Double_t dipMin = -.5;
212  const Double_t dipMax = .5;
213  const Int_t nDipBin = (Int_t)ceil((dipMax-dipMin)/.02);
214 
215  const Double_t dipWideMin = -.5;
216  const Double_t dipWideMax = .5;
217  const Int_t nDipWideBin = (Int_t)ceil((dipMax-dipMin)/.1);
218 
219  const Double_t pzMin = 5;
220  const Double_t pzMax = -5;
221  const Int_t nPzBin = (Int_t)ceil((pzMax-pzMin)/1);
222 
223  const Double_t dcaZGlMin = -.5;
224  const Double_t dcaZGlMax = .5;
225  const Int_t nDcaZGlBin = (Int_t)ceil((dcaZGlMax-dcaZGlMin)/.02);
226 
227  const Double_t dcaZGlWideMin = -.5;
228  const Double_t dcaZGlWideMax = .5;
229  const Int_t nDcaZGlWideBin = (Int_t)ceil((dcaZGlWideMax-dcaZGlWideMin)/.1);
230 
231  const Double_t dDipMin = -.003;
232  const Double_t dDipMax = .003;
233  const Int_t nDDipBin = (Int_t)ceil((dDipMax-dDipMin)/.0001);
234 
235  const Double_t dcaXYPrMin = -.2;
236  const Double_t dcaXYPrMax = .2;
237  const Int_t nDcaXYPrBin = (Int_t)ceil((dcaXYPrMax-dcaXYPrMin)/.01);
238 
239  const Double_t dedxMin = 0;
240  const Double_t dedxMax = 1e-5;
241  const Int_t nDedxBin = (Int_t)ceil((dedxMax-dedxMin)/.2e-6);
242 
243 }
244 
245 
246 
247 
248 
249 
250 #endif