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