00001 //================================================= 00002 // 00003 // AdjustPhi.h - return a particle with phi adjusted 00004 // for bending in the B field 00005 // 00006 // Author: Peter Sherwood 00007 // 00008 // 00009 //=================================================== 00010 #ifndef ATLFAST_MAGFIELD_H 00011 #define ATLFAST_MAGFIELD_H 00012 #include "HepMC/GenParticle.h" 00013 #include "AtlfastCode/ChargeService.h" 00014 #include "AtlfastCode/MCparticleCollection.h" 00015 #include "AtlfastCode/TransportedParticleCollection.h" 00016 namespace Atlfast{ 00017 00023 class MagField { 00024 public: 00028 MagField(bool fieldOn); 00032 void operator()(const MCparticleCollection&, TPCollection&) const; 00033 private: 00034 00035 const bool m_fieldOn; 00036 const ChargeService m_chargeService; 00037 00039 ChargeService lnkChargeService; 00040 }; 00041 } 00042 #endif 00043 00044