00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 #ifndef helensLaPV0Cut_hh
00056 #define helensLaPV0Cut_hh
00057
00058
00059
00060
00061
00062 #include "StHbtMaker/Base/StHbtV0Cut.h"
00063 #include "StHbtMaker/Infrastructure/StHbtV0.hh"
00064
00065 class helensLaPV0Cut : public StHbtV0Cut {
00066
00067 public:
00068
00069 helensLaPV0Cut();
00070
00071
00072 virtual bool Pass(const StHbtV0*);
00073
00074 virtual StHbtString Report();
00075
00076 void SetV0Type(const char* type);
00077 void SetV0MassRange(const float& lo, const float& hi);
00078 void SetdcaV0daughters(const float& lo, const float& hi);
00079 void SetdcaV0ToPrimVertex(const float& lo, const float& hi);
00080 void SetdecayLengthV0(const float& lo, const float& hi);
00081 void SettpcHitsPos(const int& lo, const int& hi);
00082 void SettpcHitsNeg(const int& lo, const int& hi);
00083 void SetdcaPosToPrimVertex(const float& lo, const float& hi);
00084 void SetdcaNegToPrimVertex(const float& lo, const float& hi);
00085 void SetptArmV0(const float& lo, const float& hi);
00086 void SetalphaV0(const float& lo, const float& hi);
00087 void SetPt(const float& lo, const float& hi);
00088 void SetRapidity(const float& lo, const float& hi);
00089 void SetdEdx(const float& charge, const float& m1, const float& c1, const float& m2, const float& c2);
00090
00091
00092 private:
00093
00094 float mV0MassRange[2];
00095 float mdcaV0daughters[2];
00096 float mdcaV0ToPrimVertex[2];
00097 float mdecayLengthV0[2];
00098 int mtpcHitsPos[2];
00099 int mtpcHitsNeg[2];
00100 float mdcaPosToPrimVertex[2];
00101 float mdcaNegToPrimVertex[2];
00102 float mptArmV0[2];
00103 float malphaV0[2];
00104 float mPt[2];
00105 float mRapidity[2];
00106 float mdEdx[4];
00107 float mChargedEdx;
00108
00109 long mNV0sPassed;
00110 long mNV0sFailed;
00111
00112 char* V0Type;
00113
00114 #ifdef __ROOT__
00115 ClassDef(helensLaPV0Cut, 1)
00116 #endif
00117 };
00118
00119
00120 inline void helensLaPV0Cut::SetV0MassRange(const float& lo, const float& hi) {
00121 mV0MassRange[0] =lo; mV0MassRange[1]=hi;}
00122 inline void helensLaPV0Cut::SetdcaV0daughters(const float& lo, const float& hi)
00123 {mdcaV0daughters[0]=lo; mdcaV0daughters[1]=hi;}
00124 inline void helensLaPV0Cut::SetdcaV0ToPrimVertex(const float& lo, const float& hi)
00125 {mdcaV0ToPrimVertex[0]=lo; mdcaV0ToPrimVertex[1]=hi;}
00126 inline void helensLaPV0Cut::SetdecayLengthV0(const float& lo, const float& hi)
00127 {mdecayLengthV0[0]=lo; mdecayLengthV0[1]=hi;}
00128
00129 inline void helensLaPV0Cut::SettpcHitsPos(const int& lo, const int& hi)
00130 {mtpcHitsPos[0]=lo;mtpcHitsPos[1]=hi;}
00131 inline void helensLaPV0Cut::SettpcHitsNeg(const int& lo, const int& hi)
00132 {mtpcHitsNeg[0]=lo;mtpcHitsNeg[1]=hi;}
00133
00134 inline void helensLaPV0Cut::SetdcaPosToPrimVertex(const float& lo, const float& hi)
00135 {mdcaPosToPrimVertex[0]=lo; mdcaPosToPrimVertex[1]=hi;}
00136 inline void helensLaPV0Cut::SetdcaNegToPrimVertex(const float& lo, const float& hi)
00137 {mdcaNegToPrimVertex[0]=lo; mdcaNegToPrimVertex[1]=hi;}
00138 inline void helensLaPV0Cut::SetptArmV0(const float& lo, const float& hi)
00139 {mptArmV0[0]=lo; mptArmV0[1]=hi;}
00140 inline void helensLaPV0Cut::SetalphaV0(const float& lo, const float& hi)
00141 {malphaV0[0]=lo; malphaV0[1]=hi;}
00142
00143 inline void helensLaPV0Cut::SetdEdx(const float& charge,const float& m1, const float& c1,
00144 const float& m2, const float& c2)
00145 {mChargedEdx=charge;mdEdx[0]=m1; mdEdx[1]=c1; mdEdx[2]=m2; mdEdx[3]=c2;}
00146
00147 inline void helensLaPV0Cut::SetPt(const float& lo, const float& hi)
00148 {mPt[0]=lo; mPt[1]=hi;}
00149 inline void helensLaPV0Cut::SetRapidity(const float& lo,const float& hi)
00150 {mRapidity[0]=lo; mRapidity[1]=hi;}
00151
00152 inline void helensLaPV0Cut::SetV0Type(const char* type)
00153 {V0Type = (char*)type;}
00154
00155 #endif
00156
00157
00158