#include <ThinnedAssociationsHelper.h>
Public Member Functions | |
void | addAssociation (BranchID const &, BranchID const &, BranchID const &, bool slimmed) |
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 |
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 | |
void | ensureSlimmingConstraints () const |
std::vector< ThinnedAssociationBranches >::const_iterator | lower_bound (ThinnedAssociationBranches const &branches) const |
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 37 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, | ||
bool | slimmed | ||
) |
Definition at line 61 of file ThinnedAssociationsHelper.cc.
References class-composition::parent.
Referenced by initAssociationsFromSecondary(), edm::ThinningProducer< Collection, Selector >::registerThinnedAssociations(), and updateFromParentProcess().
void edm::ThinnedAssociationsHelper::addAssociation | ( | ThinnedAssociationBranches const & | branches | ) |
Definition at line 68 of file ThinnedAssociationsHelper.cc.
References cms::Exception::addAdditionalInfo(), cms::Exception::addContext(), ensureSlimmingConstraints(), dqm-mbProfile::format, edm::BranchID::id(), edm::ThinnedAssociationBranches::isSlimmed(), lower_bound(), edm::ThinnedAssociationBranches::thinned(), and vThinnedAssociationBranches_.
std::vector< std::pair< BranchID, ThinnedAssociationBranches const * > > edm::ThinnedAssociationsHelper::associationToBranches | ( | ) | const |
Definition at line 176 of file ThinnedAssociationsHelper.cc.
References B2GTnPMonitor_cfi::item, jetUpdater_cfi::sort, groupFilesInBlocks::temp, vThinnedAssociationBranches_, and x.
Referenced by initAssociationsFromSecondary(), selectAssociationProducts(), and shouldKeepAssociation().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::begin | ( | void | ) | const |
Definition at line 20 of file ThinnedAssociationsHelper.cc.
References vThinnedAssociationBranches_.
Referenced by ensureSlimmingConstraints(), and edm::detail::getThinnedKeyFrom_implementation().
|
inline |
Definition at line 52 of file ThinnedAssociationsHelper.h.
References vThinnedAssociationBranches_.
Referenced by updateFromParentProcess().
|
inline |
Definition at line 58 of file ThinnedAssociationsHelper.h.
References vThinnedAssociationBranches_.
Referenced by updateFromParentProcess().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::end | ( | void | ) | const |
Definition at line 24 of file ThinnedAssociationsHelper.cc.
References vThinnedAssociationBranches_.
Referenced by Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), ensureSlimmingConstraints(), and edm::detail::getThinnedKeyFrom_implementation().
|
private |
Definition at line 144 of file ThinnedAssociationsHelper.cc.
References b, begin(), DummyCfis::c, dqmiodumpmetadata::counts, end(), and pfDeepBoostedJetPreprocessParams_cfi::lower_bound.
Referenced by addAssociation().
void edm::ThinnedAssociationsHelper::initAssociationsFromSecondary | ( | std::vector< BranchID > const & | associationsFromSecondary, |
ThinnedAssociationsHelper const & | fileAssociationsHelper | ||
) |
Definition at line 338 of file ThinnedAssociationsHelper.cc.
References addAssociation(), associationToBranches(), Exception, edm::errors::LogicError, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and x.
|
private |
Definition at line 50 of file ThinnedAssociationsHelper.cc.
References funct::false, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, funct::true, vThinnedAssociationBranches_, and x.
Referenced by addAssociation().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::parentBegin | ( | BranchID const & | parent | ) | const |
Definition at line 28 of file ThinnedAssociationsHelper.cc.
References pfDeepBoostedJetPreprocessParams_cfi::lower_bound, class-composition::parent, filterCSVwithJSON::target, vThinnedAssociationBranches_, and x.
Referenced by edm::detail::getThinnedKeyFrom_implementation(), edm::detail::getThinnedProductOnSlimmingDepth(), edm::detail::getThinnedProductsOnSlimmingDepth(), requireMatch(), and shouldKeepAssociation().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::parentEnd | ( | BranchID const & | parent | ) | const |
Definition at line 39 of file ThinnedAssociationsHelper.cc.
References class-composition::parent, filterCSVwithJSON::target, pfDeepBoostedJetPreprocessParams_cfi::upper_bound, vThinnedAssociationBranches_, and x.
Referenced by edm::detail::getThinnedKeyFrom_implementation(), edm::detail::getThinnedProductOnSlimmingDepth(), edm::detail::getThinnedProductsOnSlimmingDepth(), requireMatch(), and shouldKeepAssociation().
void edm::ThinnedAssociationsHelper::requireMatch | ( | ThinnedAssociationBranches const & | input | ) | const |
Definition at line 264 of file ThinnedAssociationsHelper.cc.
References mps_splice::entry, Exception, input, edm::errors::MismatchedInputFiles, parentBegin(), and parentEnd().
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 190 of file ThinnedAssociationsHelper.cc.
References associationToBranches(), and shouldKeepAssociation().
Referenced by edm::SubProcess::selectProducts(), and edm::core::OutputModuleCore::selectProducts().
|
private |
Definition at line 211 of file ThinnedAssociationsHelper.cc.
References associationToBranches(), Exception, edm::errors::LogicError, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, edm::match(), parentBegin(), parentEnd(), edm::ThinnedAssociationBranches::thinned(), and x.
Referenced by selectAssociationProducts().
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 315 of file ThinnedAssociationsHelper.cc.
References addAssociation(), clear(), data(), edm::BranchID::id(), runTheMatrix::keep, and class-composition::parent.
void edm::ThinnedAssociationsHelper::updateFromPrimaryInput | ( | ThinnedAssociationsHelper const & | helper | ) |
Definition at line 279 of file ThinnedAssociationsHelper.cc.
References requireMatch(), and vThinnedAssociationBranches_.
void edm::ThinnedAssociationsHelper::updateFromSecondaryInput | ( | ThinnedAssociationsHelper const & | helper, |
std::vector< BranchID > const & | associationsFromSecondary | ||
) |
Definition at line 290 of file ThinnedAssociationsHelper.cc.
References Exception, edm::errors::LogicError, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, requireMatch(), and x.
|
private |
Definition at line 86 of file ThinnedAssociationsHelper.h.
Referenced by addAssociation(), associationToBranches(), begin(), clear(), data(), end(), lower_bound(), parentBegin(), parentEnd(), and updateFromPrimaryInput().