Public Member Functions | |
LEMMixer (const fhicl::ParameterSet &pset, art::MixHelper &helper) | |
size_t | nSecondaries () |
virtual void | respondToOpenInputFile (const art::FileBlock &fb) |
Fetch the matching lempart file from SAM. More... | |
Protected Member Functions | |
std::string | getSecondaryFilename () |
Tell ART what file to mix with. More... | |
void | FindRelease (const std::string &fname, size_t &pos, size_t &len) const |
Locate the release string within the filename. More... | |
void | FindVersion (const std::string &fname, size_t &pos, size_t &len) const |
Locate the version string within the filename. More... | |
std::string | LEMPartFor (std::string fname) const |
Rewrite filename to find the corresponding lempart file. More... | |
bool | MixPIDDetails (const std::vector< const std::vector< PIDDetails > * > &pids, std::vector< PIDDetails > &out, const art::PtrRemapper &rm) |
Do the actual mixing. More... | |
Protected Attributes | |
bool | fFromSAM |
Are we fetching lempart files from SAM? More... | |
std::string | fLempartFilename |
If so, this is the file we got. More... | |
std::string | fLempartRelease |
Override lempart release to look for. More... | |
std::string | fLempartVersion |
Override lempart version to look for. More... | |
std::string | fUserSAMTag |
bool | fProvidedSecondaryFilename |
Detect re-entry into getSecondaryFilename. More... | |
Definition at line 19 of file LEMMixer_module.cc.
|
explicit |
Definition at line 63 of file LEMMixer_module.cc.
References art::MixHelper::declareMixOp(), fFromSAM, fhicl::ParameterSet::get(), getSecondaryFilename(), MixPIDDetails(), art::MixHelper::registerSecondaryFileNameProvider(), and string.
|
protected |
Locate the release string within the filename.
Definition at line 111 of file LEMMixer_module.cc.
References ana::assert(), and elec2geo::pos.
Referenced by LEMPartFor(), nSecondaries(), and respondToOpenInputFile().
|
protected |
Locate the version string within the filename.
Definition at line 132 of file LEMMixer_module.cc.
References ana::assert(), and elec2geo::pos.
Referenced by LEMPartFor(), nSecondaries(), and respondToOpenInputFile().
|
protected |
Tell ART what file to mix with.
Definition at line 80 of file LEMMixer_module.cc.
References ana::assert(), fLempartFilename, and fProvidedSecondaryFilename.
Referenced by LEMMixer(), and nSecondaries().
|
protected |
Rewrite filename to find the corresponding lempart file.
Definition at line 150 of file LEMMixer_module.cc.
References ana::assert(), om::cout, allTimeWatchdog::endl, FindRelease(), FindVersion(), fLempartRelease, fLempartVersion, plot_validation_datamc::fname, genie::utils::style::Format(), fUserSAMTag, MECModelEnuComparisons::i, ProjMan::ifdh, elec2geo::pos, and string.
Referenced by nSecondaries(), and respondToOpenInputFile().
|
protected |
Do the actual mixing.
Definition at line 94 of file LEMMixer_module.cc.
References ana::assert(), and PandAna.reco_validation.prod5_pid_validation::pids.
Referenced by LEMMixer(), and nSecondaries().
|
inline |
Definition at line 25 of file LEMMixer_module.cc.
References fb, FindRelease(), FindVersion(), plot_validation_datamc::fname, getSecondaryFilename(), LEMPartFor(), MixPIDDetails(), confusionMatrixTree::out, PandAna.reco_validation.prod5_pid_validation::pids, elec2geo::pos, respondToOpenInputFile(), and string.
|
virtual |
Fetch the matching lempart file from SAM.
Definition at line 212 of file LEMMixer_module.cc.
References meta::MetadataManager::AddMetadata(), ana::assert(), DEFINE_ART_MODULE(), fFromSAM, art::FileBlock::fileName(), FindRelease(), FindVersion(), fLempartFilename, fLempartRelease, fLempartVersion, meta::MetadataManager::getInstance(), LEMPartFor(), Munits::mm, elec2geo::pos, fabricate::status, and system().
Referenced by nSecondaries().
|
protected |
Are we fetching lempart files from SAM?
Definition at line 50 of file LEMMixer_module.cc.
Referenced by LEMMixer(), and respondToOpenInputFile().
|
protected |
If so, this is the file we got.
Definition at line 51 of file LEMMixer_module.cc.
Referenced by getSecondaryFilename(), and respondToOpenInputFile().
|
protected |
Override lempart release to look for.
Definition at line 53 of file LEMMixer_module.cc.
Referenced by LEMPartFor(), and respondToOpenInputFile().
|
protected |
Override lempart version to look for.
Definition at line 54 of file LEMMixer_module.cc.
Referenced by LEMPartFor(), and respondToOpenInputFile().
|
protected |
Detect re-entry into getSecondaryFilename.
Definition at line 59 of file LEMMixer_module.cc.
Referenced by getSecondaryFilename().
|
protected |
Definition at line 56 of file LEMMixer_module.cc.
Referenced by LEMPartFor().