#include <ThinnedAssociationsHelper.h>
Public Member Functions | |
void | addAssociation (BranchID const &, BranchID const &, BranchID const &) |
void | addAssociation (ThinnedAssociationBranches const &) |
std::vector< std::pair< BranchID, ThinnedAssociationBranches const * > > | associationToBranches () const |
std::vector< ThinnedAssociationBranches >::const_iterator | begin () const |
void | clear () |
std::vector< ThinnedAssociationBranches > const & | data () const |
std::vector< ThinnedAssociationBranches >::const_iterator | end () const |
void | initAssociationsFromSecondary (std::vector< BranchID > const &, ThinnedAssociationsHelper const &) |
std::vector< ThinnedAssociationBranches >::const_iterator | parentBegin (BranchID const &) const |
std::vector< ThinnedAssociationBranches >::const_iterator | parentEnd (BranchID const &) const |
void | requireMatch (ThinnedAssociationBranches const &input) const |
void | selectAssociationProducts (std::vector< BranchDescription const * > const &associationDescriptions, std::set< BranchID > const &keptProductsInEvent, std::map< BranchID, bool > &keepAssociation) const |
void | sort () |
ThinnedAssociationsHelper () | |
void | updateFromParentProcess (ThinnedAssociationsHelper const &parentThinnedAssociationsHelper, std::map< BranchID, bool > const &keepAssociation, std::map< BranchID::value_type, BranchID::value_type > const &droppedBranchIDToKeptBranchID) |
void | updateFromPrimaryInput (ThinnedAssociationsHelper const &) |
void | updateFromSecondaryInput (ThinnedAssociationsHelper const &, std::vector< BranchID > const &associationsFromSecondary) |
Private Member Functions | |
bool | shouldKeepAssociation (BranchID const &association, std::vector< std::pair< BranchID, ThinnedAssociationBranches const * > > const &associationToBranches, std::set< BranchID > &branchesInRecursion, std::set< BranchID > const &keptProductsInEvent, std::map< BranchID, bool > &keepAssociation) const |
Private Attributes | |
std::vector< ThinnedAssociationBranches > | vThinnedAssociationBranches_ |
Definition at line 35 of file ThinnedAssociationsHelper.h.
edm::ThinnedAssociationsHelper::ThinnedAssociationsHelper | ( | ) |
Definition at line 18 of file ThinnedAssociationsHelper.cc.
void edm::ThinnedAssociationsHelper::addAssociation | ( | BranchID const & | parent, |
BranchID const & | association, | ||
BranchID const & | thinned | ||
) |
Definition at line 56 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::ThinnedAssociationBranches().
Referenced by edm::ThinningProducer< Collection, Selector >::registerThinnedAssociations().
void edm::ThinnedAssociationsHelper::addAssociation | ( | ThinnedAssociationBranches const & | branches | ) |
Definition at line 62 of file ThinnedAssociationsHelper.cc.
std::vector< std::pair< BranchID, ThinnedAssociationBranches const * > > edm::ThinnedAssociationsHelper::associationToBranches | ( | ) | const |
Definition at line 67 of file ThinnedAssociationsHelper.cc.
References selectAssociationProducts(), and groupFilesInBlocks::temp.
Referenced by initAssociationsFromSecondary(), and updateFromSecondaryInput().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::begin | ( | void | ) | const |
Definition at line 22 of file ThinnedAssociationsHelper.cc.
|
inline |
Definition at line 52 of file ThinnedAssociationsHelper.h.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
|
inline |
Definition at line 58 of file ThinnedAssociationsHelper.h.
References edm::ThinnedAssociationBranches::association(), and input.
Referenced by updateFromParentProcess(), and updateFromPrimaryInput().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::end | ( | void | ) | const |
Definition at line 27 of file ThinnedAssociationsHelper.cc.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void edm::ThinnedAssociationsHelper::initAssociationsFromSecondary | ( | std::vector< BranchID > const & | associationsFromSecondary, |
ThinnedAssociationsHelper const & | fileAssociationsHelper | ||
) |
Definition at line 231 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), associationToBranches(), Exception, edm::errors::LogicError, and pfDeepBoostedJetPreprocessParams_cfi::lower_bound.
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::parentBegin | ( | BranchID const & | parent | ) | const |
Definition at line 32 of file ThinnedAssociationsHelper.cc.
References pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and edmPickEvents::target.
Referenced by BareRootProductGetter::getThinnedProduct(), fwlite::DataGetterHelper::getThinnedProduct(), BareRootProductGetter::getThinnedProducts(), and fwlite::DataGetterHelper::getThinnedProducts().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::parentEnd | ( | BranchID const & | parent | ) | const |
Definition at line 41 of file ThinnedAssociationsHelper.cc.
References edmPickEvents::target, and pfDeepBoostedJetPreprocessParams_cfi::upper_bound.
Referenced by BareRootProductGetter::getThinnedProduct(), fwlite::DataGetterHelper::getThinnedProduct(), BareRootProductGetter::getThinnedProducts(), and fwlite::DataGetterHelper::getThinnedProducts().
void edm::ThinnedAssociationsHelper::requireMatch | ( | ThinnedAssociationBranches const & | input | ) | const |
Definition at line 158 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), mps_splice::entry, Exception, edm::errors::MismatchedInputFiles, edm::ThinnedAssociationBranches::parent(), and edm::ThinnedAssociationBranches::thinned().
void edm::ThinnedAssociationsHelper::selectAssociationProducts | ( | std::vector< BranchDescription const * > const & | associationDescriptions, |
std::set< BranchID > const & | keptProductsInEvent, | ||
std::map< BranchID, bool > & | keepAssociation | ||
) | const |
Definition at line 80 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association().
Referenced by associationToBranches(), edm::SubProcess::selectProducts(), edm::OutputModule::selectProducts(), edm::global::OutputModuleBase::selectProducts(), edm::limited::OutputModuleBase::selectProducts(), and edm::one::OutputModuleBase::selectProducts().
|
private |
Definition at line 104 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), Exception, edm::errors::LogicError, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and edm::match().
void edm::ThinnedAssociationsHelper::sort | ( | ) |
Definition at line 49 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), and edm::ThinnedAssociationBranches::parent().
void edm::ThinnedAssociationsHelper::updateFromParentProcess | ( | ThinnedAssociationsHelper const & | parentThinnedAssociationsHelper, |
std::map< BranchID, bool > const & | keepAssociation, | ||
std::map< BranchID::value_type, BranchID::value_type > const & | droppedBranchIDToKeptBranchID | ||
) |
Definition at line 207 of file ThinnedAssociationsHelper.cc.
References hitfit::clear(), data(), edm::BranchID::id(), keep, edm::ThinnedAssociationBranches::parent(), and edm::ThinnedAssociationBranches::thinned().
void edm::ThinnedAssociationsHelper::updateFromPrimaryInput | ( | ThinnedAssociationsHelper const & | helper | ) |
Definition at line 173 of file ThinnedAssociationsHelper.cc.
References data(), and idDealer::inputData.
Referenced by edm::StreamerInputSource::mergeIntoRegistry().
void edm::ThinnedAssociationsHelper::updateFromSecondaryInput | ( | ThinnedAssociationsHelper const & | helper, |
std::vector< BranchID > const & | associationsFromSecondary | ||
) |
Definition at line 184 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), associationToBranches(), Exception, edm::errors::LogicError, and pfDeepBoostedJetPreprocessParams_cfi::lower_bound.
|
private |
Definition at line 83 of file ThinnedAssociationsHelper.h.