ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
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. More...
 
virtual StatusCode fillUserAction (G4AtlasUserActions &actionLists) override final
 Fill the user action lists. More...
 

Protected Member Functions

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

Protected Attributes

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

Private Attributes

PhysicsValidationUserAction::Config m_config
 Configuration parameters. More...
 

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.

17  : UserActionToolBase<PhysicsValidationUserAction>(type, name, parent)
18  {
19  declareProperty("ValidationOutput",
21  "If turned on, write out a ROOT tree.");
22  declareProperty("ValidationStreamName",
24  "Name of the output stream");
25  declareProperty("THistService",
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  }

Member Function Documentation

◆ fillUserAction()

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

Fill the user action lists.

Definition at line 45 of file UserActionToolBase.h.

46  {
47  auto myAction = makeAndFillAction(actionLists);
48  if(myAction == nullptr) {
49  ATH_MSG_ERROR( "Failed to construct user action in " << name() );
50  return StatusCode::FAILURE;
51  }
52  m_actions.set( std::move(myAction) );
53  return StatusCode::SUCCESS;
54  }

◆ 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");
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  }

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 63 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:
G4UA::iGeant4::PhysicsValidationUserAction::Config::muonZmean
double muonZmean
Definition: PhysicsValidationUserAction.h:52
python.Constants.FATAL
int FATAL
Definition: Control/AthenaCommon/python/Constants.py:19
G4UA::ThreadSpecificUserAction::set
void set(std::unique_ptr< ActionType > action)
Assign the object of the current thread.
Definition: ThreadSpecificUserAction.h:61
G4UA::iGeant4::PhysicsValidationUserAction::Config::thistSvc
ServiceHandle< ITHistSvc > thistSvc
Definition: PhysicsValidationUserAction.h:43
G4UA::iGeant4::PhysicsValidationUserAction::Config::validationOutput
bool validationOutput
Definition: PhysicsValidationUserAction.h:41
G4UA::iGeant4::PhysicsValidationUserAction::Config::cavernZmean
double cavernZmean
Definition: PhysicsValidationUserAction.h:54
G4UA::iGeant4::PhysicsValidationUserAction::Config::muonRmean
double muonRmean
Definition: PhysicsValidationUserAction.h:51
G4UA::iGeant4::PhysicsValidationUserAction::Config::caloRmean
double caloRmean
Definition: PhysicsValidationUserAction.h:49
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
G4UA::UserActionToolBase< PhysicsValidationUserAction >::m_actions
ThreadSpecificUserAction< PhysicsValidationUserAction > m_actions
Thread-specific storage of the user action.
Definition: UserActionToolBase.h:63
test_pyathena.parent
parent
Definition: test_pyathena.py:15
G4UA::iGeant4::PhysicsValidationUserActionTool::m_config
PhysicsValidationUserAction::Config m_config
Configuration parameters.
Definition: PhysicsValidationUserActionTool.h:37
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
G4UA::UserActionToolBase< PhysicsValidationUserAction >::makeAndFillAction
virtual std::unique_ptr< PhysicsValidationUserAction > makeAndFillAction(G4AtlasUserActions &actionLists)=0
Make the action and push onto the lists.
G4UA::iGeant4::PhysicsValidationUserAction::Config::validationStream
std::string validationStream
Definition: PhysicsValidationUserAction.h:42
G4UA::iGeant4::PhysicsValidationUserAction::Config::cavernRmean
double cavernRmean
Definition: PhysicsValidationUserAction.h:53
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DEBUG
#define DEBUG
Definition: page_access.h:11
G4UA::iGeant4::PhysicsValidationUserAction::Config::idR
double idR
Definition: PhysicsValidationUserAction.h:47
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14
G4UA::iGeant4::PhysicsValidationUserAction::Config::idZ
double idZ
Definition: PhysicsValidationUserAction.h:48
G4UA::iGeant4::PhysicsValidationUserAction::Config::caloZmean
double caloZmean
Definition: PhysicsValidationUserAction.h:50
G4UA::iGeant4::PhysicsValidationUserAction::Config::geoIDSvc
ServiceHandle< ISF::IGeoIDSvc > geoIDSvc
Definition: PhysicsValidationUserAction.h:44
G4UA::iGeant4::PhysicsValidationUserAction::Config::verboseLevel
MSG::Level verboseLevel
Definition: PhysicsValidationUserAction.h:40