All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ana::NullLoader Class Reference

Dummy loader that doesn't load any files. More...

#include <SpectrumLoaderBase.h>

Inheritance diagram for ana::NullLoader:
ana::SpectrumLoaderBase

Public Member Functions

 NullLoader ()
 
 ~NullLoader ()
 
virtual void Go () override
 Load all the registered spectra. More...
 
void AddSpectrum (Spectrum &spect, const Var &var, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift, const Var &wei=kUnweighted) override
 
void AddSpectrum (Spectrum &spect, const MultiVar &var, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift, const Var &wei=kUnweighted) override
 
void AddSpectrum (Spectrum &spect, const SpillVar &var, const SpillCut &cut, const SpillVar &wei=kSpillUnweighted) override
 
void AddSpectrum (Spectrum &spect, const SpillMultiVar &var, const SpillCut &cut, const SpillVar &wei=kSpillUnweighted) override
 
void AddReweightableSpectrum (ReweightableSpectrum &spect, const Var &var, const Cut &cut, const SystShifts &shift, const Var &wei) override
 
void AddReweightableSpectrum (ReweightableSpectrum &spect, const Var &var, const SpillCut &spillcut, const Cut &cut, const SystShifts &shift, const Var &wei) override
 
- Public Member Functions inherited from ana::SpectrumLoaderBase
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 bool Gone () const
 Indicate whether or not Go has been called. More...
 

Additional Inherited Members

- Protected Types inherited from ana::SpectrumLoaderBase
typedef _VarOrMultiVar
< caf::SRSliceProxy
VarOrMultiVar
 
typedef _VarOrMultiVar
< caf::SRSpillProxy
SpillVarOrMultiVar
 
- Protected Member Functions inherited from ana::SpectrumLoaderBase
 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
 
SpectrumLoaderBaseoperator= (SpectrumLoaderBase &&)=default
 
 SpectrumLoaderBase (const SpectrumLoaderBase &)=delete
 
SpectrumLoaderBaseoperator= (const SpectrumLoaderBase &)=delete
 
IFileSourceWildcardOrSAMQuery (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 inherited from ana::SpectrumLoaderBase
std::string fWildcard
 
std::unique_ptr< IFileSourcefFileSource
 
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...
 

Detailed Description

Dummy loader that doesn't load any files.

Useful when a loader is required for a component you want to ignore

Definition at line 223 of file SpectrumLoaderBase.h.

Constructor & Destructor Documentation

ana::NullLoader::NullLoader ( )
inline

Definition at line 226 of file SpectrumLoaderBase.h.

226 {}
ana::NullLoader::~NullLoader ( )

Definition at line 340 of file SpectrumLoaderBase.cxx.

341  {
342  }

Member Function Documentation

void ana::NullLoader::AddReweightableSpectrum ( ReweightableSpectrum spect,
const Var var,
const Cut cut,
const SystShifts shift,
const Var wei 
)
inlineoverride

Definition at line 253 of file SpectrumLoaderBase.h.

257  {}
void ana::NullLoader::AddReweightableSpectrum ( ReweightableSpectrum spect,
const Var var,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift,
const Var wei 
)
inlineoverride

Definition at line 259 of file SpectrumLoaderBase.h.

264  {}
void ana::NullLoader::AddSpectrum ( Spectrum spect,
const Var var,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift,
const Var wei = kUnweighted 
)
inlineoverride

Definition at line 230 of file SpectrumLoaderBase.h.

235  {}
void ana::NullLoader::AddSpectrum ( Spectrum spect,
const MultiVar var,
const SpillCut spillcut,
const Cut cut,
const SystShifts shift,
const Var wei = kUnweighted 
)
inlineoverride

Definition at line 236 of file SpectrumLoaderBase.h.

241  {}
void ana::NullLoader::AddSpectrum ( Spectrum spect,
const SpillVar var,
const SpillCut cut,
const SpillVar wei = kSpillUnweighted 
)
inlineoverride

Definition at line 243 of file SpectrumLoaderBase.h.

246  {}
void ana::NullLoader::AddSpectrum ( Spectrum spect,
const SpillMultiVar var,
const SpillCut cut,
const SpillVar wei = kSpillUnweighted 
)
inlineoverride

Definition at line 248 of file SpectrumLoaderBase.h.

251  {}
void ana::NullLoader::Go ( )
overridevirtual

Load all the registered spectra.

Implements ana::SpectrumLoaderBase.

Definition at line 335 of file SpectrumLoaderBase.cxx.

336  {
337  }

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