00001 /*************************************************************************** 00002 * 00003 * $Id: qualityPairCut.h,v 1.1 2000/04/05 18:56:18 rcwells Exp $ 00004 * 00005 * Author: Randy Wells, Ohio State, rcwells@mps.ohio-state.edu 00006 *************************************************************************** 00007 * 00008 * Description: part of STAR HBT Framework: StHbtMaker package 00009 * A pair which cuts on a topology quality 00010 * 00011 *************************************************************************** 00012 * 00013 * $Log: qualityPairCut.h,v $ 00014 * Revision 1.1 2000/04/05 18:56:18 rcwells 00015 * Adding class qualityPairCut 00016 * 00017 * Revision 1.5 2000/03/23 22:57:28 laue 00018 * Clone() function implemented 00019 * 00020 * Revision 1.4 2000/01/25 17:35:03 laue 00021 * I. In order to run the stand alone version of the StHbtMaker the following 00022 * changes have been done: 00023 * a) all ClassDefs and ClassImps have been put into #ifdef __ROOT__ statements 00024 * b) unnecessary includes of StMaker.h have been removed 00025 * c) the subdirectory StHbtMaker/doc/Make has been created including everything 00026 * needed for the stand alone version 00027 * 00028 * II. To reduce the amount of compiler warning 00029 * a) some variables have been type casted 00030 * b) some destructors have been declared as virtual 00031 * 00032 * Revision 1.3 1999/10/15 01:57:05 lisa 00033 * Important enhancement of StHbtMaker - implement Franks CutMonitors 00034 * ---------------------------------------------------------- 00035 * This means 3 new files in Infrastructure area (CutMonitor), 00036 * several specific CutMonitor classes in the Cut area 00037 * and a new base class in the Base area (StHbtCutMonitor). 00038 * This means also changing all Cut Base class header files from .hh to .h 00039 * so we have access to CutMonitor methods from Cint command line. 00040 * This last means 00041 * 1) files which include these header files are slightly modified 00042 * 2) a side benefit: the TrackCuts and V0Cuts no longer need 00043 * a SetMass() implementation in each Cut class, which was stupid. 00044 * Also: 00045 * ----- 00046 * Include Franks StHbtAssociationReader 00047 * ** None of these changes should affect any user ** 00048 * 00049 * Revision 1.2 1999/07/06 22:33:21 lisa 00050 * Adjusted all to work in pro and new - dev itself is broken 00051 * 00052 * Revision 1.1.1.1 1999/06/29 16:02:56 lisa 00053 * Installation of StHbtMaker 00054 * 00055 **************************************************************************/ 00056 00057 00058 #ifndef qualityPairCut_hh 00059 #define qualityPairCut_hh 00060 00061 // do I need these lines ? 00062 //#ifndef StMaker_H 00063 //#include "StMaker.h" 00064 //#endif 00065 00066 #include "StHbtMaker/Base/StHbtPairCut.h" 00067 00068 class qualityPairCut : public StHbtPairCut{ 00069 public: 00070 qualityPairCut(); 00071 qualityPairCut(const qualityPairCut&); 00072 //~qualityPairCut(); 00073 00074 virtual bool Pass(const StHbtPair*); 00075 virtual StHbtString Report(); 00076 qualityPairCut* Clone(); 00077 00078 void SetQualityCut(const double& QualCutLo, const double& QualCutHi); 00079 00080 private: 00081 long mNPairsPassed; 00082 long mNPairsFailed; 00083 double mQualCutLo; 00084 double mQualCutHi; 00085 00086 #ifdef __ROOT__ 00087 ClassDef(qualityPairCut, 1) 00088 #endif 00089 }; 00090 00091 inline qualityPairCut::qualityPairCut(const qualityPairCut& c) : StHbtPairCut(c) { 00092 mNPairsPassed = 0; 00093 mNPairsFailed = 0; 00094 00095 } 00096 inline qualityPairCut* qualityPairCut::Clone() { qualityPairCut* c = new qualityPairCut(*this); return c;} 00097 00098 #endif
1.5.9