BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
AthenaHepMCtoG4EventAction.h
Go to the documentation of this file.
1//------------------------------------------------------------------
2//
3// ClassName: AthenaHepMCtoG4EventAction
4//
5// Description: PrimaryGeneratorAction to convert HepMC event to G4Event
6//
7// Author: Charles Leggett
8//
9// Date: 3-8-2001
10//
11// $Id: AthenaHepMCtoG4EventAction.h,v 1.1 2005/08/17 06:45:46 dengzy Exp $
12// Simulation/G4Sim/G4Svc tag $Name: G4Svc-00-01-52 $
13//
14//------------------------------------------------------------------
15
16#ifndef AthenaHepMCtoG4EventAction_h
17#define AthenaHepMCtoG4EventAction_h
18
19#include "G4VUserPrimaryGeneratorAction.hh"
20
21#include "GeneratorObject/McEvent.h"
22
23class G4Event;
24namespace HepMC {
25 class GenEvent;
26}
27
28class AthenaHepMCtoG4EventAction : public G4VUserPrimaryGeneratorAction
29{
30public:
34
35public:
36 void GeneratePrimaries(G4Event* anEvent);
37 // void SetHepMCEvent(const HepMC::GenEvent *p);
38 void SetHepMCEvent(McEventCol::iterator);
39
40private:
41 const HepMC::GenEvent *p_evt;
42 McEventCol::iterator p_evtCollItr;
43 int m_logLevel;
44};
45
46#endif
47
48
void SetHepMCEvent(McEventCol::iterator)