00001 //************************************************************************* 00002 //* * 00003 //* class IsGenInteracting ** 00004 //* * 00005 //* this predicate returns true if the input is an interacting 00006 // such as hadron, electron, photon or muon * 00007 //* 00008 // Author Ian Hinchliffe 00009 // * 00010 //************************************************************************* 00011 #ifndef TRUTHHELPER_ISGENINTERACTING_H 00012 #define TRUTHHELPER_ISGENINTERACTING_H 00013 00014 #ifndef TRUTHHELPER_GENIMCSELECTOR_H 00015 #include "TruthHelper/GenIMCselector.h" 00016 #endif 00017 00018 00019 class IsGenInteracting: public GenIMCselector { 00020 00021 public: 00022 IsGenInteracting(); 00023 GenIMCselector* create() const; 00024 virtual bool operator()( const Particle* const p )const; 00025 virtual bool operator()( const Particle& p ) const; 00026 private: 00027 }; 00028 #endif