14 #ifndef __STESTRUCTCUTBIN__H
15 #define __STESTRUCTCUTBIN__H
20 #include "StEStructPairCuts.h"
35 TH1D** mHCutBinHists[8];
38 StEStructCutBin(): mcutMode(0), mnumBins(1), mcutModeName(0), mcutBinHistMode(0), mMaxDEta(2) { setMode(0); };
60 int notSymmetrizedXX3(
int cutBin,
int pairCharge);
61 int notSymmetrizedXX5(
int cutBin,
int pairCharge);
62 int notSymmetrizedXX8(
int cutBin,
int pairCharge);
63 int notSymmetrizedXX9(
int cutBin,
int pairCharge);
65 void initCutBinHists5();
66 void writeCutBinHists5();
75 void setMode(
int mode);
78 void setCutBinHistMode(
int mode);
79 void setMaxDEta(
double deta);
80 int getCutBinHistMode();
81 void initCutBinHists();
82 void writeCutBinHists();
84 int getNumPairDensityBins();
85 int getNumParentBins();
89 int getPairDensityBin(
int ibin);
93 int notSymmetrizedXX(
int cutBin,
int pairCharge);
94 char* printCutBinName();
100 inline char* StEStructCutBin::printCutBinName(){
return mcutModeName; }
102 inline void StEStructCutBin::setMaxDEta(
double deta){ mMaxDEta = deta; }
104 inline int StEStructCutBin::getNumBins(){
return mnumBins; }
105 inline int StEStructCutBin::getNumPairDensityBins() {
112 inline int StEStructCutBin::getNumParentBins(){
return mnumParentBins; }
113 inline int StEStructCutBin::getNumQABins() {
return mnumParentBins; }
126 retVal=getCutBinMode1(pc);
131 retVal=getCutBinMode2(pc);
136 retVal=getCutBinMode3(pc);
141 retVal=getCutBinMode4(pc);
146 retVal=getCutBinMode5(pc,pairCase);
151 retVal=getCutBinMode6(pc,pairCase);
156 retVal=getCutBinMode7(pc,pairCase);
161 retVal=getCutBinMode8(pc);
166 retVal=getCutBinMode9(pc);
171 retVal=getCutBinMode10(pc);
177 inline int StEStructCutBin::getPairDensityBin(
int ibin){
179 if (2 != ibin && 6 != ibin && 10 != ibin && 14 != ibin) {
191 float yt = trkPtr->Yt();
195 }
else if ((1.99<yt) && (yt<2.383)) {
200 }
else if (5 == mcutMode) {
201 return trkPtr->PID();
202 }
else if (8 == mcutMode) {
203 float yt = trkPtr->Yt();
207 }
else if ((1.8<yt) && (yt<2.2)) {
212 }
else if (9 == mcutMode) {
213 float pt = trkPtr->Pt();
232 inline void StEStructCutBin::initCutBinHists() {
244 inline void StEStructCutBin::writeCutBinHists() {
258 if ( (-1 == pc->Track1()->Charge()) &&
259 (+1 == pc->Track2()->Charge()) ) {
265 return ignorePair5(pc);
274 return symmetrizeXX3(pc);
277 return symmetrizeXX5(pc);
280 return symmetrizeXX8(pc);
283 return symmetrizeXX9(pc);
295 return switchXX3(pc);
298 return switchXX5(pc);
301 return switchXX8(pc);
304 return switchXX9(pc);
315 inline int StEStructCutBin::notSymmetrizedXX(
int cutBin,
int pairCharge) {
318 return notSymmetrizedXX3(cutBin,pairCharge);
321 return notSymmetrizedXX5(cutBin,pairCharge);
324 return notSymmetrizedXX8(cutBin,pairCharge);
327 return notSymmetrizedXX9(cutBin,pairCharge);