Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pAu_bins_.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pAu_bins_.h
1 #ifndef pAu_bins__h
2 #define pAu_bins__h
3 
4 #include "noiBinVec.h"
5 
6 static const int _trigEt { 0 };
7 static const int _geantid { 0 };
8 static const int _bbc { 1 };
9 static const int _zdcx { 2 };
10 static const int _pt { 3 };
11 static const int _dphi { 4 }; // used for jets relative to trigger
12 static const int _eta { 4 };
13 static const int _dphi { 4 }; // used for jets relative to trigger
14 static const int _dca { 5 };
15 static const int _ptmatch { 5 }; // used for Aj jet pairs
16 static const int _nhitfit { 6 };
17 static const int _Aj { 6 }; // used for Aj jet pairs
18 static const int _nhitrat { 7 };
19 static const int _ptreco { 8 };
20 
21 // used for Aj and acoplanarity
22 /* static const int _dphiAj { 6 }; */
23 
24 static const int _etaAu { 0 }; // use like (*data)[_etaAu][_PUfit_m]
25 static const int _etaMid { 1 };
26 static const int _etaPP { 2 };
27 static const int _etaAll { 3 };
28 
29 static const int _phi_trig { 1 };
30 static const int _phi_trans { 2 };
31 static const int _phi_recoil { 3 };
32 
33 static const int _PUfit_b { 0 };
34 static const int _PUfit_m { 1 };
35 
36 // bin boundaries for 6 bins of ZDCx (the 7th is for all ZDCx)
37 static const array<int, 9> _0_zdcx_3kHz { 1, 4, 7, 10, 12, 15, 18, 21, 1 }; // for binning in 3kHz increments 4-28 kHz
38 static const array<int, 9> _1_zdcx_3kHz { 3, 6, 9, 12, 14, 17, 20, 23, 23 };
39 array<int,9> _i0_zdcx { 5, 8, 11, 14, 17, 20, 23, 26, 5 }; // binning by 3 for zdcx
40 array<int,9> _i1_zdcx { 7, 10, 13, 16, 19, 22, 25, 28, 28};
41 // bin kHz for the various bins (bin 1 at 4 kHz, etc...)
42 static const double kHz_ZDCx (int bin) { return (float)bin+3; };
43 
44 
45 #ifdef ioClass__h
46  static ioBinVec bin_id {{ -0.5, -0.5, 6, 5.5 }};
47  static ioBinVec bin_bbc {{ 0., 2802.38, 5460.32, 8420.66, 11722, 15410.1, 19584.9, 24371, 30105.3, 37666.3, 64000}};
48  static ioBinVec bin_bbc3070 {{ 0., 8420.66, 24371, 64000}};
49  static ioBinVec bin_zdcx {{ 0., 0., 30, 30000. }};
50  static ioBinVec bin_pt {{ // track pT bins
51  0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4,
52  1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9,
53  3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4,
54  4.5, 4.7, 4.9, 5.1, 5.3, 5.5, 5.7, 5.9, 6.1, 6.3, 6.5, 6.7, 6.9, 7.2, 7.5,
55  7.8, 8.1, 8.4, 8.7, 9.1, 9.5, 9.9, 10.4, 10.9, 11.4, 12.0, 12.6, 13.3, 15.0
56  }};
57  static ioBinVec bin_trigEt {{ 0., 4., 8., 12., 30. }};
58  static ioBinVec bin_dca {{ 0., 0., 15, 3. }};
59  static ioBinVec bin_hitsfit {{ 0.5, 0.5, 47., 47.5 }};
60  static ioBinVec bin_fitrat {{ 0.02, 0.02, 10, 1.02 }};
61  static ioBinVec bin_eta {{ -1., -0.3, 0.3, 1. }};
62  static ioBinVec bin_dummy {{ 0., 1. }}; // a dummy bin for non-used axes
63 #endif
64 
65 #ifdef noiBinVec__h
66  static tuBinVec bin_id {{ -0.5, -0.5, 6, 5.5 }};
67  static tuBinVec bin_bbc {{ 0., 2802.38, 5460.32, 8420.66, 11722, 15410.1, 19584.9, 24371, 30105.3, 37666.3, 64000}};
68  static tuBinVec bin_bbc3070 {{ 0., 8420.66, 24371, 64000}};
69  static tuBinVec bin_zdcx {{ 0., 0., 30, 30000. }};
70  static tuBinVec bin_pt {{ // track pT bins
71  0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4,
72  1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9,
73  3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4,
74  4.5, 4.7, 4.9, 5.1, 5.3, 5.5, 5.7, 5.9, 6.1, 6.3, 6.5, 6.7, 6.9, 7.2, 7.5,
75  7.8, 8.1, 8.4, 8.7, 9.1, 9.5, 9.9, 10.4, 10.9, 11.4, 12.0, 12.6, 13.3, 15.0
76  }};
77  static tuBinVec bin_trigEt {{ 0., 4., 8., 12., 30. }};
78  static tuBinVec bin_dca {{ 0., 0., 15, 3. }};
79  static tuBinVec bin_hitsfit {{ 0.5, 0.5, 47., 47.5 }};
80  static tuBinVec bin_fitrat {{ 0.02, 0.02, 10, 1.02 }};
81  static tuBinVec bin_eta {{ -1., -0.3, 0.3, 1. }};
82  static tuBinVec bin_dummy {{ 0., 1. }}; // a dummy bin for non-used axes
83 #endif
84 
85  static map<string, array<double,4>> TsallisParams {
86  {"Tsallis_pp_pi", {{ 0.135000, 5.5037062019, 0.1277746601, 9.7595242212 }}},
87  {"Tsallis_pp_antipi", {{ 0.135000, 5.5865021613, 0.1270067077, 9.7325864609 }}},
88  {"Tsallis_pp_K", {{ 0.493677, 0.1386983308, 0.1929685766, 11.8247896746 }}},
89  {"Tsallis_pp_antiK", {{ 0.493677, 0.1386983308, 0.1929685766, 11.8247896746 }}},
90  {"Tsallis_pp_p", {{ 0.938272, 0.0749981986, 0.1758814595, 10.5452494593 }}},
91  {"Tsallis_pp_pbar", {{ 0.938272, 0.0642725426, 0.1691919677, 10.0635969124 }}},
92 
93  {"Tsallis_dAu_pi", {{ 0.135000, 13.1377700117, 0.1525501142, 10.1869046869 }}},
94  {"Tsallis_dAu_antipi", {{ 0.135000, 13.6251153259, 0.1505198390, 10.0949606259 }}},
95  {"Tsallis_dAu_K", {{ 0.493677, 0.4615505225, 0.2215729988, 11.6137583852 }}},
96  {"Tsallis_dAu_antiK", {{ 0.493677, 0.4675391506, 0.2192846303, 11.4475846094 }}},
97  {"Tsallis_dAu_p", {{ 0.938272, 0.2873036847, 0.2114254603, 11.4410990835 }}},
98  {"Tsallis_dAu_pbar", {{ 0.938272, 0.2257531137, 0.2195209347, 13.0260305553 }}}
99  };
100  //
101  static constexpr double _n10xPyth6[9] {
102  3920155 , 2101168 , 1187058 , 1695141 ,
103  4967075 , 1797387 , 260676 , 261926 , 262366
104  };
105  static constexpr double _XsecPyth6[9] {
106  0.107509, 0.0190967, 0.00475202,
107  0.00198812, 0.000361282, 9.65463E-06,
108  4.71077E-07, 2.68464E-08, 1.38211E-09
109  }; //
110  static constexpr double _pthat9[9] {
111  0.107509 / 3920155,
112  0.0190967 / 2101168,
113  0.00475202 / 1187058,
114  0.00198812 / 1695141,
115  0.000361282 / 4967075,
116  9.65463E-06 / 1797387,
117  4.71077E-07 / 260676,
118  2.68464E-08 / 261926,
119  1.38211E-09 / 262366
120  };
121  //
122 #endif // pAu_bins__h
123  //
124