StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ThQinvCorrFctn.cxx
1 /***************************************************************************
2  *
3  *
4  *
5  * Author: Laurent Conin, Fabrice Retiere, Subatech, France
6  ***************************************************************************
7  *
8  * Description : Calculate the theoretical QInv correlation function
9  *
10  ***************************************************************************
11  *
12  *
13  *
14  ***************************************************************************/
15 
16 #include "StHbtMaker/ThCorrFctn/ThQinvCorrFctn.h"
17 
18 #ifdef __ROOT__
19 ClassImp(ThQinvCorrFctn)
20 #endif
21 
22 ThQinvCorrFctn::ThQinvCorrFctn(char* aTitle, int aNBins,
23  double aHLo, double aHHi)
24  : StHbtThCorrFctn() ,StHbtRoot1DCF(aTitle, aNBins, aHLo, aHHi)
25 { /* no-op */ };
26 ThQinvCorrFctn::ThQinvCorrFctn(const ThQinvCorrFctn& ThCf) : StHbtThCorrFctn(ThCf),StHbtRoot1DCF( ThCf)
27 { /* no-op */ }
28 
29 ThQinvCorrFctn::~ThQinvCorrFctn()
30 { /* no-op */ };
31 
32 //____________________________
33 void ThQinvCorrFctn::AddNum(StHbtThPair* aThPair){
34 
35 }
36 void ThQinvCorrFctn::AddDen(StHbtThPair* aThPair){
37 
38  double tQInv = 2*fabs(aThPair->GetMeasPair()->KStar());
39  // cout << "Filling ThQinv CF with values: KStar: " << tQInv << " wDen: " << aThPair->GetWeightDen() << " wNum: " << aThPair->GetWeightNum() << endl;
40  if(tQInv>=mHLo && tQInv<=mHHi){
41  mDenominator->Fill(tQInv,aThPair->GetWeightDen());
42  }
43  if(tQInv>=mHLo && tQInv<=mHHi){
44  mNumerator->Fill(tQInv,aThPair->GetWeightNum());
45  }
46 }
47 
48 void ThQinvCorrFctn::Finish(){
49  StHbtRoot1DCF::Finish();
50 }
51 
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();};
56 
57 inline StHbtThCorrFctn* ThQinvCorrFctn::ThClone() const {return new ThQinvCorrFctn(*this);}