16 #include "StHbtMaker/ThCorrFctn/Th3DQCorrFctn.h"
22 Th3DQCorrFctn::Th3DQCorrFctn(
char* aTitle,
int aNBins,
23 double aHLo,
double aHHi)
33 strcpy(tit,
"Outdist");
35 qOutdist =
new StHbt1DHisto(tit,aTitle,qnbins,qmin,qmax);
36 strcpy(tit,
"OutSdist");
38 qOutSdist =
new StHbt1DHisto(tit,aTitle,qnbins,qmin,qmax);
39 strcpy(tit,
"DeltaOutdist");
41 DeltaqOutdist =
new StHbt1DHisto(tit,aTitle,qnbins,dmin,dmax);
42 strcpy(tit,
"Sidedist");
44 qSidedist =
new StHbt1DHisto(tit,aTitle,qnbins,qmin,qmax);
45 strcpy(tit,
"SideSdist");
47 qSideSdist =
new StHbt1DHisto(tit,aTitle,qnbins,qmin,qmax);
48 strcpy(tit,
"DeltaSidedist");
50 DeltaqSidedist =
new StHbt1DHisto(tit,aTitle,qnbins,dmin,dmax);
51 strcpy(tit,
"Longdist");
53 qLongdist =
new StHbt1DHisto(tit,aTitle,qnbins,qmin,qmax);
54 strcpy(tit,
"LongSdist");
56 qLongSdist =
new StHbt1DHisto(tit,aTitle,qnbins,qmin,qmax);
57 strcpy(tit,
"DeltaLongdist");
59 DeltaqLongdist =
new StHbt1DHisto(tit,aTitle,qnbins,dmin,dmax);
63 DeltaqOutdist->Sumw2();
66 DeltaqSidedist->Sumw2();
69 DeltaqLongdist->Sumw2();
76 Th3DQCorrFctn::~Th3DQCorrFctn()
82 double tQInv=fabs(aThPair->GetMeasPair()->KStar());
83 if(tQInv>=mHLo && tQInv<=mHHi){
84 mNumerator->Fill(tQInv,aThPair->GetWeightNum());
90 double tQInv=2*fabs(aThPair->GetMeasPair()->KStar());
91 if(tQInv>=mHLo && tQInv<=mHHi){
92 mDenominator->Fill(tQInv,aThPair->GetWeightDen());
96 double qOut = aThPair->GetMeasPair()->qOutCMS();
97 double qSide = aThPair->GetMeasPair()->qSideCMS();
98 double qLong = aThPair->GetMeasPair()->qLongCMS();
100 double RqOut = aThPair->RealqOutCMS();
101 double RqSide = aThPair->RealqSideCMS();
102 double RqLong = aThPair->RealqLongCMS();
104 qOutdist->Fill(qOut);
105 qOutSdist->Fill(RqOut);
106 DeltaqOutdist->Fill(qOut - RqOut);
107 qSidedist->Fill(qSide);
108 qSideSdist->Fill(RqSide);
109 DeltaqSidedist->Fill(qSide - RqSide);
110 qLongdist->Fill(qLong);
111 qLongSdist->Fill(RqLong);
112 DeltaqLongdist->Fill(qLong - RqLong);
116 void Th3DQCorrFctn::Finish(){
117 StHbtRoot1DCF::Finish();
120 inline StHbt1DHisto* Th3DQCorrFctn::Numerator()
const { cout <<
"Return Ratio" << endl;
return mNumerator;};
121 inline StHbt1DHisto* Th3DQCorrFctn::Denominator()
const {cout <<
"Return Denimnatior" << endl;
return mDenominator;};
122 inline StHbt1DHisto* Th3DQCorrFctn::Ratio()
const {cout <<
"Return Numerator" << endl;
return mRatio;};
123 inline void Th3DQCorrFctn::Write() {
124 mNumerator->Write();mDenominator->Write();mRatio->Write();
125 qOutdist->Write(); qOutSdist->Write(); DeltaqOutdist->Write();
126 qSidedist->Write(); qSideSdist->Write(); DeltaqSidedist->Write();
127 qLongdist->Write(); qLongSdist->Write(); DeltaqLongdist->Write();