ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
G4UA::TestActionVPTimer::Report Struct Reference

#include <TestActionVPTimer.h>

Collaboration diagram for G4UA::TestActionVPTimer::Report:

Public Member Functions

void merge (const Report &rep)
 

Public Attributes

VolMap time_index
 
int nev =0
 number of processed events More...
 
double runTime =0
 Double for storing this run time. More...
 

Detailed Description

Definition at line 102 of file TestActionVPTimer.h.

Member Function Documentation

◆ merge()

void G4UA::TestActionVPTimer::Report::merge ( const Report rep)
inline

Definition at line 111 of file TestActionVPTimer.h.

111  {
112 
113  nev+=rep.nev;
114  runTime+=rep.runTime;
115 
116  // copy first map
117  if(time_index.empty()){
118  time_index=rep.time_index;
119  return;
120  }
121 
122  // must merge timers per particle and per tree
123  // loop on new report
124  for(auto& element:rep.time_index){
125 
126  // check if key exists
127  auto existing=time_index.find(element.first);
128  if(existing!=time_index.end()){
129  // sum timings (using volData)
130  existing->second+=element.second;
131  }
132  else {
133  // add new entry
134  time_index.insert(element);
135  }
136  }
137 
138  }

Member Data Documentation

◆ nev

int G4UA::TestActionVPTimer::Report::nev =0

number of processed events

Definition at line 108 of file TestActionVPTimer.h.

◆ runTime

double G4UA::TestActionVPTimer::Report::runTime =0

Double for storing this run time.

Definition at line 109 of file TestActionVPTimer.h.

◆ time_index

VolMap G4UA::TestActionVPTimer::Report::time_index

Definition at line 107 of file TestActionVPTimer.h.


The documentation for this struct was generated from the following file:
make_hlt_rep.rep
rep
Definition: make_hlt_rep.py:32
G4UA::TestActionVPTimer::Report::time_index
VolMap time_index
Definition: TestActionVPTimer.h:107
G4UA::TestActionVPTimer::Report::nev
int nev
number of processed events
Definition: TestActionVPTimer.h:108
G4UA::TestActionVPTimer::Report::runTime
double runTime
Double for storing this run time.
Definition: TestActionVPTimer.h:109