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

#include <Par02EventAction.hh>

Inheritance diagram for Par02EventAction:
Collaboration diagram for Par02EventAction:

Public Member Functions

 Par02EventAction ()
 
 Par02EventAction (G4bool aSmear)
 
virtual ~Par02EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 
virtual void EndOfEventAction (const G4Event *)
 Defines the actions at the end of the event. More...
 
- 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

Event action (before/after event processing).

Defines the action at the beginning and at the end of each event. It is invoked by a G4EventManager when a G4Event object is sent (which contains primary vertices and particles created by the Par02PrimaryGeneratorAction).

Author
Anna Zaborowska

Definition at line 45 of file Par02EventAction.hh.

Constructor & Destructor Documentation

Par02EventAction::Par02EventAction ( )

A default constructor. Sets the flag fSmear to true indicating that smearing will be performed.

Definition at line 43 of file Par02EventAction.cc.

43 : G4UserEventAction(), fSmear( 1 ) {}
Par02EventAction::Par02EventAction ( G4bool  aSmear)

A constructor.

Parameters
aSmearThe flag indicating if smearing has to be done.

Definition at line 47 of file Par02EventAction.cc.

47  :
48  G4UserEventAction(), fSmear( aSmear ) {}
Par02EventAction::~Par02EventAction ( )
virtual

Definition at line 52 of file Par02EventAction.cc.

52 {}

Member Function Documentation

void Par02EventAction::BeginOfEventAction ( const G4Event )
virtual

Defines the actions at the beginning of the event. It sets the Par02EventInformation with fSmear flag. It creates all the ntuples defined in Par02Output singleton class.

Reimplemented from G4UserEventAction.

Definition at line 56 of file Par02EventAction.cc.

56  {
58  new Par02EventInformation( fSmear ) );
60 }
void CreateNtuples()
Definition: Par02Output.cc:108
void SetUserInformation(G4VUserEventInformation *anInfo)
static Par02Output * Instance()
Definition: Par02Output.cc:60
static G4EventManager * GetEventManager()

Here is the call graph for this function:

void Par02EventAction::EndOfEventAction ( const G4Event )
virtual

Defines the actions at the end of the event.

Reimplemented from G4UserEventAction.

Definition at line 64 of file Par02EventAction.cc.

64 {}

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