StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
MinvLikeSignCorrFctn_Minv_vs_Phi.h
1 /***************************************************************************
2  *
3  * $Id: MinvLikeSignCorrFctn_Minv_vs_Phi.h,v 1.3 2001/06/04 19:09:51 rcwells Exp $
4  *
5  * Author: Frank Laue, Ohio State, laue@mps.ohio-state.edu
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * A simple invariant-mass correlation function
10  *
11  ***************************************************************************
12  *
13  **************************************************************************/
14 
15 #ifndef MinvLikeSignCorrFctn_Minv_vs_Phi_hh
16 #define MinvLikeSignCorrFctn_Minv_vs_Phi_hh
17 
18 # define M_PI 3.14159265358979323846 /* pi */
19 # define M_PIl 3.1415926535897932384626433832795029L /* pi */
20 
21 #include "StHbtMaker/Infrastructure/StHbtAnalysis.h"
22 #include "StHbtMaker/Base/StHbtLikeSignCorrFctn.hh"
23 #include "StHbtMaker/Cut/mikesEventCut.h"
24 #include <cmath>
25 
26 
28 public:
30  MinvLikeSignCorrFctn_Minv_vs_Phi(char* title1, char* title2,
31  const int& nxbins=100, const float& xLo=.98, const float& xHi=1.08,
32  const int& nybins=12, const float& yLo=0., const float& yHi=M_PIl);
34 
35  virtual StHbtString Report();
36  virtual void AddRealPair(const StHbtPair*);
37  virtual void AddMixedPair(const StHbtPair*);
38  virtual void AddLikeSignPositivePair(const StHbtPair*);
39  virtual void AddLikeSignNegativePair(const StHbtPair*);
40  virtual void Finish();
41  virtual void EventBegin(const StHbtEvent* ev) {
42  mReactionPlane = ev->ReactionPlane();
43  mReactionPlaneError = ev->ReactionPlaneSubEventDifference();
44  }
45 
47 
48  StHbt2DHisto* Numerator();
49  StHbt2DHisto* MixedEventDenominator();
50  StHbt2DHisto* PositiveDenominator();
51  StHbt2DHisto* NegativeDenominator();
52  StHbt2DHisto* MixedEventDifference();
53  StHbt2DHisto* LikeSignDifference();
54 
55 private:
56  float mReactionPlane;
57  float mReactionPlaneError;
58  StHbt2DHisto* mNumerator;
59  StHbt2DHisto* mMixedEventDenominator;
60  StHbt2DHisto* mPositiveDenominator;
61  StHbt2DHisto* mNegativeDenominator;
62  StHbt2DHisto* mMixedEventDifference;
63  StHbt2DHisto* mLikeSignDifference;
64 
65 
66 #ifdef __ROOT__
68 #endif
69 };
70 
71 
72 inline StHbt2DHisto* MinvLikeSignCorrFctn_Minv_vs_Phi::Numerator(){return mNumerator;}
73 inline StHbt2DHisto* MinvLikeSignCorrFctn_Minv_vs_Phi::MixedEventDenominator(){return mMixedEventDenominator;}
74 inline StHbt2DHisto* MinvLikeSignCorrFctn_Minv_vs_Phi::PositiveDenominator(){return mPositiveDenominator;}
75 inline StHbt2DHisto* MinvLikeSignCorrFctn_Minv_vs_Phi::NegativeDenominator(){return mNegativeDenominator;}
76 inline StHbt2DHisto* MinvLikeSignCorrFctn_Minv_vs_Phi::MixedEventDifference(){return mMixedEventDifference;}
77 inline StHbt2DHisto* MinvLikeSignCorrFctn_Minv_vs_Phi::LikeSignDifference(){return mLikeSignDifference;}
78 
79 inline MinvLikeSignCorrFctn_Minv_vs_Phi* MinvLikeSignCorrFctn_Minv_vs_Phi::Clone() { MinvLikeSignCorrFctn_Minv_vs_Phi* c = new MinvLikeSignCorrFctn_Minv_vs_Phi(*this); return c;}
80 inline MinvLikeSignCorrFctn_Minv_vs_Phi::MinvLikeSignCorrFctn_Minv_vs_Phi(const MinvLikeSignCorrFctn_Minv_vs_Phi& fctn) :StHbtLikeSignCorrFctn() {
81  mNumerator = new StHbt2DHisto(*(fctn.mNumerator));
82  mMixedEventDenominator= new StHbt2DHisto(*(fctn.mMixedEventDenominator));
83  mPositiveDenominator = new StHbt2DHisto(*(fctn.mPositiveDenominator));
84  mNegativeDenominator = new StHbt2DHisto(*(fctn.mNegativeDenominator));
85  mMixedEventDifference = new StHbt2DHisto(*(fctn.mMixedEventDifference));
86  mLikeSignDifference = new StHbt2DHisto(*(fctn.mLikeSignDifference));
87 }
88 
89 
90 #endif
91