#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 15 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 B2GTnPMonitor_cfi::item, and groupFilesInBlocks::temp.
Referenced by initAssociationsFromSecondary(), and updateFromSecondaryInput().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::begin | ( | void | ) | const |
Definition at line 17 of file ThinnedAssociationsHelper.cc.
|
inline |
Definition at line 51 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 57 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 21 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 228 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), associationToBranches(), Exception, and edm::errors::LogicError.
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::parentBegin | ( | BranchID const & | parent | ) | const |
Definition at line 25 of file ThinnedAssociationsHelper.cc.
References filterCSVwithJSON::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 36 of file ThinnedAssociationsHelper.cc.
References filterCSVwithJSON::target.
Referenced by BareRootProductGetter::getThinnedProduct(), fwlite::DataGetterHelper::getThinnedProduct(), BareRootProductGetter::getThinnedProducts(), and fwlite::DataGetterHelper::getThinnedProducts().
void edm::ThinnedAssociationsHelper::requireMatch | ( | ThinnedAssociationBranches const & | input | ) | const |
Definition at line 153 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 79 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association().
Referenced by edm::SubProcess::selectProducts(), edm::OutputModule::selectProducts(), edm::global::OutputModuleBase::selectProducts(), edm::limited::OutputModuleBase::selectProducts(), and edm::one::OutputModuleBase::selectProducts().
|
private |
Definition at line 100 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), Exception, edm::errors::LogicError, and edm::match().
void edm::ThinnedAssociationsHelper::sort | ( | ) |
Definition at line 47 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 204 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 168 of file ThinnedAssociationsHelper.cc.
References data().
Referenced by edm::StreamerInputSource::mergeIntoRegistry().
void edm::ThinnedAssociationsHelper::updateFromSecondaryInput | ( | ThinnedAssociationsHelper const & | helper, |
std::vector< BranchID > const & | associationsFromSecondary | ||
) |
Definition at line 179 of file ThinnedAssociationsHelper.cc.
References edm::ThinnedAssociationBranches::association(), associationToBranches(), Exception, and edm::errors::LogicError.
|
private |
Definition at line 81 of file ThinnedAssociationsHelper.h.