00001 //************************************************************************* 00002 //* * 00003 //* class IsGenStable ** 00004 //* * 00005 //* this predicate returns true if the particle is stable in a generated 00006 // event or an input to Geant in a fully simulated event 00007 //* i.e. the particle belongs to the final state. * 00008 //* * 00009 //************************************************************************* 00010 #ifndef TRUTHHELPER_ISGENSTABLE_H 00011 #define TRUTHHELPER_ISGENSTABLE_H 00012 00013 #ifndef TRUTHHELPER_GENIMCSELECTOR_H 00014 #include "TruthHelper/GenIMCselector.h" 00015 #endif 00016 00017 00018 class IsGenStable: public GenIMCselector { 00019 00020 public: 00021 IsGenStable(); 00022 GenIMCselector* create() const; 00023 virtual bool operator()( const Particle* const p )const; 00024 virtual bool operator()( const Particle& p ) const; 00025 private: 00026 }; 00027 #endif