Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

IMCselector.h

Go to the documentation of this file.
00001 //=================================================
00002 //
00003 // IMCselector.h
00004 //
00005 // Interface to selectors for HepMC::GenParticles
00006 //
00007 //===================================================
00008 
00009 #ifndef HEPMCHELPER_IMCSELECTOR_H
00010 #define HEPMCHELPER_IMCSELECTOR_H
00011 
00012 namespace HepMC{
00013   class GenParticle;
00014 }
00015 namespace HepMC_helper {
00016   
00017   typedef HepMC::GenParticle Particle;
00018   
00019   
00020   class IMCselector{
00021   public:
00022     // allow concrete objects to be copied
00023     virtual IMCselector* create() const = 0;
00024     //selection function 
00025     virtual bool operator()( const Particle* const) const = 0;
00026     //    virtual bool operator()( const Particle& p )    const = 0;
00027     bool operator()( const Particle& p){return this->operator()(&p);} 
00028 
00029 
00030     virtual ~IMCselector(){};
00031   };
00032 }//namespace
00033 #endif
00034 
00035 
00036 
00037 
00038 

Generated on Thu Apr 18 09:55:25 2002 for Atlfast by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001