G4VUserDetectorConstruction object passed to the G4 run manager Thid shouldn't live longer than the parent tool.
More...
#include <G4AtlasDetectorConstructionTool.h>
|
| void | initMessaging () const |
| | Initialize our message level and MessageSvc.
|
G4VUserDetectorConstruction object passed to the G4 run manager Thid shouldn't live longer than the parent tool.
Definition at line 40 of file G4AtlasDetectorConstructionTool.h.
◆ G4AtlasDetectorConstruction()
◆ Construct()
| G4VPhysicalVolume * G4AtlasDetectorConstructionTool::G4AtlasDetectorConstruction::Construct |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 93 of file G4AtlasDetectorConstructionTool.cxx.
93 {
95 << " being set as World");
98
102 }
103
108 this->RegisterParallelWorld(
it->GetParallelWorld());
109 }
110 }
111
112 ATH_MSG_DEBUG(
"Running geometry post-configuration tools" );
116 {
117 ATH_MSG_FATAL(
"Unable to run post-geometry configuration for " <<
it->name() );
118 }
119 }
120
121
122
123
125#if G4VERSION_NUMBER > 1079
126 G4LogicalVolumeStore::GetInstance()->SetMapValid(false);
127 G4LogicalVolumeStore::GetInstance()->UpdateMap();
128 G4PhysicalVolumeStore::GetInstance()->SetMapValid(false);
129 G4PhysicalVolumeStore::GetInstance()->UpdateMap();
130#endif
131
132 return wv;
133}
::StatusCode StatusCode
StatusCode definition for legacy code.
◆ ConstructSDandField()
| void G4AtlasDetectorConstructionTool::G4AtlasDetectorConstruction::ConstructSDandField |
( |
| ) |
|
|
finaloverridevirtual |
Definition at line 135 of file G4AtlasDetectorConstructionTool.cxx.
136 {
140 }
141
143 ATH_MSG_FATAL(
"Failed to initialize Fast Simulation Tool for worker thread");
144 return;
145 }
146
151 {
152 ATH_MSG_FATAL(
"Unable to initialise field with " << fm->name() );
153 return;
154 }
155 }
156
160 .isFailure()) {
161 ATH_MSG_FATAL(
"Failed to initialize G4CaloTransportTool for worker thread.");
162 return;
163 }
164 }
165
166 return;
167}
◆ 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.
40{
42
43 if (
m_lvl == MSG::NIL) {
47 }
48}
std::string m_nm
Message source name.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
std::atomic< MSG::Level > m_lvl
Current logging level.
IMessageSvc * getMessageSvc(bool quiet=false)
◆ 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 167 of file AthMessaging.h.
168{
170 if (!ms) {
174 }
175
178}
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
void initMessaging() const
Initialize our message level and MessageSvc.
◆ 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 182 of file AthMessaging.h.
183{
return msg() << lvl; }
MsgStream & msg() const
The standard message stream.
◆ 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.
152{
153
154
156
159 return true;
160 } else {
161 return false;
162 }
163}
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level | lvl | ) |
|
|
inherited |
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_detConstructionTool
◆ 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 |
The documentation for this class was generated from the following files: