Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
H02EventAction Class Reference

#include <H02EventAction.hh>

Inheritance diagram for H02EventAction:
Collaboration diagram for H02EventAction:

Public Member Functions

 H02EventAction ()
 
 ~H02EventAction ()
 
virtual void BeginOfEventAction (const G4Event *anEvent)
 
virtual void EndOfEventAction (const G4Event *anEvent)
 
- Public Member Functions inherited from G4UserEventAction
 G4UserEventAction ()
 
virtual ~G4UserEventAction ()
 
virtual void SetEventManager (G4EventManager *value)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserEventAction
G4EventManagerfpEventManager
 

Detailed Description

Definition at line 36 of file H02EventAction.hh.

Constructor & Destructor Documentation

H02EventAction::H02EventAction ( )

Definition at line 38 of file H02EventAction.cc.

39 {
40 }
H02EventAction::~H02EventAction ( )

Definition at line 43 of file H02EventAction.cc.

44 {
45 }

Member Function Documentation

void H02EventAction::BeginOfEventAction ( const G4Event anEvent)
virtual

Reimplemented from G4UserEventAction.

Definition at line 48 of file H02EventAction.cc.

49 {
50  const G4Event* ev = anEvent; ev=0;
51 #ifdef DEBUG_HEPMC
52  // printout primary information
53  G4cout << "Print out primary information" << G4endl;
54  G4int nVtx= anEvent-> GetNumberOfPrimaryVertex();
55  G4int i;
56  for(i=0; i< nVtx; i++) {
57  const G4PrimaryVertex* primaryVertex= anEvent-> GetPrimaryVertex(i);
58  primaryVertex-> Print();
59  }
60 #endif
61 }
int G4int
Definition: G4Types.hh:78
G4GLOB_DLL std::ostream G4cout
void Print(const std::vector< T > &data)
Definition: DicomRun.hh:109
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void H02EventAction::EndOfEventAction ( const G4Event anEvent)
virtual

Reimplemented from G4UserEventAction.

Definition at line 64 of file H02EventAction.cc.

65 {
66  G4cout << " Print out hit information" << G4endl;
68  H02MuonSD* muonSD=
69  (H02MuonSD*)SDManager-> FindSensitiveDetector("/mydet/muon");
70  muonSD-> PrintAll();
71  muonSD-> DrawAll();
72  G4cout << G4endl;
73 }
G4GLOB_DLL std::ostream G4cout
static G4SDManager * GetSDMpointer()
Definition: G4SDManager.cc:40
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


The documentation for this class was generated from the following files: