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