#include <ProductSelector.h>
Public Member Functions | |
void | initialize (ProductSelectorRules const &rules, std::vector< BranchDescription const * > const &branchDescriptions) |
bool | initialized () const |
void | print (std::ostream &os) const |
ProductSelector () | |
bool | selected (BranchDescription const &desc) const |
Static Public Member Functions | |
static void | checkForDuplicateKeptBranch (BranchDescription const &desc, std::map< BranchID, BranchDescription const * > &trueBranchIDToKeptBranchDesc) |
static void | fillDroppedToKept (ProductRegistry const &preg, std::map< BranchID, BranchDescription const * > const &trueBranchIDToKeptBranchDesc, std::map< BranchID::value_type, BranchID::value_type > &droppedBranchIDToKeptBranchID_) |
Private Attributes | |
bool | initialized_ |
std::vector< std::string > | productsToSelect_ |
Definition at line 26 of file ProductSelector.h.
edm::ProductSelector::ProductSelector | ( | ) |
Definition at line 18 of file ProductSelector.cc.
|
static |
Definition at line 71 of file ProductSelector.cc.
References edm::check(), edm::errors::Configuration, Exception, edm::BranchDescription::isSwitchAlias(), edm::BranchDescription::originalBranchID(), edm::BranchDescription::produced(), and edm::BranchDescription::switchAliasForBranchID().
Referenced by initialized(), edm::OutputModule::keepThisBranch(), edm::SubProcess::keepThisBranch(), edm::one::OutputModuleBase::keepThisBranch(), edm::global::OutputModuleBase::keepThisBranch(), and edm::limited::OutputModuleBase::keepThisBranch().
|
static |
Definition at line 99 of file ProductSelector.cc.
References edm::BranchDescription::branchID(), edm::BranchID::id(), edm::BranchDescription::isAlias(), edm::BranchDescription::produced(), and edm::ProductRegistry::productList().
Referenced by initialized(), edm::SubProcess::selectProducts(), edm::OutputModule::selectProducts(), edm::global::OutputModuleBase::selectProducts(), edm::limited::OutputModuleBase::selectProducts(), and edm::one::OutputModuleBase::selectProducts().
void edm::ProductSelector::initialize | ( | ProductSelectorRules const & | rules, |
std::vector< BranchDescription const * > const & | branchDescriptions | ||
) |
Definition at line 20 of file ProductSelector.cc.
References edm::ProductSelectorRules::applyToAll(), end, initialized_, productsToSelect_, and edm::sort_all().
Referenced by edm::RootFile::dropOnInput(), edm::SubProcess::selectProducts(), edm::OutputModule::selectProducts(), edm::global::OutputModuleBase::selectProducts(), edm::limited::OutputModuleBase::selectProducts(), edm::one::OutputModuleBase::selectProducts(), and ShallowTree::ShallowTree().
|
inline |
Definition at line 38 of file ProductSelector.h.
References checkForDuplicateKeptBranch(), fillDroppedToKept(), and initialized_.
Referenced by edm::SubProcess::selectProducts(), edm::OutputModule::selectProducts(), edm::global::OutputModuleBase::selectProducts(), edm::limited::OutputModuleBase::selectProducts(), and edm::one::OutputModuleBase::selectProducts().
void edm::ProductSelector::print | ( | std::ostream & | os | ) | const |
Definition at line 65 of file ProductSelector.cc.
References edm::copy_all(), and productsToSelect_.
Referenced by edm::operator<<().
bool edm::ProductSelector::selected | ( | BranchDescription const & | desc | ) | const |
Definition at line 55 of file ProductSelector.cc.
References edm::binary_search_all(), edm::BranchDescription::branchName(), Exception, initialized_, edm::errors::LogicError, and productsToSelect_.
Referenced by edm::RootFile::dropOnInput(), edm::OutputModule::selected(), edm::global::OutputModuleBase::selected(), edm::limited::OutputModuleBase::selected(), edm::one::OutputModuleBase::selected(), edm::SubProcess::selectProducts(), and ShallowTree::ShallowTree().
|
private |
Definition at line 58 of file ProductSelector.h.
Referenced by initialize(), initialized(), and selected().
|
private |
Definition at line 57 of file ProductSelector.h.
Referenced by initialize(), print(), and selected().