|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Accumulator to merge pre-made per-entry histograms. More...
#include <HistogramMeanFromFile.hh>

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 |
Accumulator to merge pre-made per-entry histograms.
Operate on a stored series of histograms to merge them. Single use only.
Definition at line 41 of file HistogramMeanFromFile.hh.
| HistogramMeanFromFile::HistogramMeanFromFile | ( | BDSOutputROOTEventHistograms * | h | ) |
Use this constructor.
Definition at line 41 of file HistogramMeanFromFile.cc.
References Accumulate(), BDSOutputROOTEventHistograms::Get1DHistograms(), BDSOutputROOTEventHistograms::Get2DHistograms(), BDSOutputROOTEventHistograms::Get3DHistograms(), and BDSOutputROOTEventHistograms::Get4DHistograms().

|
virtual |
Definition at line 74 of file HistogramMeanFromFile.cc.
| 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().


| void HistogramMeanFromFile::Terminate | ( | ) |
Finish calculation.
Definition at line 102 of file HistogramMeanFromFile.cc.
Referenced by Analysis::Terminate().

| void HistogramMeanFromFile::Write | ( | TDirectory * | dir = nullptr | ) |
Write to file.
Definition at line 116 of file HistogramMeanFromFile.cc.
Referenced by Analysis::Write().

|
private |
Definition at line 64 of file HistogramMeanFromFile.hh.
|
private |
Definition at line 65 of file HistogramMeanFromFile.hh.
|
private |
Definition at line 66 of file HistogramMeanFromFile.hh.
|
private |
Definition at line 67 of file HistogramMeanFromFile.hh.