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

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

#include <StepHistogram.h>

Collaboration diagram for G4UA::StepHistogram::Report:

Public Member Functions

void mergeMaps (HistoMapMap_t &selfMap, const HistoMapMap_t &refMap)
void merge (const Report &rep)

Public Attributes

HistoMapMap_t histoMapMap_vol_stepSize
HistoMapMap_t histoMapMap_vol_stepKineticEnergy
HistoMapMap_t histoMapMap_vol_postStepKineticEnergy
HistoMapMap_t histoMapMap_vol_stepPseudorapidity
HistoMapMap_t histoMapMap_vol_stepEnergyDeposit
HistoMapMap_t histoMapMap_vol_stepEnergyNonIonDeposit
HistoMapMap_t histoMapMap_vol_stepSecondaryKinetic
HistoMapMap_t histoMapMap_vol_numberOfSteps
HistoMapMap_t histoMapMap_vol_numberOfStepsPerInitialE
HistoMapMap_t histoMapMap_vol_trackLengthPerInitialE
HistoMapMap_t histoMapMap_vol_InitialE
HistoMapMap_t histoMapMap_mat_stepSize
HistoMapMap_t histoMapMap_mat_stepKineticEnergy
HistoMapMap_t histoMapMap_mat_postStepKineticEnergy
HistoMapMap_t histoMapMap_mat_stepPseudorapidity
HistoMapMap_t histoMapMap_mat_stepEnergyDeposit
HistoMapMap_t histoMapMap_mat_stepEnergyNonIonDeposit
HistoMapMap_t histoMapMap_mat_stepSecondaryKinetic
HistoMapMap_t histoMapMap_mat_numberOfSteps
HistoMapMap_t histoMapMap_mat_numberOfStepsPerInitialE
HistoMapMap_t histoMapMap_mat_trackLengthPerInitialE
HistoMapMap_t histoMapMap_mat_InitialE
HistoMapMap_t histoMapMap_prc_stepSize
HistoMapMap_t histoMapMap_prc_stepKineticEnergy
HistoMapMap_t histoMapMap_prc_postStepKineticEnergy
HistoMapMap_t histoMapMap_prc_stepPseudorapidity
HistoMapMap_t histoMapMap_prc_stepEnergyDeposit
HistoMapMap_t histoMapMap_prc_stepEnergyNonIonDeposit
HistoMapMap_t histoMapMap_prc_stepSecondaryKinetic
HistoMapMap_t histoMapMap_prc_numberOfSteps
HistoMapMap_t histoMapMap_prc_numberOfStepsPerInitialE
HistoMapMap_t histoMapMap_prc_trackLengthPerInitialE
HistoMapMap_t histoMapMap_prc_InitialE
HistoMapMap_t histoMapMap_numberOfSteps
HistoMapMap_t histoMapMap_numberOfStepsPerInitialE
HistoMapMap_t histoMapMap_trackLengthPerInitialE
HistoMapMap_t histoMapMap_InitialE
HistoMapMap_t histoMapMap_stepKinetic
HistoMapMap_t histoMapMap_postStepKinetic
HistoMapMap_t histoMapMap2D_vol_RZ
HistoMapMap_t histoMapMap2D_mat_RZ
HistoMapMap_t histoMapMap2D_prc_RZ
HistoMapMap_t histoMapMap2D_vol_RZ_E
HistoMapMap_t histoMapMap2D_mat_RZ_E

Detailed Description

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

Definition at line 43 of file StepHistogram.h.

Member Function Documentation

◆ merge()

void G4UA::StepHistogram::Report::merge ( const Report & rep)

Definition at line 290 of file StepHistogram.cxx.

290 {
291 mergeMaps(histoMapMap_vol_stepSize, rep.histoMapMap_vol_stepSize);
292 mergeMaps(histoMapMap_vol_stepKineticEnergy, rep.histoMapMap_vol_stepKineticEnergy);
293 mergeMaps(histoMapMap_vol_postStepKineticEnergy, rep.histoMapMap_vol_postStepKineticEnergy);
294 mergeMaps(histoMapMap_vol_stepPseudorapidity, rep.histoMapMap_vol_stepPseudorapidity);
295 mergeMaps(histoMapMap_vol_stepEnergyDeposit, rep.histoMapMap_vol_stepEnergyDeposit);
296 mergeMaps(histoMapMap_vol_stepEnergyNonIonDeposit, rep.histoMapMap_vol_stepEnergyNonIonDeposit);
297 mergeMaps(histoMapMap_vol_stepSecondaryKinetic, rep.histoMapMap_vol_stepSecondaryKinetic);
298
299 mergeMaps(histoMapMap_mat_stepSize, rep.histoMapMap_mat_stepSize);
300 mergeMaps(histoMapMap_mat_stepKineticEnergy, rep.histoMapMap_mat_stepKineticEnergy);
301 mergeMaps(histoMapMap_mat_postStepKineticEnergy, rep.histoMapMap_mat_postStepKineticEnergy);
302 mergeMaps(histoMapMap_mat_stepPseudorapidity, rep.histoMapMap_mat_stepPseudorapidity);
303 mergeMaps(histoMapMap_mat_stepEnergyDeposit, rep.histoMapMap_mat_stepEnergyDeposit);
304 mergeMaps(histoMapMap_mat_stepEnergyNonIonDeposit, rep.histoMapMap_mat_stepEnergyNonIonDeposit);
305 mergeMaps(histoMapMap_mat_stepSecondaryKinetic, rep.histoMapMap_mat_stepSecondaryKinetic);
306
307 mergeMaps(histoMapMap_prc_stepSize, rep.histoMapMap_prc_stepSize);
308 mergeMaps(histoMapMap_prc_stepKineticEnergy, rep.histoMapMap_prc_stepKineticEnergy);
309 mergeMaps(histoMapMap_prc_postStepKineticEnergy, rep.histoMapMap_prc_postStepKineticEnergy);
310 mergeMaps(histoMapMap_prc_stepPseudorapidity, rep.histoMapMap_prc_stepPseudorapidity);
311 mergeMaps(histoMapMap_prc_stepEnergyDeposit, rep.histoMapMap_prc_stepEnergyDeposit);
312 mergeMaps(histoMapMap_prc_stepEnergyNonIonDeposit, rep.histoMapMap_prc_stepEnergyNonIonDeposit);
313 mergeMaps(histoMapMap_prc_stepSecondaryKinetic, rep.histoMapMap_prc_stepSecondaryKinetic);
314
315 mergeMaps(histoMapMap_numberOfSteps, rep.histoMapMap_numberOfSteps);
316 mergeMaps(histoMapMap_vol_numberOfSteps, rep.histoMapMap_vol_numberOfSteps);
317 mergeMaps(histoMapMap_mat_numberOfSteps, rep.histoMapMap_mat_numberOfSteps);
318 mergeMaps(histoMapMap_prc_numberOfSteps, rep.histoMapMap_prc_numberOfSteps);
319 mergeMaps(histoMapMap_numberOfStepsPerInitialE, rep.histoMapMap_numberOfStepsPerInitialE);
320 mergeMaps(histoMapMap_vol_numberOfStepsPerInitialE, rep.histoMapMap_vol_numberOfStepsPerInitialE);
321 mergeMaps(histoMapMap_mat_numberOfStepsPerInitialE, rep.histoMapMap_mat_numberOfStepsPerInitialE);
322 mergeMaps(histoMapMap_prc_numberOfStepsPerInitialE, rep.histoMapMap_prc_numberOfStepsPerInitialE);
323 mergeMaps(histoMapMap_trackLengthPerInitialE, rep.histoMapMap_trackLengthPerInitialE);
324 mergeMaps(histoMapMap_vol_trackLengthPerInitialE, rep.histoMapMap_vol_trackLengthPerInitialE);
325 mergeMaps(histoMapMap_mat_trackLengthPerInitialE, rep.histoMapMap_mat_trackLengthPerInitialE);
326 mergeMaps(histoMapMap_prc_trackLengthPerInitialE, rep.histoMapMap_prc_trackLengthPerInitialE);
327 mergeMaps(histoMapMap_InitialE, rep.histoMapMap_InitialE);
328 mergeMaps(histoMapMap_vol_InitialE, rep.histoMapMap_vol_InitialE);
329 mergeMaps(histoMapMap_mat_InitialE, rep.histoMapMap_mat_InitialE);
330 mergeMaps(histoMapMap_prc_InitialE, rep.histoMapMap_prc_InitialE);
331 mergeMaps(histoMapMap_stepKinetic, rep.histoMapMap_stepKinetic);
332 mergeMaps(histoMapMap_postStepKinetic, rep.histoMapMap_postStepKinetic);
333
334 mergeMaps(histoMapMap2D_vol_RZ, rep.histoMapMap2D_vol_RZ);
335 mergeMaps(histoMapMap2D_mat_RZ, rep.histoMapMap2D_mat_RZ);
336 mergeMaps(histoMapMap2D_prc_RZ, rep.histoMapMap2D_prc_RZ);
337 mergeMaps(histoMapMap2D_vol_RZ_E, rep.histoMapMap2D_vol_RZ_E);
338 mergeMaps(histoMapMap2D_mat_RZ_E, rep.histoMapMap2D_mat_RZ_E);
339 }
HistoMapMap_t histoMapMap_mat_stepKineticEnergy
HistoMapMap_t histoMapMap_vol_postStepKineticEnergy
HistoMapMap_t histoMapMap_vol_InitialE
HistoMapMap_t histoMapMap_prc_postStepKineticEnergy
HistoMapMap_t histoMapMap2D_vol_RZ
HistoMapMap_t histoMapMap_stepKinetic
HistoMapMap_t histoMapMap_prc_InitialE
HistoMapMap_t histoMapMap_prc_trackLengthPerInitialE
HistoMapMap_t histoMapMap_prc_stepEnergyDeposit
HistoMapMap_t histoMapMap_vol_stepEnergyDeposit
HistoMapMap_t histoMapMap_prc_stepSecondaryKinetic
HistoMapMap_t histoMapMap_vol_stepSecondaryKinetic
HistoMapMap_t histoMapMap_mat_InitialE
HistoMapMap_t histoMapMap_vol_stepKineticEnergy
HistoMapMap_t histoMapMap_vol_numberOfStepsPerInitialE
HistoMapMap_t histoMapMap_vol_numberOfSteps
HistoMapMap_t histoMapMap_prc_stepSize
HistoMapMap_t histoMapMap_numberOfStepsPerInitialE
HistoMapMap_t histoMapMap_vol_stepEnergyNonIonDeposit
HistoMapMap_t histoMapMap_prc_numberOfStepsPerInitialE
HistoMapMap_t histoMapMap_prc_stepEnergyNonIonDeposit
HistoMapMap_t histoMapMap_vol_stepSize
HistoMapMap_t histoMapMap_mat_stepSecondaryKinetic
HistoMapMap_t histoMapMap_InitialE
void mergeMaps(HistoMapMap_t &selfMap, const HistoMapMap_t &refMap)
HistoMapMap_t histoMapMap2D_vol_RZ_E
HistoMapMap_t histoMapMap_mat_stepSize
HistoMapMap_t histoMapMap_vol_trackLengthPerInitialE
HistoMapMap_t histoMapMap_mat_stepEnergyNonIonDeposit
HistoMapMap_t histoMapMap2D_mat_RZ_E
HistoMapMap_t histoMapMap_mat_numberOfSteps
HistoMapMap_t histoMapMap_numberOfSteps
HistoMapMap_t histoMapMap_trackLengthPerInitialE
HistoMapMap_t histoMapMap_mat_stepPseudorapidity
HistoMapMap_t histoMapMap2D_mat_RZ
HistoMapMap_t histoMapMap_prc_stepKineticEnergy
HistoMapMap_t histoMapMap_mat_postStepKineticEnergy
HistoMapMap_t histoMapMap_vol_stepPseudorapidity
HistoMapMap_t histoMapMap_mat_stepEnergyDeposit
HistoMapMap_t histoMapMap2D_prc_RZ
HistoMapMap_t histoMapMap_mat_numberOfStepsPerInitialE
HistoMapMap_t histoMapMap_prc_numberOfSteps
HistoMapMap_t histoMapMap_postStepKinetic
HistoMapMap_t histoMapMap_mat_trackLengthPerInitialE
HistoMapMap_t histoMapMap_prc_stepPseudorapidity

◆ mergeMaps()

void G4UA::StepHistogram::Report::mergeMaps ( HistoMapMap_t & selfMap,
const HistoMapMap_t & refMap )

Definition at line 271 of file StepHistogram.cxx.

271 {
272 for (auto const& [g4String, histoMap] : refMap){
273 const auto& [pStringMapPair, inserted] = selfMap.try_emplace(g4String, histoMap);
274 if (not inserted){
275 HistoMap_t &target = pStringMapPair->second;
276 for (auto const& hm : histoMap){
277 if ( target.find(hm.first) == target.end() ) {
278 // histogram does not yet exist
279 target.emplace(hm.first, hm.second);
280 }
281 else {
282 // add histograms
283 target[hm.first]->Add(hm.second);
284 }
285 }
286 }
287 }
288 }
std::map< G4String, TH1 * > HistoMap_t

Member Data Documentation

◆ histoMapMap2D_mat_RZ

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap2D_mat_RZ

Definition at line 94 of file StepHistogram.h.

◆ histoMapMap2D_mat_RZ_E

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap2D_mat_RZ_E

Definition at line 97 of file StepHistogram.h.

◆ histoMapMap2D_prc_RZ

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap2D_prc_RZ

Definition at line 95 of file StepHistogram.h.

◆ histoMapMap2D_vol_RZ

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap2D_vol_RZ

Definition at line 93 of file StepHistogram.h.

◆ histoMapMap2D_vol_RZ_E

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap2D_vol_RZ_E

Definition at line 96 of file StepHistogram.h.

◆ histoMapMap_InitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_InitialE

Definition at line 88 of file StepHistogram.h.

◆ histoMapMap_mat_InitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_InitialE

Definition at line 69 of file StepHistogram.h.

◆ histoMapMap_mat_numberOfSteps

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_numberOfSteps

Definition at line 66 of file StepHistogram.h.

◆ histoMapMap_mat_numberOfStepsPerInitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_numberOfStepsPerInitialE

Definition at line 67 of file StepHistogram.h.

◆ histoMapMap_mat_postStepKineticEnergy

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_postStepKineticEnergy

Definition at line 61 of file StepHistogram.h.

◆ histoMapMap_mat_stepEnergyDeposit

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_stepEnergyDeposit

Definition at line 63 of file StepHistogram.h.

◆ histoMapMap_mat_stepEnergyNonIonDeposit

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_stepEnergyNonIonDeposit

Definition at line 64 of file StepHistogram.h.

◆ histoMapMap_mat_stepKineticEnergy

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_stepKineticEnergy

Definition at line 60 of file StepHistogram.h.

◆ histoMapMap_mat_stepPseudorapidity

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_stepPseudorapidity

Definition at line 62 of file StepHistogram.h.

◆ histoMapMap_mat_stepSecondaryKinetic

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_stepSecondaryKinetic

Definition at line 65 of file StepHistogram.h.

◆ histoMapMap_mat_stepSize

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_stepSize

Definition at line 59 of file StepHistogram.h.

◆ histoMapMap_mat_trackLengthPerInitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_mat_trackLengthPerInitialE

Definition at line 68 of file StepHistogram.h.

◆ histoMapMap_numberOfSteps

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_numberOfSteps

Definition at line 85 of file StepHistogram.h.

◆ histoMapMap_numberOfStepsPerInitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_numberOfStepsPerInitialE

Definition at line 86 of file StepHistogram.h.

◆ histoMapMap_postStepKinetic

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_postStepKinetic

Definition at line 90 of file StepHistogram.h.

◆ histoMapMap_prc_InitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_InitialE

Definition at line 82 of file StepHistogram.h.

◆ histoMapMap_prc_numberOfSteps

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_numberOfSteps

Definition at line 79 of file StepHistogram.h.

◆ histoMapMap_prc_numberOfStepsPerInitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_numberOfStepsPerInitialE

Definition at line 80 of file StepHistogram.h.

◆ histoMapMap_prc_postStepKineticEnergy

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_postStepKineticEnergy

Definition at line 74 of file StepHistogram.h.

◆ histoMapMap_prc_stepEnergyDeposit

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_stepEnergyDeposit

Definition at line 76 of file StepHistogram.h.

◆ histoMapMap_prc_stepEnergyNonIonDeposit

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_stepEnergyNonIonDeposit

Definition at line 77 of file StepHistogram.h.

◆ histoMapMap_prc_stepKineticEnergy

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_stepKineticEnergy

Definition at line 73 of file StepHistogram.h.

◆ histoMapMap_prc_stepPseudorapidity

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_stepPseudorapidity

Definition at line 75 of file StepHistogram.h.

◆ histoMapMap_prc_stepSecondaryKinetic

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_stepSecondaryKinetic

Definition at line 78 of file StepHistogram.h.

◆ histoMapMap_prc_stepSize

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_stepSize

Definition at line 72 of file StepHistogram.h.

◆ histoMapMap_prc_trackLengthPerInitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_prc_trackLengthPerInitialE

Definition at line 81 of file StepHistogram.h.

◆ histoMapMap_stepKinetic

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_stepKinetic

Definition at line 89 of file StepHistogram.h.

◆ histoMapMap_trackLengthPerInitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_trackLengthPerInitialE

Definition at line 87 of file StepHistogram.h.

◆ histoMapMap_vol_InitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_InitialE

Definition at line 56 of file StepHistogram.h.

◆ histoMapMap_vol_numberOfSteps

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_numberOfSteps

Definition at line 53 of file StepHistogram.h.

◆ histoMapMap_vol_numberOfStepsPerInitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_numberOfStepsPerInitialE

Definition at line 54 of file StepHistogram.h.

◆ histoMapMap_vol_postStepKineticEnergy

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_postStepKineticEnergy

Definition at line 48 of file StepHistogram.h.

◆ histoMapMap_vol_stepEnergyDeposit

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_stepEnergyDeposit

Definition at line 50 of file StepHistogram.h.

◆ histoMapMap_vol_stepEnergyNonIonDeposit

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_stepEnergyNonIonDeposit

Definition at line 51 of file StepHistogram.h.

◆ histoMapMap_vol_stepKineticEnergy

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_stepKineticEnergy

Definition at line 47 of file StepHistogram.h.

◆ histoMapMap_vol_stepPseudorapidity

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_stepPseudorapidity

Definition at line 49 of file StepHistogram.h.

◆ histoMapMap_vol_stepSecondaryKinetic

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_stepSecondaryKinetic

Definition at line 52 of file StepHistogram.h.

◆ histoMapMap_vol_stepSize

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_stepSize

Definition at line 46 of file StepHistogram.h.

◆ histoMapMap_vol_trackLengthPerInitialE

HistoMapMap_t G4UA::StepHistogram::Report::histoMapMap_vol_trackLengthPerInitialE

Definition at line 55 of file StepHistogram.h.


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