Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Par02EventAction Class Reference

Event action (before/after event processing). More...

#include <Doxymodules_parameterisations.h>

Inheritance diagram for Par02EventAction:
G4UserEventAction

Public Member Functions

 Par02EventAction ()
 A default constructor.
 
 Par02EventAction (G4bool aSmear)
 A constructor.
 
virtual ~Par02EventAction ()
 
virtual void BeginOfEventAction (const G4Event *)
 Defines the actions at the beginning of the event.
 
virtual void EndOfEventAction (const G4Event *)
 Defines the actions at the end of the event.
 

Private Attributes

G4bool fSmear
 A flag indicating if smearing should be performed.
 

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 39 of file Doxymodules_parameterisations.h.

Constructor & Destructor Documentation

◆ Par02EventAction() [1/2]

Par02EventAction::Par02EventAction ( )

A default constructor.

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

Definition at line 42 of file Par02EventAction.cc.

42: G4UserEventAction(), fSmear( 1 ) {}
G4bool fSmear
A flag indicating if smearing should be performed.

◆ Par02EventAction() [2/2]

Par02EventAction::Par02EventAction ( G4bool  aSmear)

A constructor.

Parameters
aSmearThe flag indicating if smearing has to be done.

Definition at line 46 of file Par02EventAction.cc.

46 :
47 G4UserEventAction(), fSmear( aSmear ) {}

◆ ~Par02EventAction()

Par02EventAction::~Par02EventAction ( )
virtualdefault

Member Function Documentation

◆ BeginOfEventAction()

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.

Definition at line 55 of file Par02EventAction.cc.

55 {
56 G4EventManager::GetEventManager()->SetUserInformation(
59}
void CreateNtuples()
Creates Ntuples used to store information about particle (its ID, PDG code, energy deposits,...
static Par02Output * Instance()
Allows the access to the unique Par02Output object.

◆ EndOfEventAction()

void Par02EventAction::EndOfEventAction ( const G4Event )
virtual

Defines the actions at the end of the event.

Definition at line 63 of file Par02EventAction.cc.

63{}

Member Data Documentation

◆ fSmear

G4bool Par02EventAction::fSmear
private

A flag indicating if smearing should be performed.

Passed to Par02EventInformation in BeginOfEventAction(const G4Event*).

Definition at line 69 of file Par02EventAction.hh.


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

Applications | User Support | Publications | Collaboration