1 #ifndef FWCore_Framework_EventPrincipal_h 2 #define FWCore_Framework_EventPrincipal_h 35 class BranchIDListHelper;
36 class ProductProvenanceRetriever;
39 class HistoryAppender;
40 class LuminosityBlockPrincipal;
41 class ModuleCallingContext;
44 class ThinnedAssociation;
45 class ThinnedAssociationsHelper;
57 std::shared_ptr<BranchIDListHelper const> branchIDListHelper,
58 std::shared_ptr<ThinnedAssociationsHelper const> thinnedAssociationsHelper,
61 unsigned int streamIndex = 0,
62 bool isForPrimaryProcess =
true,
82 bool deepCopyRetriever =
true);
133 std::unique_ptr<WrapperBase> edp,
139 std::unique_ptr<WrapperBase> edp,
140 std::optional<ProductProvenance> productProvenance)
const;
144 unsigned int key)
const override;
146 std::vector<WrapperBase const*>& foundContainers,
147 std::vector<unsigned int>&
keys)
const override;
150 ProductID const& thinned)
const override;
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper_
std::optional< std::tuple< WrapperBase const *, unsigned int > > getThinnedProduct(ProductID const &pid, unsigned int key) const override
void setLuminosityBlockPrincipal(LuminosityBlockPrincipal *lbp)
void commonFillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader)
bool isSameEvent(EventAuxiliary const &a, EventAuxiliary const &b)
unsigned int ProductResolverIndex
EventAuxiliary const & aux() const
std::variant< unsigned int, detail::GetThinnedKeyFromExceptionFactory, std::monostate > OptionalThinnedKey
std::shared_ptr< ProductProvenanceRetriever > & provRetrieverPtr()
EventToProcessBlockIndexes eventToProcessBlockIndexes_
Timestamp const & time() const
EventSelectionIDVector eventSelectionIDs_
unsigned int processBlockIndex(std::string const &processName) const override
edm::ThinnedAssociation const * getThinnedAssociation(edm::BranchID const &branchID) const
static int const invalidBunchXing
StableProvenance const & getStableProvenance(BranchID const &bid) const
BranchListIndexes branchListIndexes_
Timestamp const & time() const
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
edm::propagate_const< LuminosityBlockPrincipal * > luminosityBlockPrincipal_
void changedIndexes_() final
std::shared_ptr< BranchIDListHelper const > branchIDListHelper_
LuminosityBlockPrincipal & luminosityBlockPrincipal()
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
Provenance const & getProvenance(ProductID const &pid) const
edm::propagate_const< std::shared_ptr< ProductProvenanceRetriever > > provRetrieverPtr_
StreamID streamID() const
OptionalThinnedKey getThinnedKeyFrom(ProductID const &parent, unsigned int key, ProductID const &thinned) const override
unsigned int LuminosityBlockNumber_t
BasicHandle getByProductID(ProductID const &oid) const
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, ProcessBlockHelperBase const *processBlockHelper=nullptr)
BranchID pidToBid(ProductID const &pid) const
std::vector< EventSelectionID > EventSelectionIDVector
LuminosityBlockNumber_t luminosityBlock() const
LuminosityBlockNumber_t luminosityBlock() const
EventToProcessBlockIndexes const & eventToProcessBlockIndexes() const
EventID const & id() const
void mergeProvenanceRetrievers(EventPrincipal &other)
ProductID branchIDToProductID(BranchID const &bid) const
std::vector< BranchListIndex > BranchListIndexes
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const
static int const invalidBunchXing
Base::ConstProductResolverPtr ConstProductResolverPtr
void getThinnedProducts(ProductID const &pid, std::vector< WrapperBase const *> &foundContainers, std::vector< unsigned int > &keys) const override
int bunchCrossing() const
std::shared_ptr< ProductProvenanceRetriever const > provRetrieverPtr() const
void updateBranchListIndexes(BranchListIndexes &&)
~EventPrincipal() override
EventAuxiliary::ExperimentType ExperimentType() const
RunPrincipal const & runPrincipal() const
std::vector< ProcessIndex > branchListIndexToProcessIndex_
int bunchCrossing() const
WrapperBase const * getIt(ProductID const &pid) const override
static int const invalidStoreNumber
unsigned int transitionIndex_() const override
void putOnRead(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, std::optional< ProductProvenance > productProvenance) const
ProcessHistory const & processHistory() const
void clearEventPrincipal()
ProductProvenanceRetriever const * productProvenanceRetrieverPtr() const
ProductResolverBase const * ConstProductResolverPtr
bool wasBranchListIndexesChangedFromInput(BranchListIndexes const &) const
void fillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
ProcessBlockHelperBase const * processBlockHelper_
static int const invalidStoreNumber
StableProvenance const & getStableProvenance(ProductID const &pid) const
EventSelectionIDVector const & eventSelectionIDs() const
Provenance const & getProvenance(BranchID const &bid) const
ExperimentType experimentType() const
void setRunAndLumiNumber(RunNumber_t run, LuminosityBlockNumber_t lumi)
BranchListIndexes const & branchListIndexes() const
EventID const & id() const
DelayedReader * reader() const
bool luminosityBlockPrincipalPtrValid() const