16 #include "StHbtMaker/ThCorrFctn/ThQinvCorrFctn.h"
22 ThQinvCorrFctn::ThQinvCorrFctn(
char* aTitle,
int aNBins,
23 double aHLo,
double aHHi)
29 ThQinvCorrFctn::~ThQinvCorrFctn()
38 double tQInv = 2*fabs(aThPair->GetMeasPair()->KStar());
40 if(tQInv>=mHLo && tQInv<=mHHi){
41 mDenominator->Fill(tQInv,aThPair->GetWeightDen());
43 if(tQInv>=mHLo && tQInv<=mHHi){
44 mNumerator->Fill(tQInv,aThPair->GetWeightNum());
48 void ThQinvCorrFctn::Finish(){
49 StHbtRoot1DCF::Finish();
52 inline StHbt1DHisto* ThQinvCorrFctn::Numerator()
const { cout <<
"Return Ratio" << endl;
return mNumerator;};
53 inline StHbt1DHisto* ThQinvCorrFctn::Denominator()
const {cout <<
"Return Denimnatior" << endl;
return mDenominator;};
54 inline StHbt1DHisto* ThQinvCorrFctn::Ratio()
const {cout <<
"Return Numerator" << endl;
return mRatio;};
55 inline void ThQinvCorrFctn::Write() {mNumerator->Write();mDenominator->Write();mRatio->Write();};