#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 TrackValidation_cff::association, class-composition::parent, and 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 B2GTnPMonitor_cfi::item, groupFilesInBlocks::temp, and vThinnedAssociationBranches_.
Referenced by initAssociationsFromSecondary(), selectAssociationProducts(), and shouldKeepAssociation().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::begin | ( | void | ) | const |
Definition at line 17 of file ThinnedAssociationsHelper.cc.
References vThinnedAssociationBranches_.
|
inline |
Definition at line 51 of file ThinnedAssociationsHelper.h.
References vThinnedAssociationBranches_.
Referenced by BeautifulSoup.Tag::setString(), and updateFromParentProcess().
|
inline |
Definition at line 57 of file ThinnedAssociationsHelper.h.
References vThinnedAssociationBranches_.
Referenced by updateFromParentProcess().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::end | ( | void | ) | const |
Definition at line 21 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 228 of file ThinnedAssociationsHelper.cc.
References addAssociation(), TrackValidation_cff::association, associationToBranches(), Exception, edm::errors::LogicError, cuda_std::lower_bound(), and sort().
std::vector< ThinnedAssociationBranches >::const_iterator edm::ThinnedAssociationsHelper::parentBegin | ( | BranchID const & | parent | ) | const |
Definition at line 25 of file ThinnedAssociationsHelper.cc.
References cuda_std::lower_bound(), class-composition::parent, filterCSVwithJSON::target, and vThinnedAssociationBranches_.
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 36 of file ThinnedAssociationsHelper.cc.
References class-composition::parent, filterCSVwithJSON::target, cuda_std::upper_bound(), and vThinnedAssociationBranches_.
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 153 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 79 of file ThinnedAssociationsHelper.cc.
References TrackValidation_cff::association, associationToBranches(), and shouldKeepAssociation().
Referenced by edm::SubProcess::selectProducts(), edm::global::OutputModuleBase::selectProducts(), edm::limited::OutputModuleBase::selectProducts(), and edm::one::OutputModuleBase::selectProducts().
|
private |
Definition at line 100 of file ThinnedAssociationsHelper.cc.
References TrackValidation_cff::association, associationToBranches(), Exception, edm::errors::LogicError, cuda_std::lower_bound(), edm::match(), parentBegin(), and parentEnd().
Referenced by selectAssociationProducts().
void edm::ThinnedAssociationsHelper::sort | ( | ) |
Definition at line 47 of file ThinnedAssociationsHelper.cc.
References funct::false, funct::true, and vThinnedAssociationBranches_.
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 204 of file ThinnedAssociationsHelper.cc.
References addAssociation(), clear(), data(), edm::BranchID::id(), keep, class-composition::parent, and sort().
void edm::ThinnedAssociationsHelper::updateFromPrimaryInput | ( | ThinnedAssociationsHelper const & | helper | ) |
Definition at line 168 of file ThinnedAssociationsHelper.cc.
References requireMatch(), and vThinnedAssociationBranches_.
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 TrackValidation_cff::association, Exception, edm::errors::LogicError, cuda_std::lower_bound(), and requireMatch().
|
private |
Definition at line 81 of file ThinnedAssociationsHelper.h.
Referenced by addAssociation(), associationToBranches(), begin(), clear(), data(), end(), parentBegin(), parentEnd(), sort(), and updateFromPrimaryInput().