ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
G4UA::iGeant4::TrackProcessorUserActionFullG4Tool Class Reference

Tool which manages the TrackProcessorUserActionFullG4. More...

#include <TrackProcessorUserActionFullG4Tool.h>

Inheritance diagram for G4UA::iGeant4::TrackProcessorUserActionFullG4Tool:
Collaboration diagram for G4UA::iGeant4::TrackProcessorUserActionFullG4Tool:

Public Member Functions

 TrackProcessorUserActionFullG4Tool (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< TrackProcessorUserActionFullG4makeAndFillAction (G4AtlasUserActions &) override final
 Create an action for this thread. More...
 

Protected Attributes

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

Private Attributes

TrackProcessorUserActionFullG4::Config m_config
 Configuration parameters. More...
 

Detailed Description

Tool which manages the TrackProcessorUserActionFullG4.

Author
Andrea Di Simone

Definition at line 22 of file TrackProcessorUserActionFullG4Tool.h.

Constructor & Destructor Documentation

◆ TrackProcessorUserActionFullG4Tool()

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

Standard constructor.

Definition at line 13 of file TrackProcessorUserActionFullG4Tool.cxx.

17  : UserActionToolBase<TrackProcessorUserActionFullG4>(type, name, parent),
18  m_config(name)
19  {
20  declareProperty("EntryLayerTool", m_config.entryLayerTool, "ISF Entry Layer Tool");
21  declareProperty("GeoIDSvc", m_config.geoIDSvc, "ISF GeoIDService" );
22  declareProperty("TruthVolumeLevel", m_config.truthVolLevel, "Level in geo hierarchy for the truth volumes");
23  declareProperty("IsITkGeometry", m_config.isITkGeometry, "toggle for ITk");
24  }

Member Function Documentation

◆ fillUserAction()

virtual StatusCode G4UA::UserActionToolBase< TrackProcessorUserActionFullG4 >::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< TrackProcessorUserActionFullG4 > G4UA::iGeant4::TrackProcessorUserActionFullG4Tool::makeAndFillAction ( G4AtlasUserActions actionList)
finaloverrideprotectedvirtual

Create an action for this thread.

Implements G4UA::UserActionToolBase< TrackProcessorUserActionFullG4 >.

Definition at line 27 of file TrackProcessorUserActionFullG4Tool.cxx.

28  {
29  ATH_MSG_DEBUG("Constructing a TrackProcessorUserActionFullG4");
30  if(msgLvl(MSG::VERBOSE)) { m_config.verboseLevel = 10; }
31  else if(msgLvl(MSG::DEBUG)) { m_config.verboseLevel = 5; }
32  auto action = std::make_unique<TrackProcessorUserActionFullG4>(m_config);
33  actionList.eventActions.push_back( action.get() );
34  actionList.trackingActions.push_back( action.get() );
35  actionList.steppingActions.push_back( action.get() );
36  return action;
37  }

Member Data Documentation

◆ m_actions

Thread-specific storage of the user action.

Definition at line 63 of file UserActionToolBase.h.

◆ m_config

TrackProcessorUserActionFullG4::Config G4UA::iGeant4::TrackProcessorUserActionFullG4Tool::m_config
private

Configuration parameters.

Definition at line 37 of file TrackProcessorUserActionFullG4Tool.h.


The documentation for this class was generated from the following files:
G4UA::iGeant4::TrackProcessorUserActionFullG4Tool::m_config
TrackProcessorUserActionFullG4::Config m_config
Configuration parameters.
Definition: TrackProcessorUserActionFullG4Tool.h:37
G4UA::iGeant4::TrackProcessorUserActionFullG4::Config::truthVolLevel
int truthVolLevel
Definition: TrackProcessorUserActionFullG4.h:47
G4UA::ThreadSpecificUserAction::set
void set(std::unique_ptr< ActionType > action)
Assign the object of the current thread.
Definition: ThreadSpecificUserAction.h:61
G4UA::iGeant4::TrackProcessorUserActionFullG4::Config::verboseLevel
unsigned int verboseLevel
Definition: TrackProcessorUserActionFullG4.h:48
G4UA::iGeant4::TrackProcessorUserActionFullG4::Config::geoIDSvc
ServiceHandle< ISF::IGeoIDSvc > geoIDSvc
access to the central ISF GeoID service
Definition: TrackProcessorUserActionFullG4.h:46
G4UA::iGeant4::TrackProcessorUserActionFullG4::Config::isITkGeometry
bool isITkGeometry
Definition: TrackProcessorUserActionFullG4.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< TrackProcessorUserActionFullG4 >::m_actions
ThreadSpecificUserAction< TrackProcessorUserActionFullG4 > m_actions
Thread-specific storage of the user action.
Definition: UserActionToolBase.h:63
test_pyathena.parent
parent
Definition: test_pyathena.py:15
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
G4UA::UserActionToolBase< TrackProcessorUserActionFullG4 >::makeAndFillAction
virtual std::unique_ptr< TrackProcessorUserActionFullG4 > makeAndFillAction(G4AtlasUserActions &actionLists)=0
Make the action and push onto the lists.
G4UA::iGeant4::TrackProcessorUserActionFullG4::Config::entryLayerTool
ToolHandle< ISF::IEntryLayerTool > entryLayerTool
access to the ISF Entry Layer tool which is used to record entry-layer collections
Definition: TrackProcessorUserActionFullG4.h:44
python.CaloScaleNoiseConfig.action
action
Definition: CaloScaleNoiseConfig.py:77
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
DEBUG
#define DEBUG
Definition: page_access.h:11
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
python.Constants.VERBOSE
int VERBOSE
Definition: Control/AthenaCommon/python/Constants.py:14