Collection of SpectrumLoaders for many configurations. More...
#include <Loaders.h>
Public Types | |
enum | DataMC { kData, kMC } |
enum | SwappingConfig { kNonSwap, kNueSwap, kNuTauSwap, kIntrinsic } |
Public Member Functions | |
Loaders () | |
No loaders initialized. Use SetLoaderPath to configure. More... | |
~Loaders () | |
void | SetLoaderPath (const std::string &path, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap) |
Configure loader via wildcard path. More... | |
void | SetLoaderFiles (const std::vector< std::string > &files, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap) |
Configure loader via explicit file list. More... | |
void | AddLoader (SpectrumLoaderBase *, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap) |
void | DisableLoader (DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap) |
SpectrumLoaderBase & | GetLoader (DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap) |
Retrieve a specific loader. More... | |
void | Go () |
Call Go() on all the loaders. More... | |
Protected Types | |
typedef std::tuple< DataMC, DataSource, SwappingConfig > | Key_t |
Protected Attributes | |
std::map< Key_t, std::string > | fLoaderPaths |
std::map< Key_t, std::vector < std::string > > | fLoaderFiles |
std::map< Key_t, SpectrumLoaderBase * > | fLoaders |
NullLoader | fNull |
We give this back when a loader isn't set for some configuration. More... | |
|
protected |
enum ana::Loaders::DataMC |
Enumerator | |
---|---|
kData | |
kMC |
Definition at line 15 of file Loaders.h.
Enumerator | |
---|---|
kNonSwap | |
kNueSwap | |
kNuTauSwap | |
kIntrinsic |
ana::Loaders::Loaders | ( | ) |
No loaders initialized. Use SetLoaderPath to configure.
Definition at line 12 of file Loaders.cxx.
ana::Loaders::~Loaders | ( | ) |
Definition at line 17 of file Loaders.cxx.
void ana::Loaders::AddLoader | ( | SpectrumLoaderBase * | file, |
DataMC | datamc, | ||
DataSource | src = kBeam , |
||
SwappingConfig | swap = kNonSwap |
||
) |
Definition at line 57 of file Loaders.cxx.
void ana::Loaders::DisableLoader | ( | DataMC | datamc, |
DataSource | src = kBeam , |
||
SwappingConfig | swap = kNonSwap |
||
) |
Definition at line 74 of file Loaders.cxx.
SpectrumLoaderBase & ana::Loaders::GetLoader | ( | DataMC | datamc, |
DataSource | src = kBeam , |
||
SwappingConfig | swap = kNonSwap |
||
) |
Retrieve a specific loader.
Definition at line 95 of file Loaders.cxx.
void ana::Loaders::Go | ( | ) |
void ana::Loaders::SetLoaderFiles | ( | const std::vector< std::string > & | files, |
DataMC | datamc, | ||
DataSource | src = kBeam , |
||
SwappingConfig | swap = kNonSwap |
||
) |
Configure loader via explicit file list.
Definition at line 40 of file Loaders.cxx.
void ana::Loaders::SetLoaderPath | ( | const std::string & | path, |
DataMC | datamc, | ||
DataSource | src = kBeam , |
||
SwappingConfig | swap = kNonSwap |
||
) |
Configure loader via wildcard path.
Definition at line 23 of file Loaders.cxx.
|
protected |
|
protected |
|
protected |
|
protected |