Geant4  10.03
Par02ActionInitialization Class Reference

Actions initialization. More...

#include <Par02ActionInitialization.hh>

+ Inheritance diagram for Par02ActionInitialization:
+ Collaboration diagram for Par02ActionInitialization:

Public Member Functions

 Par02ActionInitialization ()
 A default constructor: sets the output file name fFileName (passed to Par02RunAction) to DefaultOutput.root as well as flag fSmear (passed to Par02EventAction) to true indicating that smearing will be performed. More...
 
 Par02ActionInitialization (const G4String aOutName)
 A constructor: sets the flag fSmear (passed to Par02EventAction) to true indicating that smearing will be performed. More...
 
 Par02ActionInitialization (const G4String aOutName, const G4String aSmear)
 A constructor. More...
 
virtual ~Par02ActionInitialization ()
 
virtual void BuildForMaster () const
 
virtual void Build () const
 A method where all the user actions are created. One of them, Par02PrimaryGeneratorAction is a mandatory class. More...
 
- Public Member Functions inherited from G4VUserActionInitialization
 G4VUserActionInitialization ()
 
virtual ~G4VUserActionInitialization ()
 
virtual G4VSteppingVerboseInitializeSteppingVerbose () const
 

Private Attributes

G4String fFileName
 An output file name. Passed in Build() to the Par02RunAction. More...
 
G4bool fSmear
 A flag indicating if smearing should be performed. Passed in Build() to the Par02EventAction. More...
 

Additional Inherited Members

- Protected Member Functions inherited from G4VUserActionInitialization
void SetUserAction (G4VUserPrimaryGeneratorAction *) const
 
void SetUserAction (G4UserRunAction *) const
 
void SetUserAction (G4UserEventAction *) const
 
void SetUserAction (G4UserStackingAction *) const
 
void SetUserAction (G4UserTrackingAction *) const
 
void SetUserAction (G4UserSteppingAction *) const
 

Detailed Description

Actions initialization.

Initialization of all user defined actions as well as mandatory particle generator. Based on G4 examples/extended/parametrisations/Par01/include/ Par01ActionInitialization.hh .

Author
Anna Zaborowska

Definition at line 45 of file Par02ActionInitialization.hh.

Constructor & Destructor Documentation

Par02ActionInitialization::Par02ActionInitialization ( )

A default constructor: sets the output file name fFileName (passed to Par02RunAction) to DefaultOutput.root as well as flag fSmear (passed to Par02EventAction) to true indicating that smearing will be performed.

Definition at line 40 of file Par02ActionInitialization.cc.

Par02ActionInitialization::Par02ActionInitialization ( const G4String  aOutName)

A constructor: sets the flag fSmear (passed to Par02EventAction) to true indicating that smearing will be performed.

Parameters
aOutNameThe output file name passed to Par02RunAction.

Definition at line 52 of file Par02ActionInitialization.cc.

Par02ActionInitialization::Par02ActionInitialization ( const G4String  aOutName,
const G4String  aSmear 
)

A constructor.

Parameters
aOutNameThe output file name passed to Par02RunAction.
aSmearThe flag indicating if smearing should be done, passed to Par02EventAction.

Definition at line 45 of file Par02ActionInitialization.cc.

Par02ActionInitialization::~Par02ActionInitialization ( )
virtual

Definition at line 57 of file Par02ActionInitialization.cc.

Member Function Documentation

void Par02ActionInitialization::Build ( void  ) const
virtual

A method where all the user actions are created. One of them, Par02PrimaryGeneratorAction is a mandatory class.

Implements G4VUserActionInitialization.

Definition at line 67 of file Par02ActionInitialization.cc.

References fFileName, fSmear, and G4VUserActionInitialization::SetUserAction().

+ Here is the call graph for this function:

void Par02ActionInitialization::BuildForMaster ( void  ) const
virtual

Reimplemented from G4VUserActionInitialization.

Definition at line 61 of file Par02ActionInitialization.cc.

References fFileName, and G4VUserActionInitialization::SetUserAction().

+ Here is the call graph for this function:

Member Data Documentation

G4String Par02ActionInitialization::fFileName
private

An output file name. Passed in Build() to the Par02RunAction.

Definition at line 75 of file Par02ActionInitialization.hh.

Referenced by Build(), and BuildForMaster().

G4bool Par02ActionInitialization::fSmear
private

A flag indicating if smearing should be performed. Passed in Build() to the Par02EventAction.

Definition at line 79 of file Par02ActionInitialization.hh.

Referenced by Build().


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