/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

HepMCtoG4.h
Go to the documentation of this file.
00001 
00006 #ifndef HEPMCTOG4_H
00007 #define HEPMCTOG4_H
00008 
00009 #include "G4DataHelpers/IHepMCtoG4.h"
00010 #include "GaudiAlg/GaudiTool.h"
00011 #include "GaudiKernel/IParticlePropertySvc.h" // particle mass
00012 #include "G4PrimaryParticle.hh"
00013 
00014 #include "HepMC/GenParticle.h"
00015 #include "HepMC/GenEvent.h"
00016 #include "HepMC/GenVertex.h"
00017 
00018 class HepMCtoG4 : public GaudiTool,
00019                   virtual public IHepMCtoG4
00020 {
00021 public:
00022     HepMCtoG4(const std::string& type,
00023               const std::string& name,
00024               const IInterface* parent);
00025     virtual ~HepMCtoG4();
00026 
00027     virtual StatusCode initialize();
00028     virtual StatusCode finalize();
00029 
00030     virtual StatusCode convert(const HepMC::GenEvent& input,
00031                                std::vector<G4PrimaryVertex*>& output);
00032 
00033 private:
00034 
00037     bool m_zeroTime;
00038 
00039     IParticlePropertySvc* m_pps; //djaffe
00040 
00041     G4PrimaryParticle* makeG4particle(const HepMC::GenParticle& part,
00042                                       const HepMC::GenEvent* event,
00043                                       const HepMC::GenVertex* vertex);
00044 };
00045 
00046 #endif  // HEPMCTOG4_H
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:05:42 for G4DataHelpers by doxygen 1.7.4