#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 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 groupFilesInBlocks::temp, vThinnedAssociationBranches_, and x().
Referenced by initAssociationsFromSecondary(), selectAssociationProducts(), shouldKeepAssociation(), and updateFromSecondaryInput().
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__(), updateFromParentProcess(), and updateFromPrimaryInput().
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 231 of file ThinnedAssociationsHelper.cc.
References addAssociation(), associationToBranches(), 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(), mps_splice::entry, Exception, edm::errors::MismatchedInputFiles, edm::ThinnedAssociationBranches::parent(), parentBegin(), parentEnd(), and edm::ThinnedAssociationBranches::thinned().
Referenced by updateFromPrimaryInput(), and updateFromSecondaryInput().
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(), edm::global::OutputModuleBase::selectProducts(), and edm::one::OutputModuleBase::selectProducts().
|
private |
Definition at line 104 of file ThinnedAssociationsHelper.cc.
References associationToBranches(), 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(), vThinnedAssociationBranches_, and x().
Referenced by initAssociationsFromSecondary(), and updateFromParentProcess().
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 addAssociation(), clear(), data(), edm::BranchID::id(), keep, SpecificationBuilder_cfi::parent(), and sort().
void edm::ThinnedAssociationsHelper::updateFromPrimaryInput | ( | ThinnedAssociationsHelper const & | helper | ) |
Definition at line 173 of file ThinnedAssociationsHelper.cc.
References data(), idDealer::inputData, requireMatch(), and vThinnedAssociationBranches_.
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 associationToBranches(), Exception, edm::errors::LogicError, requireMatch(), and x().
|
private |
Definition at line 83 of file ThinnedAssociationsHelper.h.
Referenced by addAssociation(), associationToBranches(), begin(), clear(), data(), end(), parentBegin(), parentEnd(), sort(), and updateFromPrimaryInput().