52 typedef std::tuple<DataMC, DataSource, SwappingConfig>
Key_t;
void AddLoader(SpectrumLoaderBase *, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap)
std::map< Key_t, std::string > fLoaderPaths
void SetLoaderFiles(const std::vector< std::string > &files, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap)
Configure loader via explicit file list.
void DisableLoader(DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap)
void SetLoaderPath(const std::string &path, DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap)
Configure loader via wildcard path.
Collection of SpectrumLoaders for many configurations.
process_name opflashCryoW ana
void Go()
Call Go() on all the loaders.
BEGIN_PROLOG triggeremu_data_config_icarus settings PMTADCthresholds sequence::icarus_stage0_multiTPC_TPC physics sequence::icarus_stage0_EastHits_TPC physics sequence::icarus_stage0_WestHits_TPC physics producers purityana0 caloskimCalorimetryCryoE physics caloskimCalorimetryCryoW physics path
SpectrumLoaderBase & GetLoader(DataMC datamc, DataSource src=kBeam, SwappingConfig swap=kNonSwap)
Retrieve a specific loader.
DataSource
Is this data-file representing beam spills or cosmic spills?
NullLoader fNull
We give this back when a loader isn't set for some configuration.
Base class for the various types of spectrum loader.
std::map< Key_t, SpectrumLoaderBase * > fLoaders
std::tuple< DataMC, DataSource, SwappingConfig > Key_t
Dummy loader that doesn't load any files.
std::map< Key_t, std::vector< std::string > > fLoaderFiles
Loaders()
No loaders initialized. Use SetLoaderPath to configure.