00001
00002
00003
00004 #ifndef STJTRACKCUTNHITS_H
00005 #define STJTRACKCUTNHITS_H
00006
00007 #include "StjTrackCut.h"
00008
00009 class StjTrackCutNHits : public StjTrackCut {
00010
00011 public:
00012 StjTrackCutNHits(UShort_t min = 12,
00013 UShort_t max = kMaxUShort)
00014 : _min(min), _max(max) { }
00015 virtual ~StjTrackCutNHits() { }
00016
00017 bool operator()(const StjTrack& track) const
00018 {
00019 if(track.nHits <= _min) return true;
00020
00021 if(track.nHits > _max) return true;
00022
00023 return false;
00024 }
00025
00026 private:
00027
00028 UShort_t _min;
00029 UShort_t _max;
00030
00031 ClassDef(StjTrackCutNHits, 1)
00032
00033 };
00034
00035 #endif // STJTRACKCUTNHITS_H