ATLAS Offline Software
Loading...
Searching...
No Matches
G4UA::iGeant4::PhysicsValidationUserActionTool Class Reference

Place holder tool. More...

#include <PhysicsValidationUserActionTool.h>

Inheritance diagram for G4UA::iGeant4::PhysicsValidationUserActionTool:
Collaboration diagram for G4UA::iGeant4::PhysicsValidationUserActionTool:

Public Member Functions

 PhysicsValidationUserActionTool (const std::string &type, const std::string &name, const IInterface *parent)
 Standard constructor.
virtual StatusCode fillUserAction (G4AtlasUserActions &actionLists) override final
 Fill the user action lists.
StatusCode BeginOfAthenaEvent (HitCollectionMap &) override
 Calls BeginOfAthenaEvent.
StatusCode EndOfAthenaEvent (HitCollectionMap &) override
 Calls EndOfAthenaEvent.

Protected Member Functions

virtual std::unique_ptr< PhysicsValidationUserActionmakeAndFillAction (G4AtlasUserActions &) override final
 Create an action for this thread.

Protected Attributes

ThreadSpecificUserAction< PhysicsValidationUserActionm_actions
 Thread-specific storage of the user action.

Private Attributes

PhysicsValidationUserAction::Config m_config
 Configuration parameters.

Detailed Description

Place holder tool.

Author
John Chapman

Definition at line 22 of file PhysicsValidationUserActionTool.h.

Constructor & Destructor Documentation

◆ PhysicsValidationUserActionTool()

G4UA::iGeant4::PhysicsValidationUserActionTool::PhysicsValidationUserActionTool ( const std::string & type,
const std::string & name,
const IInterface * parent )

Standard constructor.

Definition at line 13 of file PhysicsValidationUserActionTool.cxx.

18 {
19 declareProperty("ValidationOutput",
20 m_config.validationOutput,
21 "If turned on, write out a ROOT tree.");
22 declareProperty("ValidationStreamName",
23 m_config.validationStream,
24 "Name of the output stream");
25 declareProperty("THistService",
26 m_config.thistSvc,
27 "The THistSvc");
28 declareProperty("GeoIDSvc" , m_config.geoIDSvc , "ISF GeoID Svc" );
29 declareProperty("ID_Rmax",m_config.idR);
30 declareProperty("ID_Zmax",m_config.idZ);
31 declareProperty("CaloRmean",m_config.caloRmean);
32 declareProperty("CaloZmean",m_config.caloZmean);
33 declareProperty("MuonRmean",m_config.muonRmean);
34 declareProperty("MuonZmean",m_config.muonZmean);
35 declareProperty("CavernRmean",m_config.cavernRmean);
36 declareProperty("CavernZmean",m_config.cavernZmean);
37 }
UserActionToolBase(const std::string &type, const std::string &name, const IInterface *parent)
PhysicsValidationUserAction::Config m_config
Configuration parameters.

Member Function Documentation

◆ BeginOfAthenaEvent()

StatusCode G4UA::UserActionToolBase< PhysicsValidationUserAction >::BeginOfAthenaEvent ( HitCollectionMap & )
inlineoverrideinherited

Calls BeginOfAthenaEvent.

Definition at line 59 of file UserActionToolBase.h.

59{return StatusCode::SUCCESS;};
abstract template utility base-class for G4 user-action tools.

◆ EndOfAthenaEvent()

StatusCode G4UA::UserActionToolBase< PhysicsValidationUserAction >::EndOfAthenaEvent ( HitCollectionMap & )
inlineoverrideinherited

Calls EndOfAthenaEvent.

Definition at line 61 of file UserActionToolBase.h.

61{return StatusCode::SUCCESS;};

◆ fillUserAction()

virtual StatusCode G4UA::UserActionToolBase< PhysicsValidationUserAction >::fillUserAction ( G4AtlasUserActions & actionLists)
inlinefinaloverridevirtualinherited

Fill the user action lists.

Definition at line 47 of file UserActionToolBase.h.

48 {
50 if(myAction == nullptr) {
51 ATH_MSG_ERROR( "Failed to construct user action in " << name() );
53 }
56 }
#define ATH_MSG_ERROR(x)
virtual std::unique_ptr< PhysicsValidationUserAction > makeAndFillAction(G4AtlasUserActions &actionLists)=0

◆ makeAndFillAction()

std::unique_ptr< PhysicsValidationUserAction > G4UA::iGeant4::PhysicsValidationUserActionTool::makeAndFillAction ( G4AtlasUserActions & actionList)
finaloverrideprotectedvirtual

Create an action for this thread.

Implements G4UA::UserActionToolBase< PhysicsValidationUserAction >.

Definition at line 40 of file PhysicsValidationUserActionTool.cxx.

41 {
42 ATH_MSG_DEBUG("Constructing a PhysicsValidationUserAction");
43 if(msgLvl(MSG::VERBOSE)) { m_config.verboseLevel = MSG::VERBOSE; }
44 else if(msgLvl(MSG::DEBUG)) { m_config.verboseLevel = MSG::DEBUG; }
45 else if(msgLvl(MSG::INFO)) { m_config.verboseLevel = MSG::INFO; }
46 else if(msgLvl(MSG::WARNING)) { m_config.verboseLevel = MSG::WARNING; }
47 else if(msgLvl(MSG::ERROR)) { m_config.verboseLevel = MSG::ERROR; }
48 else if(msgLvl(MSG::FATAL)) { m_config.verboseLevel = MSG::FATAL; }
49 auto action = std::make_unique<PhysicsValidationUserAction>(m_config);
50 actionList.runActions.push_back( action.get() );
51 actionList.eventActions.push_back( action.get() );
52 actionList.trackingActions.push_back( action.get() );
53 actionList.steppingActions.push_back( action.get() );
54 return action;
55 }
#define ATH_MSG_DEBUG(x)

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 70 of file UserActionToolBase.h.

◆ m_config

PhysicsValidationUserAction::Config G4UA::iGeant4::PhysicsValidationUserActionTool::m_config
private

Configuration parameters.

Definition at line 37 of file PhysicsValidationUserActionTool.h.


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