#include <TestBoundariesUserAction.h>
|
typedef std::map< std::string, int > | SMap |
|
Definition at line 23 of file TestBoundariesUserAction.h.
◆ SMap
◆ TestBoundariesUserAction()
G4UA::TestBoundariesUserAction::TestBoundariesUserAction |
( |
| ) |
|
◆ BeginOfRunAction()
void G4UA::TestBoundariesUserAction::BeginOfRunAction |
( |
const G4Run * |
| ) |
|
|
overridevirtual |
◆ EndOfRunAction()
void G4UA::TestBoundariesUserAction::EndOfRunAction |
( |
const G4Run * |
| ) |
|
|
overridevirtual |
◆ initMessaging()
void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ msg() [1/2]
MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ setLevel()
void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ UserSteppingAction()
void G4UA::TestBoundariesUserAction::UserSteppingAction |
( |
const G4Step * |
aStep | ) |
|
|
overridevirtual |
Definition at line 54 of file TestBoundariesUserAction.cxx.
56 G4StepPoint* preStep = aStep->GetPreStepPoint();
57 G4StepPoint* postStep = aStep->GetPostStepPoint();
59 if (!preStep || !postStep) {
60 ATH_MSG_ERROR(
"TestBoundariesUserAction Error something missing");
64 const G4TouchableHistory* preTH =
dynamic_cast<const G4TouchableHistory*
>(preStep->GetTouchable());
65 const G4TouchableHistory* postTH =
dynamic_cast<const G4TouchableHistory*
>(postStep->GetTouchable());
66 G4LogicalVolume* preLV = preStep->GetPhysicalVolume()->GetLogicalVolume();
69 int preN=preTH->GetHistoryDepth();
70 if (preN>0) preLV = preTH->GetVolume(preN-1)->GetLogicalVolume();
73 G4LogicalVolume* postLV{};
74 if (postStep->GetPhysicalVolume())
75 postLV = postStep->GetPhysicalVolume()->GetLogicalVolume();
77 int postN = postTH->GetHistoryDepth();
78 if (postN>0) postLV = postTH->GetVolume(postN-1)->GetLogicalVolume();
82 const G4ThreeVector&
pos = aStep->GetPostStepPoint()->GetPosition();
85 const std::string& preStepPointName = preLV->GetName();
86 SMap::const_iterator
it =
m_sel.find(preStepPointName);
95 SMap::const_iterator
it =
m_sel.find( postLV->GetName() );
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_data
◆ m_file
TFile* G4UA::TestBoundariesUserAction::m_file {} |
|
private |
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_lvl
std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_msg_tls
boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_sel
SMap G4UA::TestBoundariesUserAction::m_sel |
|
private |
◆ m_tree
TTree* G4UA::TestBoundariesUserAction::m_tree {} |
|
private |
The documentation for this class was generated from the following files: