|
BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
|
Histogram over a set of integers not number line. More...
#include <PerEntryHistogramSetPlane.hh>


Public Member Functions | |
| PerEntryHistogramSetPlane (const HistogramDefSet *definitionIn, Event *eventIn, TChain *chainIn) | |
| virtual void | CheckSampler () |
Public Member Functions inherited from PerEntryHistogramSet | |
| PerEntryHistogramSet (const HistogramDefSet *definitionIn, Event *eventIn, TChain *chainIn) | |
| virtual void | AccumulateCurrentEntry (long int entryNumber) |
| virtual void | Terminate () |
| Terminate the accumulator and save the result to the result member variable. | |
| virtual void | Write (TDirectory *dir=nullptr) |
Public Member Functions inherited from PerEntryHistogram | |
| PerEntryHistogram () | |
| Public constructor only for compatibility with ROOT - not intended for use. | |
| PerEntryHistogram (const HistogramDef *definition, TChain *chain) | |
| Constructor with a histogram definition and the chain to operate on. | |
| void | AddNEmptyEntries (unsigned long i) |
| double | Integral () const |
| Get the Integral() from the result member histogram if it exists, otherwise 0. | |
Protected Member Functions | |
| virtual void | GetPDGIDSetFromSampler (std::set< long long int > &setIn) const |
Protected Member Functions inherited from PerEntryHistogramSet | |
| bool | IsIon (long long int pdgID) const |
| void | CreatePerEntryHistogram (long long int pdgID) |
| std::vector< long long int > | TopUtility (const std::set< long long int > &s, size_t n) const |
| Utility function to find top N in set s. Sorted in descending order of integral. | |
| std::vector< long long int > | TopNNonIons (int n) const |
| Get top part of set. Sorted in descending order of integral. | |
| std::vector< long long int > | TopNIons (int n) const |
| Get top part of set. Sorted in descending order of integral. | |
| std::vector< long long int > | TopN (int n) const |
| Get top part of set. Sorted in descending order of integral. | |
Protected Member Functions inherited from PerEntryHistogram | |
| ClassDef (PerEntryHistogram, 1) | |
Protected Attributes | |
| BDSOutputROOTEventSampler< double > * | sampler |
| BDSOutputROOTEventSampler< float > * | sampler |
Protected Attributes inherited from PerEntryHistogramSet | |
| HistogramDef * | baseDefinition |
| Event * | event |
| TChain * | chain |
| std::string | branchName |
| bool | dynamicallyStoreParticles |
| bool | dynamicallyStoreIons |
| long long int | nEntries |
| HistogramDefSet::writewhat | what |
| int | topN |
| BDSOutputROOTEventSampler< double > * | sampler |
| BDSOutputROOTEventSampler< float > * | sampler |
| std::set< long long int > | allPDGIDs |
| std::set< long long int > | ions |
| std::set< long long int > | nonIons |
| std::map< ParticleSpec, PerEntryHistogram * > | histograms |
| std::map< long long int, PerEntryHistogram * > | histogramsByPDGID |
| std::vector< PerEntryHistogram * > | allPerEntryHistograms |
Protected Attributes inherited from PerEntryHistogram | |
| HistogramAccumulator * | accumulator |
| TChain * | chain |
| Cache of chain pointer that provides data. | |
| std::string | selection |
| Selection command. | |
| TH1 * | temp |
| Histogram for temporary 1 event data. | |
| TH1 * | result |
| Final result with errors as the error on the mean. | |
| std::string | command |
| Draw command. | |
Histogram over a set of integers not number line.
Specialised for a plane sampler.
Definition at line 41 of file PerEntryHistogramSetPlane.hh.
| PerEntryHistogramSetPlane::PerEntryHistogramSetPlane | ( | const HistogramDefSet * | definitionIn, |
| Event * | eventIn, | ||
| TChain * | chainIn | ||
| ) |
Definition at line 30 of file PerEntryHistogramSetPlane.cc.
|
virtual |
Definition at line 37 of file PerEntryHistogramSetPlane.cc.
|
virtual |
Ensure sampler is setup even if it wasn't on at the beginning when we inspected the model tree. We need this to build up unique PDG IDs by manually looping over the data. A derived class must implement this for each type of sampler data we have.
Implements PerEntryHistogramSet.
Definition at line 40 of file PerEntryHistogramSetPlane.cc.
|
protectedvirtual |
Derived class should get the partID member and form a set from the specific type of sampler it is.
Implements PerEntryHistogramSet.
Definition at line 50 of file PerEntryHistogramSetPlane.cc.
|
protected |
Definition at line 61 of file PerEntryHistogramSetPlane.hh.
|
protected |
Definition at line 63 of file PerEntryHistogramSetPlane.hh.