NEEDS DOCUMENTATION.
More...
#include <StoppedParticleAction.h>
NEEDS DOCUMENTATION.
Definition at line 19 of file StoppedParticleAction.h.
◆ StoppedParticleAction()
G4UA::StoppedParticleAction::StoppedParticleAction |
( |
| ) |
|
◆ 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.
◆ isSUSYParticle()
bool G4UA::StoppedParticleAction::isSUSYParticle |
( |
const int |
id | ) |
const |
|
private |
Definition at line 31 of file StoppedParticleAction.cxx.
33 if (
id==1000021 ||
id==1000005 ||
id==1000006 ||
id==1000512 ||
id==1000522 ||
id==1000991 ||
id==1000993 ||
34 id==1000612 ||
id==1000622 ||
id==1000632 ||
id==1000642 ||
id==1000652 ||
id==1005211 ||
35 id==1006113 ||
id==1006211 ||
id==1006213 ||
id==1006223 ||
id==1006311 ||
36 id==1006313 ||
id==1006321 ||
id==1006323 ||
id==1006333 ||
37 id==1009111 ||
id==1009113 ||
id==1009211 ||
id==1009213 ||
id==1009311 ||
38 id==1009313 ||
id==1009321 ||
id==1009323 ||
id==1009223 ||
id==1009333 ||
39 id==1092112 ||
id==1091114 ||
id==1092114 ||
id==1092212 ||
id==1092214 ||
id==1092224 ||
40 id==1093114 ||
id==1093122 ||
id==1093214 ||
id==1093224 ||
id==1093314 ||
id==1093324 ||
id==1093334)
◆ 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::StoppedParticleAction::UserSteppingAction |
( |
const G4Step * |
aStep | ) |
|
|
overridevirtual |
Definition at line 53 of file StoppedParticleAction.cxx.
57 int id = std::abs(aStep->GetTrack()->GetDynamicParticle()->GetDefinition()->GetPDGEncoding());
60 if (
id>=1000000 &&
id<=1100000 &&
63 G4Material *
mat = aStep->GetTrack()->GetMaterial();
65 for (
unsigned int i=0;
i<
mat->GetNumberOfElements();++
i){
66 if (
mat->GetElement(
i) &&
67 minA>
mat->GetElement(
i)->GetN()){
68 minA=
mat->GetElement(
i)->GetN();
74 ( !aStep->GetPostStepPoint()->GetProcessDefinedStep() ||
75 aStep->GetPostStepPoint()->GetProcessDefinedStep()->GetProcessType()!=fDecay) )
81 G4SDManager * g4sdm = G4SDManager::GetSDMpointer();
83 ATH_MSG_ERROR(
"StoppedParticleFastSim could not get sensitive detector catalog." );
85 G4VSensitiveDetector * g4sd = g4sdm->FindSensitiveDetector(
"ToolSvc.SensitiveDetectorMasterTool.TrackFastSimSD");
87 ATH_MSG_ERROR(
"StoppedParticleFastSim could not get ToolSvc.SensitiveDetectorMasterTool.TrackFastSimSD sensitive detector." );
91 ATH_MSG_ERROR(
"StoppedParticleFastSim could not cast the SD." );
102 aStep->GetTrack()->SetTrackStatus(fStopAndKill);
103 const G4TrackVector *tv = aStep->GetSecondary();
104 for (
unsigned int i=0;
i<tv->size();
i++){
105 (*tv)[
i]->SetTrackStatus(fStopAndKill);
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_fsSD
◆ m_imsg
std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_init
bool G4UA::StoppedParticleAction::m_init |
|
private |
◆ 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 |
The documentation for this class was generated from the following files:
bool isSUSYParticle(const int) const