StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
NonIdPurityCorrFctn.h
1 /***************************************************************************
2  *
3  * $Id: NonIdPurityCorrFctn.h,v 1.1 2002/12/12 17:02:49 kisiel Exp $
4  *
5  * Author: Mike Lisa, Ohio State, lisa@mps.ohio-state.edu
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * a simple Q-invariant correlation function
10  *
11  ***************************************************************************
12  *
13  * $Log: NonIdPurityCorrFctn.h,v $
14  * Revision 1.1 2002/12/12 17:02:49 kisiel
15  * Use KStar instead of 2*KStar for non-identical particles
16  *
17  * Revision 1.2 2000/01/25 17:34:45 laue
18  * I. In order to run the stand alone version of the StHbtMaker the following
19  * changes have been done:
20  * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements
21  * b) unnecessary includes of StMaker.h have been removed
22  * c) the subdirectory StHbtMaker/doc/Make has been created including everything
23  * needed for the stand alone version
24  *
25  * II. To reduce the amount of compiler warning
26  * a) some variables have been type casted
27  * b) some destructors have been declared as virtual
28  *
29  * Revision 1.1 1999/09/23 23:28:02 lisa
30  * add helensV0Cut AND rename mikes and franks ParticleCuts to TrackCuts AND update documentation
31  *
32  * Revision 1.2 1999/07/06 22:33:20 lisa
33  * Adjusted all to work in pro and new - dev itself is broken
34  *
35  * Revision 1.1.1.1 1999/06/29 16:02:57 lisa
36  * Installation of StHbtMaker
37  *
38  **************************************************************************/
39 
40 #ifndef NonIdPurityCorrFctn_hh
41 #define NonIdPurityCorrFctn_hh
42 
43 #include "StHbtMaker/Base/StHbtCorrFctn.hh"
44 #include <TProfile.h>
45 
47 public:
48  NonIdPurityCorrFctn(char* title, const int& nbins, const float& QinvLo,
49  const float& QinvHi, int p1Type, int p2Type);
50  virtual ~NonIdPurityCorrFctn();
51 
52  virtual StHbtString Report();
53  virtual void AddRealPair(const StHbtPair*);
54  virtual void AddMixedPair(const StHbtPair*);
55 
56  virtual void Finish();
57  virtual void Write();
58 
59  StHbt1DHisto* NumP();
60  StHbt1DHisto* DenP();
61  StHbt1DHisto* RatP();
62  StHbt1DHisto* NumN();
63  StHbt1DHisto* DenN();
64  StHbt1DHisto* RatN();
65  StHbt1DHisto* Rat();
66  TProfile* PairPurityOut();
67  TProfile* PairPuritySide();
68  TProfile* PairPurityLong();
69 
70 private:
71  StHbt1DHisto* mNumP;
72  StHbt1DHisto* mDenP;
73  StHbt1DHisto* mRatP;
74  StHbt1DHisto* mNumN;
75  StHbt1DHisto* mDenN;
76  StHbt1DHisto* mRatN;
77  StHbt1DHisto* mRat;
78  StHbt1DHisto* mRatNOverP;
79 
80 /* StHbt1DHisto* mNumPinvP; */
81 /* StHbt1DHisto* mDenPinvP; */
82 /* StHbt1DHisto* mNumPinvN; */
83 /* StHbt1DHisto* mDenPinvN; */
84 /* StHbt1DHisto* mRatPinv; */
85 
86 /* StHbt1DHisto* mRatPinvNormP; */
87 /* StHbt1DHisto* mRatPinvNormN; */
88 /* StHbt1DHisto* mRatPinvNorm; */
89 /* StHbt1DHisto* mRatPinvNormNOverP; */
90 
91 /* StHbt2DHisto* mQinvPt1; */
92 /* StHbt2DHisto* mQinvY1; */
93 
94 /* StHbt2DHisto* mHKCVKSame; */
95 /* StHbt2DHisto* mHKCVKDiff; */
96 
97  int mp1Type, mp2Type;
98  TProfile* mPairPurityOut;
99  TProfile* mPairPuritySide;
100  TProfile* mPairPurityLong;
101 
102 #ifdef __ROOT__
103  ClassDef(NonIdPurityCorrFctn, 1)
104 #endif
105 };
106 
107 inline StHbt1DHisto* NonIdPurityCorrFctn::NumP()
108 {return mNumP;}
109 inline StHbt1DHisto* NonIdPurityCorrFctn::DenP()
110 {return mDenP;}
111 inline StHbt1DHisto* NonIdPurityCorrFctn::RatP()
112 {return mRatP;}
113 inline StHbt1DHisto* NonIdPurityCorrFctn::NumN()
114 {return mNumN;}
115 inline StHbt1DHisto* NonIdPurityCorrFctn::DenN()
116 {return mDenN;}
117 inline StHbt1DHisto* NonIdPurityCorrFctn::RatN()
118 {return mRatN;}
119 inline StHbt1DHisto* NonIdPurityCorrFctn::Rat()
120 {return mRat;}
121 inline TProfile* NonIdPurityCorrFctn::PairPurityOut()
122 {return mPairPurityOut;}
123 inline TProfile* NonIdPurityCorrFctn::PairPuritySide()
124 {return mPairPuritySide;}
125 inline TProfile* NonIdPurityCorrFctn::PairPurityLong()
126 {return mPairPurityLong;}
127 
128 #endif
129