ATLAS Offline Software
Loading...
Searching...
No Matches
G4UA::TestActionTimer::Report Struct Reference

this holds all the data from individual threads that needs to be merged at EoR More...

#include <TestActionTimer.h>

Collaboration diagram for G4UA::TestActionTimer::Report:

Public Member Functions

void merge (const Report &rep)

Public Attributes

int nev =0
std::vector< double > time
 Vector of timers for each of the enum.
std::vector< std::string > timeName
 Vector of names for each of the timers.
double runTime =0

Detailed Description

this holds all the data from individual threads that needs to be merged at EoR

Definition at line 64 of file TestActionTimer.h.

Member Function Documentation

◆ merge()

void G4UA::TestActionTimer::Report::merge ( const Report & rep)
inline

Definition at line 70 of file TestActionTimer.h.

70 {
71 nev+=rep.nev;
72 runTime+=rep.runTime;
73 // copy first report
74 if(time.empty()){
75 time=rep.time;
76 timeName=rep.timeName;
77 return;
78 }
79 // sum the following ones
80 for(unsigned int i=0;i<time.size();++i)
81 time[i]+=rep.time[i];
82 }
std::vector< double > time
Vector of timers for each of the enum.
std::vector< std::string > timeName
Vector of names for each of the timers.

Member Data Documentation

◆ nev

int G4UA::TestActionTimer::Report::nev =0

Definition at line 66 of file TestActionTimer.h.

◆ runTime

double G4UA::TestActionTimer::Report::runTime =0

Definition at line 69 of file TestActionTimer.h.

◆ time

std::vector<double> G4UA::TestActionTimer::Report::time

Vector of timers for each of the enum.

Definition at line 67 of file TestActionTimer.h.

◆ timeName

std::vector<std::string> G4UA::TestActionTimer::Report::timeName

Vector of names for each of the timers.

Definition at line 68 of file TestActionTimer.h.


The documentation for this struct was generated from the following file: