Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bins.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file bins.h
1 #if defined INCLUDE_VZ_BINS || defined INCLUDE_VZ_RANGE || defined INCLUDE_VZ_N
2 constexpr int nvz = 30;
3 #if defined INCLUDE_VZ_BINS || defined INCLUDE_VZ_RANGE
4 constexpr float vzmin = -15;
5 constexpr float vzmax = 15;
6 #if defined INCLUDE_VZ_BINS
7 float vzb[nvz + 1];
8 for (int i = 0; i <= nvz; i++)
9  vzb[i] = i * (vzmax - vzmin) / nvz + vzmin;
10 #endif /* defined INCLUDE_VZ_BINS */
11 #endif /* defined INCLUDE_VZ_BINS || defined INCLUDE_VZ_RANGE */
12 #endif /* defined INCLUDE_VZ_BINS || defined INCLUDE_VZ_RANGE || defined INCLUDE_VZ_N */
13 
14 #if defined INCLUDE_ETA_BINS || defined INCLUDE_ETA_RANGE || defined INCLUDE_ETA_N
15 constexpr int neta = 36;
16 #if defined INCLUDE_ETA_BINS || defined INCLUDE_ETA_RANGE
17 constexpr float etamin = -3.6;
18 constexpr float etamax = 3.6;
19 #if defined INCLUDE_ETA_BINS
20 float etab[neta + 1];
21 for (int i = 0; i <= neta; i++)
22  etab[i] = i * (etamax - etamin) / neta + etamin;
23 #endif /* defined INCLUDE_ETA_BINS */
24 #endif /* defined INCLUDE_ETA_BINS || defined INCLUDE_ETA_RANGE */
25 #endif /* defined INCLUDE_ETA_BINS || defined INCLUDE_ETA_RANGE || defined INCLUDE_ETA_N */
26 
27 #if defined INCLUDE_MULT_BINS || defined INCLUDE_MULT_N
28 constexpr int nmult = 16;
29 #if defined INCLUDE_MULT_BINS
30 // constexpr float multb[nmult + 1] = {
31 // 0, 20, 50, 100, 200,
32 // 320, 540, 800, 1200, 1750,
33 // 2400, 3200, 4200, 5400, 7000,
34 // 12800
35 // };
36 constexpr float multb[nmult + 1] = {0, 30, 70, 150, 280, 500, 800, 1200, 1900, 2600, 3600, 4900, 6500, 8300, 10800, 15400, 20000};
37 
38 #endif /* defined (INCLUDE_MULT_BINS) */
39 #endif /* defined (INCLUDE_MULT_BINS) || defined (INCLUDE_MULT_N) */