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_
void setLuminosityBlockPrincipal(LuminosityBlockPrincipal *lbp)
void commonFillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader)
bool isSameEvent(EventAuxiliary const &a, EventAuxiliary const &b)
EventToProcessBlockIndexes const & eventToProcessBlockIndexes() const
EventSelectionIDVector const & eventSelectionIDs() const
unsigned int ProductResolverIndex
int bunchCrossing() const
std::variant< unsigned int, detail::GetThinnedKeyFromExceptionFactory, std::monostate > OptionalThinnedKey
std::shared_ptr< ProductProvenanceRetriever > & provRetrieverPtr()
EventToProcessBlockIndexes eventToProcessBlockIndexes_
EventAuxiliary::ExperimentType ExperimentType() const
BasicHandle getByProductID(ProductID const &oid) const
EventSelectionIDVector eventSelectionIDs_
unsigned int processBlockIndex(std::string const &processName) const override
BranchID pidToBid(ProductID const &pid) const
static int const invalidBunchXing
BranchListIndexes branchListIndexes_
edm::ThinnedAssociation const * getThinnedAssociation(edm::BranchID const &branchID) const
EventID const & id() const
Timestamp const & time() const
StableProvenance const & getStableProvenance(ProductID const &pid) const
StableProvenance const & getStableProvenance(BranchID const &bid) const
edm::propagate_const< LuminosityBlockPrincipal * > luminosityBlockPrincipal_
void changedIndexes_() final
std::shared_ptr< BranchIDListHelper const > branchIDListHelper_
LuminosityBlockNumber_t luminosityBlock() const
LuminosityBlockPrincipal & luminosityBlockPrincipal()
constexpr std::shared_ptr< T > & get_underlying_safe(propagate_const< std::shared_ptr< T >> &iP)
edm::propagate_const< std::shared_ptr< ProductProvenanceRetriever > > provRetrieverPtr_
LuminosityBlockNumber_t luminosityBlock() const
OptionalThinnedKey getThinnedKeyFrom(ProductID const &parent, unsigned int key, ProductID const &thinned) const override
BranchListIndexes const & branchListIndexes() const
unsigned int LuminosityBlockNumber_t
int bunchCrossing() const
ProcessHistory const & processHistory() const
ProductID branchIDToProductID(BranchID const &bid) const
Provenance const & getProvenance(ProductID const &pid) const
RunPrincipal const & runPrincipal() const
std::vector< EventSelectionID > EventSelectionIDVector
ExperimentType experimentType() const
Timestamp const & time() const
void mergeProvenanceRetrievers(EventPrincipal &other)
std::vector< BranchListIndex > BranchListIndexes
static int const invalidBunchXing
LuminosityBlockPrincipal const & luminosityBlockPrincipal() const
Base::ConstProductResolverPtr ConstProductResolverPtr
StreamID streamID() const
tuple key
prepare the HTCondor submission files and eventually submit them
WrapperBase const * getIt(ProductID const &pid) const override
void updateBranchListIndexes(BranchListIndexes &&)
~EventPrincipal() override
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, ProductProvenance const &productProvenance) const
ProductProvenanceRetriever const * productProvenanceRetrieverPtr() 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)
std::vector< ProcessIndex > branchListIndexToProcessIndex_
DelayedReader * reader() const
static int const invalidStoreNumber
unsigned int transitionIndex_() const override
void clearEventPrincipal()
void putOnRead(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp, std::optional< ProductProvenance > productProvenance) const
ProductResolverBase const * ConstProductResolverPtr
void fillEventPrincipal(EventAuxiliary const &aux, ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
ProcessBlockHelperBase const * processBlockHelper_
EventID const & id() const
static int const invalidStoreNumber
bool wasBranchListIndexesChangedFromInput(BranchListIndexes const &) const
Provenance const & getProvenance(BranchID const &bid) const
bool luminosityBlockPrincipalPtrValid() const
void setRunAndLumiNumber(RunNumber_t run, LuminosityBlockNumber_t lumi)
EventAuxiliary const & aux() const
std::shared_ptr< ProductProvenanceRetriever const > provRetrieverPtr() const
void getThinnedProducts(ProductID const &pid, std::vector< WrapperBase const * > &foundContainers, std::vector< unsigned int > &keys) const override
std::optional< std::tuple< WrapperBase const *, unsigned int > > getThinnedProduct(ProductID const &pid, unsigned int key) const override