Base class for the various types of spectrum loader. More...
#include <SpectrumLoaderBase.h>
Classes | |
class | _VarOrMultiVar |
struct | IDMap |
Helper class for SpectrumLoaderBase. More... | |
struct | SpectList |
Helper class for SpectrumLoaderBase. More... | |
Public Member Functions | |
virtual | ~SpectrumLoaderBase () |
virtual void | AddSpectrum (Spectrum &spect, const Var &var, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift, const Var &wei=kUnweighted) |
For use by the Spectrum constructor. More... | |
virtual void | AddSpectrum (Spectrum &spect, const MultiVar &var, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift, const Var &wei=kUnweighted) |
For use by the Spectrum constructor. More... | |
virtual void | AddSpectrum (Spectrum &spect, const SpillVar &var, const SpillCut &cut, const SpillVar &wei=kSpillUnweighted) |
For use by the Spectrum constructor. More... | |
virtual void | AddSpectrum (Spectrum &spect, const SpillMultiVar &var, const SpillCut &cut, const SpillVar &wei=kSpillUnweighted) |
For use by the Spectrum constructor. More... | |
virtual void | AddReweightableSpectrum (ReweightableSpectrum &spect, const Var &var, const Cut &cut, const SystShifts &shift, const Var &wei) |
For use by the constructors of ReweightableSpectrum subclasses. More... | |
virtual void | AddReweightableSpectrum (ReweightableSpectrum &spect, const Var &var, const SpillCut &spillcut, const SliceCut &slicecut, const SystShifts &shift, const Var &wei) |
For use by the constructors of ReweightableSpectrum subclasses. More... | |
virtual void | Go ()=0 |
Load all the registered spectra. More... | |
virtual bool | Gone () const |
Indicate whether or not Go has been called. More... | |
Protected Types | |
typedef _VarOrMultiVar < caf::SRSliceProxy > | VarOrMultiVar |
typedef _VarOrMultiVar < caf::SRSpillProxy > | SpillVarOrMultiVar |
Protected Member Functions | |
SpectrumLoaderBase (DataSource src=kBeam) | |
Component of other constructors. More... | |
SpectrumLoaderBase (const std::string &wildcard, DataSource src=kBeam) | |
Construct from a filename, wildcard, SAM definition, or SAM query. More... | |
SpectrumLoaderBase (const std::vector< std::string > &fnames, DataSource src=kBeam) | |
Construct from an explicit list of files. More... | |
SpectrumLoaderBase (SpectrumLoaderBase &&)=default | |
SpectrumLoaderBase & | operator= (SpectrumLoaderBase &&)=default |
SpectrumLoaderBase (const SpectrumLoaderBase &)=delete | |
SpectrumLoaderBase & | operator= (const SpectrumLoaderBase &)=delete |
IFileSource * | WildcardOrSAMQuery (const std::string &str) const |
Figure out if str is a wildcard or SAM query and return a source. More... | |
virtual void | RemoveSpectrum (Spectrum *) |
virtual void | RemoveReweightableSpectrum (ReweightableSpectrum *) |
int | NFiles () const |
Forwards to fFileSource. More... | |
TFile * | GetNextFile () |
Protected Attributes | |
std::string | fWildcard |
std::unique_ptr< IFileSource > | fFileSource |
DataSource | fSource |
bool | fGone |
Has Go() been called? Can't add more histograms after that. More... | |
double | fPOT |
double | fPOTFromHist |
Accumulated by calls to GetNextFile. More... | |
int | fNReadouts |
IDMap< SpillCut, IDMap < SystShifts, IDMap< Cut, IDMap< Var, IDMap < VarOrMultiVar, SpectList > > > > > | fHistDefs |
All the spectra that need to be filled. More... | |
IDMap< SpillCut, IDMap < SpillVar, IDMap < SpillVarOrMultiVar, SpectList > > > | fSpillHistDefs |
[spillcut][spillwei][spillvar] More... | |
Friends | |
class | ReweightableSpectrum |
class | NDOscillatableSpectrum |
class | OscillatableSpectrum |
class | Spectrum |
class | SpectrumLoaderMockData |
Base class for the various types of spectrum loader.
Definition at line 36 of file SpectrumLoaderBase.h.
|
protected |
Definition at line 210 of file SpectrumLoaderBase.h.
|
protected |
Definition at line 209 of file SpectrumLoaderBase.h.
|
virtual |
Definition at line 149 of file SpectrumLoaderBase.cxx.
|
protected |
Component of other constructors.
Definition at line 122 of file SpectrumLoaderBase.cxx.
|
protected |
Construct from a filename, wildcard, SAM definition, or SAM query.
Definition at line 128 of file SpectrumLoaderBase.cxx.
|
protected |
Construct from an explicit list of files.
Definition at line 137 of file SpectrumLoaderBase.cxx.
|
protecteddefault |
|
protecteddelete |
|
virtual |
For use by the constructors of ReweightableSpectrum subclasses.
Definition at line 274 of file SpectrumLoaderBase.cxx.
|
virtual |
For use by the constructors of ReweightableSpectrum subclasses.
Definition at line 291 of file SpectrumLoaderBase.cxx.
|
virtual |
For use by the Spectrum constructor.
Definition at line 200 of file SpectrumLoaderBase.cxx.
|
virtual |
For use by the Spectrum constructor.
Definition at line 218 of file SpectrumLoaderBase.cxx.
|
virtual |
For use by the Spectrum constructor.
Definition at line 236 of file SpectrumLoaderBase.cxx.
|
virtual |
For use by the Spectrum constructor.
Definition at line 252 of file SpectrumLoaderBase.cxx.
|
protected |
Definition at line 322 of file SpectrumLoaderBase.cxx.
|
pure virtual |
Load all the registered spectra.
Implemented in ana::NullLoader, ana::FileReducer, and ana::SpectrumLoader.
|
inlinevirtual |
Indicate whether or not Go has been called.
Definition at line 94 of file SpectrumLoaderBase.h.
|
protected |
Forwards to fFileSource.
Definition at line 316 of file SpectrumLoaderBase.cxx.
|
protecteddefault |
|
protecteddelete |
|
protectedvirtual |
Definition at line 310 of file SpectrumLoaderBase.cxx.
|
protectedvirtual |
Definition at line 268 of file SpectrumLoaderBase.cxx.
|
protected |
Figure out if str is a wildcard or SAM query and return a source.
Definition at line 156 of file SpectrumLoaderBase.cxx.
|
friend |
Definition at line 41 of file SpectrumLoaderBase.h.
|
friend |
Definition at line 42 of file SpectrumLoaderBase.h.
|
friend |
Definition at line 40 of file SpectrumLoaderBase.h.
|
friend |
Definition at line 43 of file SpectrumLoaderBase.h.
|
friend |
Definition at line 115 of file SpectrumLoaderBase.h.
|
protected |
Definition at line 125 of file SpectrumLoaderBase.h.
|
protected |
Has Go() been called? Can't add more histograms after that.
Definition at line 129 of file SpectrumLoaderBase.h.
|
protected |
All the spectra that need to be filled.
[spillcut][shift][cut][wei][var]
Definition at line 215 of file SpectrumLoaderBase.h.
|
protected |
Definition at line 133 of file SpectrumLoaderBase.h.
|
protected |
Definition at line 131 of file SpectrumLoaderBase.h.
|
protected |
Accumulated by calls to GetNextFile.
Definition at line 132 of file SpectrumLoaderBase.h.
|
protected |
Definition at line 127 of file SpectrumLoaderBase.h.
|
protected |
[spillcut][spillwei][spillvar]
Definition at line 217 of file SpectrumLoaderBase.h.
|
protected |
Definition at line 124 of file SpectrumLoaderBase.h.