Tool which manages the TestActionVPTimer action.
More...
#include <TestActionVPTimerTool.h>
Tool which manages the TestActionVPTimer action.
Create the TestActionVPTimer for each worker thread and merges timing results in finalization.
- Author
- Andrea Di Simone
Definition at line 23 of file TestActionVPTimerTool.h.
◆ TestActionVPTimerTool()
G4UA::TestActionVPTimerTool::TestActionVPTimerTool |
( |
const std::string & |
type, |
|
|
const std::string & |
name, |
|
|
const IInterface * |
parent |
|
) |
| |
◆ fillUserAction()
|
inlinefinaloverridevirtualinherited |
Fill the user action lists.
Definition at line 45 of file UserActionToolBase.h.
48 if(myAction ==
nullptr) {
50 return StatusCode::FAILURE;
53 return StatusCode::SUCCESS;
◆ finalize()
StatusCode G4UA::TestActionVPTimerTool::finalize |
( |
| ) |
|
|
overridevirtual |
Triggers report merging from threads.
Definition at line 65 of file TestActionVPTimerTool.cxx.
87 <<
" Dead Time " << DeadTime );
92 ATH_MSG_INFO(setw(12) <<
"Time" << setw(12) <<
"per Event" << setw(12)
93 <<
"per Run" << setw(6) <<
"Depth" <<
" Location/Particle" );
97 ATH_MSG_INFO(
"\n******* Data by volume/select particles *******");
98 ATH_MSG_INFO(
"Data printed in reverse tree order (mother following daughter)");
100 TreeOut(topPV, atlasData.tTotal);
105 ATH_MSG_INFO(
"\n******* Data by particle/category *******");
117 }
else {
ATH_MSG_WARNING(
"******* No Timing information recorded! *******"); }
119 return StatusCode::SUCCESS;
◆ makeAndFillAction()
|
finaloverrideprotectedvirtual |
◆ TimerPrint()
Definition at line 139 of file TestActionVPTimerTool.cxx.
142 G4VPhysicalVolume*
pv = vp.first.back().first;
144 std::string copyNo =
stringify(vp.first.back().second);
145 std::string mother =
"";
146 if (vp.first.size() != 1) mother =
stringify( (vp.first.end()-2)->first->GetName() );
153 double tOther = vp.second.tTotal - vp.second.tElectron - vp.second.tPhoton - vp.second.tNeutron - vp.second.tPion;
◆ TreeOut()
void G4UA::TestActionVPTimerTool::TreeOut |
( |
const VolTree & |
id, |
|
|
const double |
tAtlas, |
|
|
int |
depth = 0 |
|
) |
| |
|
private |
◆ m_actions
◆ m_config
◆ m_report
The documentation for this class was generated from the following files: