StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StHbtRoot2DCF.hh
1 /***************************************************************************
2  *
3  *
4  *
5  * Author: Laurent Conin, Fabrice Retiere, Subatech, France
6  ***************************************************************************
7  *
8  * Description : same as StHbtRoot1DCF, but for 2D Corr Fctn
9  *
10  ***************************************************************************
11  *
12  *
13  *
14  ***************************************************************************/
15 #ifndef StHbtRoot2DCF_hh
16 #define StHbtRoot2DCF_hh
17 
18 #include "StHbtMaker/Base/StHbtCorrFctn.hh"
19 #include "StHbtMaker/Infrastructure/StHbtNamed.hh"
20 #include "StHbtMaker/Infrastructure/StHbtTypes.hh"
21 
22 class StHbtRoot2DCF : public virtual StHbtCorrFctn, public virtual StHbtNamed {
23 
24 public:
25 
26 
27  StHbtRoot2DCF(char* aTitle, int aNBinsx, double aHLox, double aHHix,
28  int aNBinsy, double aHLoy, double aHHiy);
29 
31 
32  virtual ~StHbtRoot2DCF() ;
33 
34  virtual void Finish();
35  virtual StHbtString Report();
36 
37  virtual void SetName( const char* aName);
38 
39  virtual StHbt2DHisto* Numerator() const ;
40  virtual StHbt2DHisto* Denominator() const ;
41  virtual StHbt2DHisto* Ratio() const ;
42  virtual void Write() ;
43 
44 
45 
46 protected:
47  double mHLo;
48  double mHHi;
49  double mHLoY;
50  double mHHiY;
51 
52  StHbt2DHisto* mNumerator;
53  StHbt2DHisto* mDenominator;
54  StHbt2DHisto* mRatio;
55 
56 
57  StHbtRoot2DCF(): StHbtCorrFctn(),StHbtNamed(),mHLo(0),mHHi(0),mHLoY(0),mHHiY(0),mNumerator(0),mDenominator(0),mRatio(0){};
58 
59 #ifdef __ROOT__
60 ClassDef(StHbtRoot2DCF,1)
61 #endif
62 };
63 inline StHbt2DHisto* StHbtRoot2DCF::Numerator() const {return mNumerator;};
64 inline StHbt2DHisto* StHbtRoot2DCF::Denominator() const {return mDenominator;};
65 inline StHbt2DHisto* StHbtRoot2DCF::Ratio() const {return mRatio;};
66 inline void StHbtRoot2DCF::Write() {mNumerator->Write();mDenominator->Write();mRatio->Write();};
67 
68 #endif