00001 //================================================= 00002 // 00003 // 00004 // find particle charge 00005 // 00006 //=================================================== 00007 #ifndef ATLFAST_CHARGESERVICE_H 00008 #define ATLFAST_CHARGESERVICE_H 00009 #include "HepMC/GenParticle.h" 00010 #include "HepPDT/ParticleDataTable.hh" 00011 //#include "HepMC/ParticleData.h" 00012 //#include "HepMC/IO_PDG_ParticleDataTable.h" 00013 #include "AtlfastEvent/ReconstructedParticle.h" 00014 #include <iostream> 00015 #include <cmath> 00016 00017 namespace Atlfast{ 00022 class ChargeService { 00023 public: 00025 ChargeService(); 00027 ChargeService(const ChargeService & other); 00029 double operator()(const HepMC::GenParticle* p)const; 00031 double operator()(const ReconstructedParticle* p)const; 00032 private: 00033 //HepMC::ParticleDataTable m_particleDataTable; 00034 HepPDT::ParticleDataTable* m_particleDataTable; 00035 }; 00036 } 00037 #endif 00038 00039 00040 00041 00042