StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
MinvCorrFctnY_vs_Pt.h
1 /***************************************************************************
2  *
3  * $Id: MinvCorrFctnY_vs_Pt.h,v 1.2 2000/03/16 01:56:36 laue 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  * $Log: MinvCorrFctnY_vs_Pt.h,v $
14  * Revision 1.2 2000/03/16 01:56:36 laue
15  * Copy constructor added to some correlation functions
16  *
17  * Revision 1.1 2000/02/28 14:39:31 laue
18  * Correlation function to fill phasespace rapidity vs pt
19  *
20  * Revision 1.2 1999/07/06 22:33:20 lisa
21  * Adjusted all to work in pro and new - dev itself is broken
22  *
23  * Revision 1.1.1.1 1999/06/29 16:02:57 lisa
24  * Installation of StHbtMaker
25  *
26  **************************************************************************/
27 
28 #ifndef MinvCorrFctnY_vs_Pt_hh
29 #define MinvCorrFctnY_vs_Pt_hh
30 
31 #include "StHbtMaker/Infrastructure/StHbtAnalysis.h"
32 #include "StHbtMaker/Base/StHbtCorrFctn.hh"
33 #include "StHbtMaker/Cut/mikesEventCut.h"
34 
36 public:
37  MinvCorrFctnY_vs_Pt(char* title,
38  const int& nbins1, const float& MinvLo1, const float& MinvHi1,
39  const int& nbins2, const float& MinvLo2, const float& MinvHi2);
41  virtual ~MinvCorrFctnY_vs_Pt();
42 
43  virtual StHbtString Report();
44  virtual void AddRealPair(const StHbtPair*);
45  virtual void AddMixedPair(const StHbtPair*);
46 
47  virtual void Finish();
48 
49  StHbt2DHisto* Numerator();
50  StHbt2DHisto* Denominator();
51  StHbt2DHisto* Difference();
52 
53 private:
54  double mRealPairs,mMixedPairs;
55  StHbt2DHisto* mNumerator;
56  StHbt2DHisto* mDenominator;
57  StHbt2DHisto* mDifference;
58 
59 #ifdef __ROOT__
60  ClassDef(MinvCorrFctnY_vs_Pt, 1)
61 #endif
62 };
63 
64 inline StHbt2DHisto* MinvCorrFctnY_vs_Pt::Numerator(){return mNumerator;}
65 inline StHbt2DHisto* MinvCorrFctnY_vs_Pt::Denominator(){return mDenominator;}
66 inline StHbt2DHisto* MinvCorrFctnY_vs_Pt::Difference(){return mDifference;}
67 inline MinvCorrFctnY_vs_Pt::MinvCorrFctnY_vs_Pt(const MinvCorrFctnY_vs_Pt& fctn) :StHbtCorrFctn() {
68  mNumerator = new StHbt2DHisto(*(fctn.mNumerator));
69  mDenominator= new StHbt2DHisto(*(fctn.mDenominator));
70  mDifference = new StHbt2DHisto(*(fctn.mDifference));
71 }
72 
73 #endif
74