#include <HepMCG4Interface.hh>
A base class for primary generation via HepMC object. This class is derived from G4VPrimaryGenerator. 
Definition at line 41 of file HepMCEx01/include/HepMCG4Interface.hh.
 
◆ HepMCG4Interface() [1/2]
      
        
          | HepMCG4Interface::HepMCG4Interface  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ~HepMCG4Interface() [1/2]
  
  
      
        
          | HepMCG4Interface::~HepMCG4Interface  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ HepMCG4Interface() [2/2]
      
        
          | HepMCG4Interface::HepMCG4Interface  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ~HepMCG4Interface() [2/2]
  
  
      
        
          | virtual HepMCG4Interface::~HepMCG4Interface  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ CheckVertexInsideWorld() [1/2]
Definition at line 57 of file HepMCEx01/src/HepMCG4Interface.cc.
   60                                                  -> GetNavigatorForTracking();
    63   G4VSolid* solid= world-> GetLogicalVolume()-> GetSolid();
    64   EInside qinside= solid-> Inside(pos);
    66   if( qinside != 
kInside) 
return false;
 
static G4TransportationManager * GetTransportationManager()
 
 
 
 
◆ CheckVertexInsideWorld() [2/2]
◆ GenerateHepMCEvent() [1/2]
  
  
      
        
          | virtual HepMC::GenEvent* HepMCG4Interface::GenerateHepMCEvent  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ GenerateHepMCEvent() [2/2]
  
  
      
        
          | HepMC::GenEvent * HepMCG4Interface::GenerateHepMCEvent  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
protectedvirtual   | 
  
 
 
◆ GeneratePrimaryVertex() [1/2]
  
  
      
        
          | void HepMCG4Interface::GeneratePrimaryVertex  | 
          ( | 
          G4Event *  | 
          anEvent | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Implements G4VPrimaryGenerator.
Definition at line 126 of file HepMCEx01/src/HepMCG4Interface.cc.
  134     G4cout << 
"HepMCInterface: no generated particles. run terminated..." virtual HepMC::GenEvent * GenerateHepMCEvent()
 
G4GLOB_DLL std::ostream G4cout
 
void HepMC2G4(const HepMC::GenEvent *hepmcevt, G4Event *g4event)
 
static G4RunManager * GetRunManager()
 
HepMC::GenEvent * hepmcEvent
 
 
 
 
◆ GeneratePrimaryVertex() [2/2]
  
  
      
        
          | virtual void HepMCG4Interface::GeneratePrimaryVertex  | 
          ( | 
          G4Event *  | 
          anEvent | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
◆ GetHepMCGenEvent() [1/2]
      
        
          | HepMC::GenEvent* HepMCG4Interface::GetHepMCGenEvent  | 
          ( | 
           | ) | 
           const | 
        
      
 
 
◆ GetHepMCGenEvent() [2/2]
  
  
      
        
          | HepMC::GenEvent * HepMCG4Interface::GetHepMCGenEvent  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ HepMC2G4() [1/2]
  
  
      
        
          | void HepMCG4Interface::HepMC2G4  | 
          ( | 
          const HepMC::GenEvent *  | 
          hepmcevt,  | 
         
        
           | 
           | 
          G4Event *  | 
          g4event  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
Definition at line 71 of file HepMCEx01/src/HepMCG4Interface.cc.
   74   for(HepMC::GenEvent::vertex_const_iterator vitr= hepmcevt->vertices_begin();
    75       vitr != hepmcevt->vertices_end(); ++vitr ) { 
    79     for (HepMC::GenVertex::particle_iterator
    80            pitr= (*vitr)->particles_begin(HepMC::children);
    81          pitr != (*vitr)->particles_end(HepMC::children); ++pitr) {
    83       if (!(*pitr)->end_vertex() && (*pitr)->status()==1) {
   100     for (HepMC::GenVertex::particle_iterator
   101            vpitr= (*vitr)->particles_begin(HepMC::children);
   102          vpitr != (*vitr)->particles_end(HepMC::children); ++vpitr) {
   104       if( (*vpitr)->status() != 1 ) 
continue;
   106       G4int pdgcode= (*vpitr)-> pdg_id();
   107       pos= (*vpitr)-> momentum();
   112       g4vtx-> SetPrimary(g4prim);
   114     g4event-> AddPrimaryVertex(g4vtx);
 
virtual G4bool CheckVertexInsideWorld(const G4ThreeVector &pos) const
 
static const G4double pos
 
 
 
 
◆ HepMC2G4() [2/2]
  
  
      
        
          | void HepMCG4Interface::HepMC2G4  | 
          ( | 
          const HepMC::GenEvent *  | 
          hepmcevt,  | 
         
        
           | 
           | 
          G4Event *  | 
          g4event  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
protected   | 
  
 
 
◆ hepmcEvent
  
  
      
        
          | HepMC::GenEvent * HepMCG4Interface::hepmcEvent | 
         
       
   | 
  
protected   | 
  
 
 
The documentation for this class was generated from the following files: