Monte Carlo LYSO
Geant4 simulation for the LYSO calorimeter prototype
Public Member Functions | Private Attributes | List of all members
MyActionInitialization Class Reference

Mandatory user initialization concrete class of G4VUserActionInitialization. It configures all the necessary user action classes. More...

#include <action.hh>

Inheritance diagram for MyActionInitialization:
Inheritance graph
[legend]
Collaboration diagram for MyActionInitialization:
Collaboration graph
[legend]

Public Member Functions

 MyActionInitialization (G4int theMCID)
 Constructor of the class.
 
 ~MyActionInitialization () override=default
 Destructor of the class.
 
void Build () const override
 Configures user action classes for worker threads. More...
 
void BuildForMaster () const override
 Configures the MyRunAction class for the master thread (in multithreading mode).
 

Private Attributes

G4int fMCID
 The Monte Carlo ID.
 

Detailed Description

Mandatory user initialization concrete class of G4VUserActionInitialization. It configures all the necessary user action classes.

Definition at line 20 of file action.hh.

Member Function Documentation

◆ Build()

void MyActionInitialization::Build ( ) const
override

Configures user action classes for worker threads.

In addition to MyPrimaryGenerator, these include MyRunAction(), MyEventAction(), and MySteppingAction().

Definition at line 25 of file action.cc.


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