00001 //************************************************************************* 00002 //* * 00003 //* class IsStatusxx GenParticle Selector * 00004 //* ** 00005 //* this predicate returns true if the input has a user set status code * 00006 //* used to imitate some very implementation dependent AtlfastFortran * 00007 //* code * 00008 //* * 00009 //************************************************************************* 00010 #ifndef HEPMCHELPER_ISSTATUSXX_H 00011 #define HEPMCHELPER_ISSTATUSXX_H 00012 00013 #ifndef HEPMCHELPER_IMCSELECTOR_H 00014 #include "AtlfastUtils/HepMC_helper/IMCselector.h" 00015 #endif 00016 00017 namespace HepMC_helper{ 00018 class IsStatusxx: public IMCselector { 00019 public: 00020 IsStatusxx(int stat):m_stat(stat) { } 00021 IMCselector* create() const; 00022 bool operator()( const Particle* const p )const; 00023 bool operator()( const Particle& p ) const; 00024 private: 00025 int m_stat; 00026 }; 00027 } 00028 #endif 00029 00030 00031 00032 00033