#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 | updateFromInput (ThinnedAssociationsHelper const &, bool isSecondaryFile, std::vector< BranchID > const &associationsFromSecondary) |
void | updateFromParentProcess (ThinnedAssociationsHelper const &parentThinnedAssociationsHelper, std::map< BranchID, bool > const &keepAssociation, std::map< BranchID::value_type, BranchID::value_type > const &droppedBranchIDToKeptBranchID) |
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 vThinnedAssociationBranches_.
Referenced by initAssociationsFromSecondary(), edm::ThinningProducer< Collection, Selector >::registerThinnedAssociations(), and updateFromParentProcess().
void edm::ThinnedAssociationsHelper::addAssociation | ( | ThinnedAssociationBranches const & | branches | ) |
Definition at line 62 of file ThinnedAssociationsHelper.cc.
References vThinnedAssociationBranches_.
std::vector< std::pair< BranchID, ThinnedAssociationBranches const * > > edm::ThinnedAssociationsHelper::associationToBranches | ( | ) | const |
Definition at line 67 of file ThinnedAssociationsHelper.cc.
References python.multivaluedict::sort(), groupFilesInBlocks::temp, vThinnedAssociationBranches_, and x().
Referenced by initAssociationsFromSecondary(), selectAssociationProducts(), shouldKeepAssociation(), and updateFromInput().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::begin | ( | void | ) | const |
Definition at line 22 of file ThinnedAssociationsHelper.cc.
References vThinnedAssociationBranches_.
|
inline |
Definition at line 52 of file ThinnedAssociationsHelper.h.
References vThinnedAssociationBranches_.
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(), Vispa.Views.PropertyView.PropertyView::updateContent(), and updateFromParentProcess().
|
inline |
Definition at line 58 of file ThinnedAssociationsHelper.h.
References vThinnedAssociationBranches_.
Referenced by cuy.FindIssue::__init__(), updateFromInput(), and updateFromParentProcess().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::end | ( | void | ) | const |
Definition at line 27 of file ThinnedAssociationsHelper.cc.
References vThinnedAssociationBranches_.
Referenced by Types.LuminosityBlockRange::cppID(), and Types.EventRange::cppID().
void edm::ThinnedAssociationsHelper::initAssociationsFromSecondary | ( | std::vector< BranchID > const & | associationsFromSecondary, |
ThinnedAssociationsHelper const & | fileAssociationsHelper | ||
) |
Definition at line 232 of file ThinnedAssociationsHelper.cc.
References addAssociation(), associationToBranches(), edm::hlt::Exception, edm::errors::LogicError, sort(), and x().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::parentBegin | ( | BranchID const & | parent | ) | const |
Definition at line 32 of file ThinnedAssociationsHelper.cc.
References filterCSVwithJSON::target, vThinnedAssociationBranches_, and x().
Referenced by BareRootProductGetter::getThinnedProduct(), fwlite::DataGetterHelper::getThinnedProduct(), BareRootProductGetter::getThinnedProducts(), fwlite::DataGetterHelper::getThinnedProducts(), requireMatch(), and shouldKeepAssociation().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::parentEnd | ( | BranchID const & | parent | ) | const |
Definition at line 41 of file ThinnedAssociationsHelper.cc.
References filterCSVwithJSON::target, vThinnedAssociationBranches_, and x().
Referenced by BareRootProductGetter::getThinnedProduct(), fwlite::DataGetterHelper::getThinnedProduct(), BareRootProductGetter::getThinnedProducts(), fwlite::DataGetterHelper::getThinnedProducts(), requireMatch(), and shouldKeepAssociation().
void edm::ThinnedAssociationsHelper::requireMatch | ( | ThinnedAssociationBranches const & | input | ) | const |
Definition at line 158 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), edm::hlt::Exception, edm::errors::MismatchedInputFiles, edm::ThinnedAssociationBranches::parent(), parentBegin(), parentEnd(), and edm::ThinnedAssociationBranches::thinned().
Referenced by updateFromInput().
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 associationToBranches(), and shouldKeepAssociation().
Referenced by edm::SubProcess::selectProducts(), edm::OutputModule::selectProducts(), and edm::one::OutputModuleBase::selectProducts().
|
private |
Definition at line 104 of file ThinnedAssociationsHelper.cc.
References associationToBranches(), edm::hlt::Exception, edm::errors::LogicError, edm::match(), parentBegin(), parentEnd(), and x().
Referenced by selectAssociationProducts().
void edm::ThinnedAssociationsHelper::sort | ( | ) |
Definition at line 49 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), edm::ThinnedAssociationBranches::parent(), python.multivaluedict::sort(), vThinnedAssociationBranches_, and x().
Referenced by initAssociationsFromSecondary(), and updateFromParentProcess().
void edm::ThinnedAssociationsHelper::updateFromInput | ( | ThinnedAssociationsHelper const & | helper, |
bool | isSecondaryFile, | ||
std::vector< BranchID > const & | associationsFromSecondary | ||
) |
Definition at line 173 of file ThinnedAssociationsHelper.cc.
References associationToBranches(), data(), edm::hlt::Exception, idDealer::inputData, edm::errors::LogicError, requireMatch(), vThinnedAssociationBranches_, and x().
Referenced by edm::StreamerInputSource::mergeIntoRegistry().
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 208 of file ThinnedAssociationsHelper.cc.
References addAssociation(), clear(), data(), edm::BranchID::id(), keep, dbtoconf::parent, and sort().
|
private |
Definition at line 82 of file ThinnedAssociationsHelper.h.
Referenced by addAssociation(), associationToBranches(), begin(), clear(), data(), end(), parentBegin(), parentEnd(), sort(), and updateFromInput().