14 #ifndef __STESTRUCTSUPPORT__H
15 #define __STESTRUCTSUPPORT__H
37 bool mPairNormalization;
40 bool mYtYtNormalization;
41 bool mYtYtVolumeNormalization;
43 bool goodName(
const char* name);
44 bool goodName_zBuf(
const char* name,
int zBin);
45 char* getFrontName(
int itype);
46 const char* getTypeName(
int itype);
47 const char* getChargeSignName(
int ics);
48 char* prepend(
const char* name,
const char* s1);
49 char* swapIn(
const char* name,
const char* s1,
const char* s2);
50 void rescale(TH2D** hists);
51 void rescale(TH2D** hists,
int zBin);
52 void rescalePt(TH2D** hists,
int zBin);
53 void setSymmetrizeUS(
bool symm);
54 void symmetrizeUS(
const char *name, TH2D** histos);
55 void symmetrizePtUS(
const char *name, TH2D** histos);
61 void setTFile(TFile* tf);
62 void setBGMode(
int mode);
63 void setApplyDEtaFix();
64 void unsetApplyDEtaFix();
71 float *getCommonNumber(
int zBin);
72 float *getCommonPairs(
int zBin);
73 float *getChargeNumber(
int zBin);
74 float *getChargePairs(
int zBin);
76 double getCIdNdEtadPhi();
77 double *getd2NdEtadPhi(
int zBin,
bool include2s=
true);
78 double *getScaleFactors();
79 double *getScaleFactors(
int zBin);
81 double *getptHat(
int zBin);
82 int histogramExists(
const char* name,
int zBin);
83 TH2D** getHists(
const char* name,
int zBin);
84 TH2D** getLocalClones(
const char* name,
int zBin);
85 TH2D** getPtHists(
const char* name,
int zBin);
86 TH2D** getPtClones(
const char* name,
int zBin);
87 float* getNorms(TH2D** histArray);
88 double getRatio(
int iCombo,
int zBin);
91 TH2D** buildCommonRatios(
const char* name,
float* sf=0);
92 TH2D** buildCommonRatios(
const char* name,
float* sf,
int zBin);
93 TH2D** buildCommonCFunctions(
const char* name,
float* sf=0);
94 TH2D** buildCommonCFunctions(
const char* name,
float* sf,
int zBin);
95 TH2D** buildCommonRFunctions(
const char* name,
float* sf=0);
96 TH2D** buildCommonRFunctions(
const char* name,
float* sf,
int zBin);
97 TH2D** buildCommon(
const char* name,
int opt=2,
float* sf=0);
98 TH2D** buildCommon(
const char* name,
int opt,
float* sf,
int zBin);
99 TH2D** buildPtCommon(
const char* name,
int opt=2,
int subtract=1);
100 TH2D** buildPtCommon(
const char* name,
int opt,
int subtract,
int zBin);
103 TH2D** buildChargeTypeRatios(
const char* name,
float* sf=0);
104 TH2D** buildChargeTypeRatios(
const char* name,
float* sf,
int zBin);
105 TH2D** buildChargeTypeCFunctions(
const char* name,
float* sf=0);
106 TH2D** buildChargeTypeCFunctions(
const char* name,
float* sf,
int zBin);
107 TH2D** buildChargeTypeRFunctions(
const char* name,
float* sf=0);
108 TH2D** buildChargeTypeRFunctions(
const char* name,
float* sf,
int zBin);
109 TH2D** buildChargeTypes(
const char* name,
int opt=2,
float* sf=0);
110 TH2D** buildChargeTypes(
const char* name,
int opt,
float* sf,
int zBin);
111 TH2D** buildPtChargeTypes(
const char* name,
int opt=2,
int subtract=1);
112 TH2D** buildPtChargeTypes(
const char* name,
int opt,
int subtract,
int zBin);
114 TH2D** buildChargeTypesSumOfRatios(
const char* name,
int opt,
float* sf=0);
115 TH2D** buildChargeTypesSumOfRatios(
const char* name,
int opt,
float* sf,
int zBin);
117 void scaleBackGround(TH2D* sib, TH2D* mix,
float sf=0);
118 void fixDEtaGeometric(TH2** h,
int numHists);
119 void fixDEta(TH2** h,
int numHists);
122 void writeAscii(TH2D** h,
int numHists,
const char* fname,
int optErrors);
127 inline void StEStructSupport::setTFile(TFile* tf){
131 inline void StEStructSupport::setBGMode(
int mode){
mbgMode=mode; };
132 inline void StEStructSupport::setApplyDEtaFix() { mapplyDEtaFix=
true; };
133 inline void StEStructSupport::unsetApplyDEtaFix(){ mapplyDEtaFix=
false; };
134 inline bool StEStructSupport::applyDEtaFix() {
return mapplyDEtaFix; };
135 inline void StEStructSupport::setSilent() { msilent=
true; };
136 inline void StEStructSupport::unsetSilent(){ msilent=
false; };
137 inline bool StEStructSupport::silent() {
return msilent; };
int mbgMode
for normalization comparing different cuts