13 #include "StEStructBinning.h"
25 nQ = ESTRUCT_Q_BINS-1;
26 dQ = (maxQ-minQ)/(
float)nQ;
32 nPhi = ESTRUCT_PHI_BINS-1;
33 dPhi = (maxPhi-minPhi)/(
float)nPhi;
39 nDPhi = ESTRUCT_DPHI_BINS-1;
40 dDPhi = M_PI/((float)nDPhi-1.0);
44 nSPhi = ESTRUCT_SPHI_BINS-1;
45 dSPhi=(maxSPhi-minSPhi)/(
float)nSPhi;
48 nEta = ESTRUCT_ETA_BINS-1;
49 nDEta = ESTRUCT_DETA_BINS-1;
50 nSEta = ESTRUCT_SETA_BINS-1;
58 nYt = ESTRUCT_YT_BINS-1;
59 dYt = (maxYt-minYt)/(
float)nYt;
63 nDYt= ESTRUCT_DYT_BINS-1;
64 dDYt=(maxDYt-minDYt)/(
float)nDYt;
68 nSYt = ESTRUCT_SYT_BINS-1;
69 dSYt=(maxSYt-minSYt)/(
float)nSYt;
74 minXt= 1 - exp(-(sqrt(0.15*0.15+0.139*0.139)-0.139)/0.4);
76 nXt = ESTRUCT_XT_BINS-1;
77 dXt = (maxXt-minXt)/(
float)nXt;
83 nmeanPt = ESTRUCT_MEANPT_BINS-1;
84 dmeanPt = (maxMeanPt-minMeanPt)/(
float)nmeanPt;
88 nPt = ESTRUCT_PT_BINS-1;
89 dPt = (maxPt-minPt)/(
float)nPt;
93 nDPt= ESTRUCT_DPT_BINS-1;
94 dDPt=(maxDPt-minDPt)/(
float)nDPt;
98 nSPt = ESTRUCT_SPT_BINS-1;
99 dSPt=(maxSPt-minSPt)/(
float)nSPt;
104 nTPCSep = ESTRUCT_TPCSEP_BINS - 1;
105 dTPCSep = (maxTPCSep-minTPCSep)/(
float)nTPCSep;
109 nTPCSepPhi = ESTRUCT_TPCSEPPHI_BINS - 1;
110 dTPCSepPhi = (maxTPCSepPhi-minTPCSepPhi)/(
float)nTPCSepPhi;
114 nTPCQuality = ESTRUCT_TPCQUALITY_BINS - 1;
115 dTPCQuality = (maxTPCQuality-minTPCQuality)/(
float)nTPCQuality;
120 ndEdx = ESTRUCT_DEDX_BINS - 1;
121 ddEdx = (maxdEdx-mindEdx)/(
float)ndEdx;
126 nPtot = ESTRUCT_PTOT_BINS - 1;
127 dPtot = (maxPtot-minPtot)/(
float)nPtot;
132 nQAEta = ESTRUCT_QAETA_BINS - 1;
133 dQAEta = (maxQAEta-minQAEta)/(
float)nQAEta;
138 nQAPhi = ESTRUCT_QAPHI_BINS - 1;
139 dQAPhi = (maxQAPhi-minQAPhi)/(
float)nQAPhi;
144 nQAPt = ESTRUCT_QAPT_BINS - 1;
145 dQAPt = (maxQAPt-minQAPt)/(
float)nQAPt;
150 void StEStructBinning::setEtaRange(
float xmin,
float xmax){
156 dEta = (
maxEta-minEta)/(
float)nEta;
160 dDEta = (
maxDEta-minDEta)/((
float)nDEta-0.5);
162 calculateDEtaWeights();
166 dSEta = (
maxSEta-minSEta)/(
float)nSEta;
172 void StEStructBinning::calculateDEtaWeights() {
175 for(
int i=0;i<=nDEta;i++) {
176 mdetaWeights.x.deta[i]=0.;
184 double fdeta0 = dDEta/4.0;
185 mdetaWeights.x.deta[0] = 1.0/(1.0 - (fdeta0/
maxDEta));
186 for(
int i=1;i<nDEta;i++){
187 fdeta0 = fabs(detaVal(i));
188 mdetaWeights.x.deta[i] = 1.0/(1.0 - (fdeta0/
maxDEta));
float maxSEta
sigma phi bins
float maxDEta
delta phi bins