00001
00002
00003
00004 #ifndef STJMCPARTICLECUTETAFORSTATUS_H
00005 #define STJMCPARTICLECUTETAFORSTATUS_H
00006
00007 #include "StjMCParticleCut.h"
00008
00009 class StjMCParticleCutEtaForStatus : public StjMCParticleCut {
00010
00011 public:
00012 StjMCParticleCutEtaForStatus(double min = -10.0, double max = 10.0, int status = 1)
00013 : _min(min), _max(max), _status(status) { }
00014 virtual ~StjMCParticleCutEtaForStatus() { }
00015
00016 bool operator()(const StjMCParticle& p4)
00017 {
00018 if(p4.status != _status) return false;
00019
00020 if(p4.eta < _min) return true;
00021
00022 if(p4.eta > _max) return true;
00023
00024 return false;
00025 }
00026
00027 private:
00028
00029 double _min;
00030 double _max;
00031
00032 int _status;
00033
00034 ClassDef(StjMCParticleCutEtaForStatus, 1)
00035
00036 };
00037
00038 #endif // STJMCPARTICLECUTETAFORSTATUS_H