8 #include "StMuFilter.h"
9 #include "StEvent/StTrack.h"
10 #include "StEvent/StTrackGeometry.h"
11 #include "StEvent/StTrackDetectorInfo.h"
12 #include "StEvent/StContainers.h"
13 #include "StEvent/StDedxPidTraits.h"
15 #define __MIN_HITS__ 11
16 #define __MIN_HITS_TPC__ 11
17 #define __MIN_HITS_FTPC__ 5
18 #define __MIN_HITS_FTS__ 3
24 mMinHits = __MIN_HITS__;
25 mMinTpcHits = __MIN_HITS_TPC__;
26 mMinFTpcHits = __MIN_HITS_FTPC__;
27 mMinFtsHits = __MIN_HITS_FTS__;
31 bool StMuFilter::accept(
const StEvent* e) { cout <<
"StMuFilter::accept( const StEvent* e) not overwritten, returning true" << endl;
return true;}
32 bool StMuFilter::accept(
const StV0Vertex* v) { cout <<
"StMuFilter::accept(const StV0Vertex* v) not overwritten, returning true" << endl;
return true;}
33 bool StMuFilter::accept(
const StXiVertex* x) { cout <<
"StMuFilter::accept(const StXiVertex* x) not overwritten, returning true" << endl;
return true;}
35 bool StMuFilter::accept(
const StV0MuDst* v) { cout <<
"StMuFilter::accept(const StV0MuDst* v) not overwritten, returning true" << endl;
return true;}
36 bool StMuFilter::accept(
const StXiMuDst* x) { cout <<
"StMuFilter::accept(const StXiMuDst* x) not overwritten, returning true" << endl;
return true;}
37 bool StMuFilter::accept(
const StKinkMuDst* k) { cout <<
"StMuFilter::accept(const StKinkMuDst* k) not overwritten, returning true" << endl;
return true;}
47 if (mEncodedMethods.size()) {
48 for ( UnsignedShortIterator iter = mEncodedMethods.begin(); iter!=mEncodedMethods.end(); iter++) {
50 if (track->encodedMethod() == *iter) method=
true;
52 if (!method)
return false;
55 if ( !track->detectorInfo() )
return false;
56 if ( TMath::Abs(track->flag())%100 == 11)
return true;
57 if ( TMath::Abs(track->flag())%100 == 12)
return true;
58 if ( track->detectorInfo()->numberOfPoints(kTpcId ) <mMinTpcHits &&
60 track->detectorInfo()->numberOfPoints(kFtsId ) <mMinFtsHits &&
62 track->detectorInfo()->numberOfPoints(kFtpcWestId) <mMinFTpcHits &&
63 track->detectorInfo()->numberOfPoints(kFtpcEastId) <mMinFTpcHits
virtual bool accept(const StEvent *)
abstract cut function, has to be overwritten by derived class