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

Initialization of user actions. More...

#include <Doxymodules_parameterisations.h>

Inheritance diagram for Par04ActionInitialisation:
G4VUserActionInitialization

Public Member Functions

 Par04ActionInitialisation (Par04DetectorConstruction *aDetector, Par04ParallelFullWorld *aParallel)
 
 ~Par04ActionInitialisation ()
 
virtual void Build () const final
 Create all user actions.
 
virtual void BuildForMaster () const final
 Create run action in the master thread to allow analysis merging.
 

Private Attributes

Par04DetectorConstructionfDetector = nullptr
 Pointer to detector to be passed to event and run actions in order to retrieve detector dimensions.
 
Par04ParallelFullWorldfParallel = nullptr
 

Detailed Description

Initialization of user actions.

Initialises the primary generator, and user actions (event, run) to perform analysis and store histograms.

Definition at line 77 of file Doxymodules_parameterisations.h.

Constructor & Destructor Documentation

◆ Par04ActionInitialisation()

Par04ActionInitialisation::Par04ActionInitialisation ( Par04DetectorConstruction aDetector,
Par04ParallelFullWorld aParallel 
)

Definition at line 34 of file Par04ActionInitialisation.cc.

37 , fDetector(aDetector)
38 , fParallel(aParallel)
39{}
Par04ParallelFullWorld * fParallel
Par04DetectorConstruction * fDetector
Pointer to detector to be passed to event and run actions in order to retrieve detector dimensions.

◆ ~Par04ActionInitialisation()

Par04ActionInitialisation::~Par04ActionInitialisation ( )
default

Member Function Documentation

◆ Build()

void Par04ActionInitialisation::Build ( ) const
finalvirtual

Create all user actions.

Definition at line 55 of file Par04ActionInitialisation.cc.

56{
57 SetUserAction(new Par04PrimaryGeneratorAction());
58 auto eventAction = new Par04EventAction(fDetector, fParallel);
59 SetUserAction(eventAction);
60 SetUserAction(new Par04RunAction(fDetector, eventAction));
61}
Event action class for hits' analysis.

◆ BuildForMaster()

void Par04ActionInitialisation::BuildForMaster ( ) const
finalvirtual

Create run action in the master thread to allow analysis merging.

Definition at line 47 of file Par04ActionInitialisation.cc.

48{
49 auto eventAction = new Par04EventAction(fDetector, fParallel);
50 SetUserAction(new Par04RunAction(fDetector, eventAction));
51}

Member Data Documentation

◆ fDetector

Par04DetectorConstruction* Par04ActionInitialisation::fDetector = nullptr
private

Pointer to detector to be passed to event and run actions in order to retrieve detector dimensions.

Definition at line 56 of file Par04ActionInitialisation.hh.

◆ fParallel

Par04ParallelFullWorld* Par04ActionInitialisation::fParallel = nullptr
private

Definition at line 57 of file Par04ActionInitialisation.hh.


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

Applications | User Support | Publications | Collaboration