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

CalSelect.h

Go to the documentation of this file.
00001 //=================================================
00002 //
00003 //
00004 // function object to select particle type
00005 // used by calorimeter
00006 //
00007 // Author: Peter Sherwood
00008 //
00009 //
00010 //===================================================
00011 #ifndef Atlfast_CalSelect_H
00012 #define Atlfast_CalSelect_H
00013 #include "HepMC/GenParticle.h"
00014 #include "AtlfastCode/ReconstructedParticle.h"
00015 
00016 namespace Atlfast{
00017 
00022   class CalSelect {
00023   public:
00025     CalSelect(){}
00030     bool operator()(const  HepMC::GenParticle* particle){
00031       // veto on id = 0 (what's this?), neutrini and muons.
00032       int kc = abs( particle->pdg_id());
00033       if(kc==0  || kc==12 || kc==13 || kc==14 || kc==16) return false; 
00034       //if (kc == LSP) return;  FIXME FIXME FIXME 
00035       return true;
00036     }
00037     bool operator()(const  std::pair<double, HepMC::GenParticle*>& pc){
00038       return this->operator()(pc.second);
00039     }
00040     bool operator()(const  ReconstructedParticle* rp){
00041       return this->operator()(rp->truth());
00042     }
00043   };
00044 }
00045 #endif
00046 
00047 
00048 
00049 
00050 
00051 
00052 

Generated on Wed Jan 23 12:58:31 2002 for Atlfast by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001