BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes
HistogramMeanFromFile Class Reference

Accumulator to merge pre-made per-entry histograms. More...

#include <HistogramMeanFromFile.hh>

Collaboration diagram for HistogramMeanFromFile:
Collaboration graph

Public Member Functions

 HistogramMeanFromFile ()
 Public constructor only for compatibility with ROOT - not indended for use.
 
 HistogramMeanFromFile (BDSOutputROOTEventHistograms *h)
 Use this constructor.
 
void Accumulate (BDSOutputROOTEventHistograms *hNew)
 
void Terminate ()
 Finish calculation.
 
void Write (TDirectory *dir=nullptr)
 Write to file.
 

Private Member Functions

 ClassDef (HistogramMeanFromFile, 1)
 

Private Attributes

std::vector< HistogramAccumulator * > histograms1d
 
std::vector< HistogramAccumulator * > histograms2d
 
std::vector< HistogramAccumulator * > histograms3d
 
std::vector< HistogramAccumulator * > histograms4d
 

Detailed Description

Accumulator to merge pre-made per-entry histograms.

Operate on a stored series of histograms to merge them. Single use only.

Author
Stewart Boogert.

Definition at line 41 of file HistogramMeanFromFile.hh.

Constructor & Destructor Documentation

◆ HistogramMeanFromFile()

HistogramMeanFromFile::HistogramMeanFromFile ( BDSOutputROOTEventHistograms h)

◆ ~HistogramMeanFromFile()

HistogramMeanFromFile::~HistogramMeanFromFile ( )
virtual

Definition at line 74 of file HistogramMeanFromFile.cc.

Member Function Documentation

◆ Accumulate()

void HistogramMeanFromFile::Accumulate ( BDSOutputROOTEventHistograms hNew)

Add a new set of histograms to the running total. Assume exact same structure in BDSOutputROOTEventHistogams input.

Definition at line 86 of file HistogramMeanFromFile.cc.

References BDSOutputROOTEventHistograms::Get1DHistograms(), BDSOutputROOTEventHistograms::Get2DHistograms(), BDSOutputROOTEventHistograms::Get3DHistograms(), and BDSOutputROOTEventHistograms::Get4DHistograms().

Referenced by HistogramMeanFromFile(), EventAnalysis::Process(), and RunAnalysis::Process().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Terminate()

void HistogramMeanFromFile::Terminate ( )

Finish calculation.

Definition at line 102 of file HistogramMeanFromFile.cc.

Referenced by Analysis::Terminate().

Here is the caller graph for this function:

◆ Write()

void HistogramMeanFromFile::Write ( TDirectory *  dir = nullptr)

Write to file.

Definition at line 116 of file HistogramMeanFromFile.cc.

Referenced by Analysis::Write().

Here is the caller graph for this function:

Field Documentation

◆ histograms1d

std::vector<HistogramAccumulator*> HistogramMeanFromFile::histograms1d
private

Definition at line 64 of file HistogramMeanFromFile.hh.

◆ histograms2d

std::vector<HistogramAccumulator*> HistogramMeanFromFile::histograms2d
private

Definition at line 65 of file HistogramMeanFromFile.hh.

◆ histograms3d

std::vector<HistogramAccumulator*> HistogramMeanFromFile::histograms3d
private

Definition at line 66 of file HistogramMeanFromFile.hh.

◆ histograms4d

std::vector<HistogramAccumulator*> HistogramMeanFromFile::histograms4d
private

Definition at line 67 of file HistogramMeanFromFile.hh.


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