00001
00002
00003
00004
00005
00006
00007
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
00032 int kc = abs( particle->pdg_id());
00033 if(kc==0 || kc==12 || kc==13 || kc==14 || kc==16) return false;
00034
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