StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
qualityPairCut.h
1 /***************************************************************************
2  *
3  * $Id: qualityPairCut.h,v 1.1 2000/04/05 18:56:18 rcwells Exp $
4  *
5  * Author: Randy Wells, Ohio State, rcwells@mps.ohio-state.edu
6  ***************************************************************************
7  *
8  * Description: part of STAR HBT Framework: StHbtMaker package
9  * A pair which cuts on a topology quality
10  *
11  ***************************************************************************
12  *
13  * $Log: qualityPairCut.h,v $
14  * Revision 1.1 2000/04/05 18:56:18 rcwells
15  * Adding class qualityPairCut
16  *
17  * Revision 1.5 2000/03/23 22:57:28 laue
18  * Clone() function implemented
19  *
20  * Revision 1.4 2000/01/25 17:35:03 laue
21  * I. In order to run the stand alone version of the StHbtMaker the following
22  * changes have been done:
23  * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements
24  * b) unnecessary includes of StMaker.h have been removed
25  * c) the subdirectory StHbtMaker/doc/Make has been created including everything
26  * needed for the stand alone version
27  *
28  * II. To reduce the amount of compiler warning
29  * a) some variables have been type casted
30  * b) some destructors have been declared as virtual
31  *
32  * Revision 1.3 1999/10/15 01:57:05 lisa
33  * Important enhancement of StHbtMaker - implement Franks CutMonitors
34  * ----------------------------------------------------------
35  * This means 3 new files in Infrastructure area (CutMonitor),
36  * several specific CutMonitor classes in the Cut area
37  * and a new base class in the Base area (StHbtCutMonitor).
38  * This means also changing all Cut Base class header files from .hh to .h
39  * so we have access to CutMonitor methods from Cint command line.
40  * This last means
41  * 1) files which include these header files are slightly modified
42  * 2) a side benefit: the TrackCuts and V0Cuts no longer need
43  * a SetMass() implementation in each Cut class, which was stupid.
44  * Also:
45  * -----
46  * Include Franks StHbtAssociationReader
47  * ** None of these changes should affect any user **
48  *
49  * Revision 1.2 1999/07/06 22:33:21 lisa
50  * Adjusted all to work in pro and new - dev itself is broken
51  *
52  * Revision 1.1.1.1 1999/06/29 16:02:56 lisa
53  * Installation of StHbtMaker
54  *
55  **************************************************************************/
56 
57 
58 #ifndef qualityPairCut_hh
59 #define qualityPairCut_hh
60 
61 // do I need these lines ?
62 //#ifndef StMaker_H
63 //#include "StMaker.h"
64 //#endif
65 
66 #include "StHbtMaker/Base/StHbtPairCut.h"
67 
69 public:
72  //~qualityPairCut();
73 
74  virtual bool Pass(const StHbtPair*);
75  virtual StHbtString Report();
76  qualityPairCut* Clone();
77 
78  void SetQualityCut(const double& QualCutLo, const double& QualCutHi);
79 
80 private:
81  long mNPairsPassed;
82  long mNPairsFailed;
83  double mQualCutLo;
84  double mQualCutHi;
85 
86 #ifdef __ROOT__
87  ClassDef(qualityPairCut, 1)
88 #endif
89 };
90 
91 inline qualityPairCut::qualityPairCut(const qualityPairCut& c) : StHbtPairCut(c) {
92  mNPairsPassed = 0;
93  mNPairsFailed = 0;
94 
95 }
96 inline qualityPairCut* qualityPairCut::Clone() { qualityPairCut* c = new qualityPairCut(*this); return c;}
97 
98 #endif