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
00056
00057
00058 #ifndef helensEventCut_hh
00059 #define helensEventCut_hh
00060
00061 #include "StHbtMaker/Base/StHbtEventCut.h"
00062 #include <list>
00063
00064 class StHbtTrkV0Match;
00065
00066 #if !defined(ST_NO_NAMESPACES)
00067 using std::list;
00068 #endif
00069
00070
00071 #ifdef ST_NO_TEMPLATE_DEF_ARGS
00072 typedef list<StHbtTrkV0Match*, allocator<StHbtTrkV0Match*> > StHbtTrkV0MatchCollection;
00073 typedef list<StHbtTrkV0Match*, allocator<StHbTrkV0Match*> >::iterator StHbtTrkV0Iterator;
00074 #else
00075 typedef list<StHbtTrkV0Match*> StHbtTrkV0MatchCollection;
00076 typedef list<StHbtTrkV0Match*>::iterator StHbtTrkV0Iterator;
00077 #endif
00078
00079
00080 class StHbtTrkV0Match{
00081
00082 public:
00083 StHbtTrkV0Match(){ };
00084 StHbtTrkV0Match( const StHbtTrkV0Match&);
00085 ~StHbtTrkV0Match(){};
00086
00087 int TrkId() {return mTrkId;};
00088 int V0Id() {return mV0Id;}
00089 float dEdx(){return mdEdx;} ;
00090 int Used() {return mUsed;};
00091
00092 void SetTrkId( int i) {mTrkId=i;};
00093 void SetV0Id( int i) {mV0Id=i;};
00094 void SetdEdx( float x) {mdEdx=x;};
00095 void SetUsed( int i) {mUsed=i;};
00096
00097 protected:
00098
00099 int mTrkId;
00100 int mV0Id;
00101 float mdEdx;
00102 int mUsed;
00103 };
00104
00105
00106 class helensEventCut : public StHbtEventCut {
00107
00108 public:
00109
00110 helensEventCut();
00111 helensEventCut(helensEventCut&);
00112
00113 void SetEventMult(const int& lo,const int& hi);
00114 void SetVertZPos(const float& lo, const float& hi);
00115 void SetV0Mult(const int& lo,const int& hi);
00116 int NEventsPassed();
00117 int NEventsFailed();
00118 StHbtTrkV0MatchCollection* TrkV0MatchCollection();
00119
00120 virtual StHbtString Report();
00121 virtual bool Pass(const StHbtEvent*);
00122
00123 helensEventCut* Clone();
00124
00125 private:
00126
00127 int mEventMult[2];
00128 float mVertZPos[2];
00129 int mV0Mult[2];
00130
00131 long mNEventsPassed;
00132 long mNEventsFailed;
00133
00134 StHbtTrkV0MatchCollection* mTrkV0MatchCollection;
00135
00136 #ifdef __ROOT__
00137 ClassDef(helensEventCut, 1)
00138 #endif
00139
00140 };
00141
00142 inline void helensEventCut::SetEventMult(const int& lo, const int& hi){mEventMult[0]=lo; mEventMult[1]=hi;}
00143 inline void helensEventCut::SetV0Mult(const int& lo, const int& hi){mV0Mult[0]=lo; mV0Mult[1]=hi;}
00144 inline void helensEventCut::SetVertZPos(const float& lo, const float& hi){mVertZPos[0]=lo; mVertZPos[1]=hi;}
00145 inline int helensEventCut::NEventsPassed() {return mNEventsPassed;}
00146 inline int helensEventCut::NEventsFailed() {return mNEventsFailed;}
00147 inline helensEventCut* helensEventCut::Clone() { helensEventCut* c = new helensEventCut(*this); return c;}
00148 inline StHbtTrkV0MatchCollection* helensEventCut::TrkV0MatchCollection(){return mTrkV0MatchCollection;}
00149 inline helensEventCut::helensEventCut(helensEventCut& c) : StHbtEventCut(c) {
00150 mEventMult[0] = c.mEventMult[0];
00151 mEventMult[1] = c.mEventMult[1];
00152 mVertZPos[0] = c.mVertZPos[0];
00153 mVertZPos[1] = c.mVertZPos[1];
00154 mV0Mult[0] = c.mV0Mult[0];
00155 mV0Mult[1] = c.mV0Mult[1];
00156 mNEventsPassed = 0;
00157 mNEventsFailed = 0;
00158 }
00159
00160
00161 #endif