Go to the documentation of this file. 1 #ifndef FWCore_Framework_EventPrincipal_h
2 #define FWCore_Framework_EventPrincipal_h
33 class BranchIDListHelper;
34 class ProductProvenanceRetriever;
37 class HistoryAppender;
38 class LuminosityBlockPrincipal;
39 class ModuleCallingContext;
42 class ThinnedAssociation;
43 class ThinnedAssociationsHelper;
55 std::shared_ptr<BranchIDListHelper const> branchIDListHelper,
56 std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper,
59 unsigned int streamIndex = 0,
60 bool isForPrimaryProcess =
true);
77 bool deepCopyRetriever =
true);
125 std::unique_ptr<WrapperBase> edp,
131 std::unique_ptr<WrapperBase> edp,
132 std::optional<ProductProvenance> productProvenance)
const;
136 unsigned int key)
const override;
138 std::vector<WrapperBase const*>& foundContainers,
139 std::vector<unsigned int>&
keys)
const override;
142 ProductID const& thinned)
const override;
EventAuxiliary::ExperimentType ExperimentType() const
std::shared_ptr< BranchIDListHelper const > branchIDListHelper_
edm::propagate_const< LuminosityBlockPrincipal * > luminosityBlockPrincipal_
EventAuxiliary const & aux() const
unsigned int ProductResolverIndex
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
std::shared_ptr< ProductProvenanceRetriever const > provRetrieverPtr() const
static const int invalidStoreNumber
WrapperBase const * getIt(ProductID const &pid) const override
void mergeProvenanceRetrievers(EventPrincipal &other)
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper_
ProductResolverBase const * ConstProductResolverPtr
std::optional< std::tuple< WrapperBase const *, unsigned int > > getThinnedProduct(ProductID const &pid, unsigned int key) const override
std::vector< BranchListIndex > BranchListIndexes
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
std::shared_ptr< ProductProvenanceRetriever > & provRetrieverPtr()
ProcessHistory const & processHistory() const
LuminosityBlockNumber_t luminosityBlock() const
unsigned int LuminosityBlockNumber_t
EventID const & id() const
int bunchCrossing() const
Provenance getProvenance(ProductID const &pid, ModuleCallingContext const *mcc) const
void setRunAndLumiNumber(RunNumber_t run, LuminosityBlockNumber_t lumi)
ProductProvenanceRetriever const * productProvenanceRetrieverPtr() const
BranchListIndexes const & branchListIndexes() const
Provenance getProvenance(BranchID const &bid, ModuleCallingContext const *mcc) const
Timestamp const & time() const
edm::propagate_const< std::shared_ptr< ProductProvenanceRetriever > > provRetrieverPtr_
void changedIndexes_() final
Base::ConstProductResolverPtr ConstProductResolverPtr
edm::ThinnedAssociation const * getThinnedAssociation(edm::BranchID const &branchID) const
DelayedReader * reader() const
EventID const & id() const
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const
ExperimentType experimentType() const
OptionalThinnedKey getThinnedKeyFrom(ProductID const &parent, unsigned int key, ProductID const &thinned) const override
LuminosityBlockNumber_t luminosityBlock() const
std::vector< ProcessIndex > branchListIndexToProcessIndex_
static const int invalidBunchXing
void setLuminosityBlockPrincipal(LuminosityBlockPrincipal *lbp)
void commonFillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader)
void putOnRead(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, std::optional< ProductProvenance > productProvenance) const
EventSelectionIDVector const & eventSelectionIDs() const
Timestamp const & time() const
StreamID streamID() const
void updateBranchListIndexes(BranchListIndexes &&)
int bunchCrossing() const
EventSelectionIDVector eventSelectionIDs_
BasicHandle getByProductID(ProductID const &oid) const
void fillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
std::variant< unsigned int, detail::GetThinnedKeyFromExceptionFactory, std::monostate > OptionalThinnedKey
void getThinnedProducts(ProductID const &pid, std::vector< WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys) const override
LuminosityBlockPrincipal & luminosityBlockPrincipal()
void clearEventPrincipal()
ProductID branchIDToProductID(BranchID const &bid) const
bool isSameEvent(EventAuxiliary const &a, EventAuxiliary const &b)
static const int invalidBunchXing
static const int invalidStoreNumber
bool luminosityBlockPrincipalPtrValid() const
unsigned int transitionIndex_() const override
~EventPrincipal() override
BranchID pidToBid(ProductID const &pid) const
std::vector< EventSelectionID > EventSelectionIDVector
RunPrincipal const & runPrincipal() const
BranchListIndexes branchListIndexes_
EventPrincipal(std::shared_ptr< ProductRegistry const > reg, std::shared_ptr< BranchIDListHelper const > branchIDListHelper, std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int streamIndex=0, bool isForPrimaryProcess=true)
bool wasBranchListIndexesChangedFromInput(BranchListIndexes const &) const