StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Q3invCorrFctn.h
1 /***************************************************************************
2  *
3  * $Id: Q3invCorrFctn.h,v 1.5 2001/06/03 21:05:31 willson Exp $
4  *
5  * Author: Robert Willson, Ohio State, willson@bnl.gov
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * A simple Q-invariant correlation function for three particle analyses.
10  *
11  ***************************************************************************
12  *
13  * $Log: Q3invCorrFctn.h,v $
14  * Revision 1.5 2001/06/03 21:05:31 willson
15  * Bins in entrance separation
16  *
17  * Revision 1.3 2000/05/11 21:17:30 willson
18  * Modified CorrFctn class
19  *
20  * Revision 1.2 2000/04/12 01:53:28 willson
21  * Initial Installation - Comments Added
22  *
23  *
24  ***************************************************************************/
25 
26 
27 #ifndef Q3invCorrFctn_hh
28 #define Q3invCorrFctn_hh
29 
30 #include "StHbtMaker/Base/StHbtCorrFctn.hh"
31 #include "StHbtMaker/Infrastructure/StHbtCoulomb.h"
32 //#include "StHbtMaker/Infrastructure/StHbtHisto.hh"
33 
34 class Q3invCorrFctn : public StHbtCorrFctn {
35 public:
36  Q3invCorrFctn(char* title, const int& nbinsQ, const float& QinvLo, const float& QinvHi, const int& nbinsMerge, const float& MergeLo, const float& MergeHi, const float& Split);
37  virtual ~Q3invCorrFctn();
38 
39  virtual StHbtString Report();
40  virtual void AddRealTriplet(const StHbtTriplet*);
41  virtual void AddMixedTriplet(const StHbtTriplet*);
42 
43  void AddCorrection(StHbtCoulomb*);
44  void AddPHisto(TH1D*);
45 
46  virtual void Finish();
47 
48  StHbt2DHisto* Numerator();
49  StHbt2DHisto* Denominator();
50  StHbt2DHisto* Ratio();
51 
52 private:
53  StHbt2DHisto* mNumerator;
54  StHbt2DHisto* mDenominator;
55  StHbt2DHisto* mRatio;
56  TH1D* mPHist;
57 
58  ClassDef(Q3invCorrFctn, 1)
59 
60  float mSplit;
61  StHbtCoulomb mCorrection;
62 
63 };
64 
65 inline StHbt2DHisto* Q3invCorrFctn::Numerator(){return mNumerator;}
66 inline StHbt2DHisto* Q3invCorrFctn::Denominator(){return mDenominator;}
67 inline StHbt2DHisto* Q3invCorrFctn::Ratio(){return mRatio;}
68 inline void Q3invCorrFctn::AddPHisto(TH1D *x){mPHist = x;}
69 
70 #endif
71