CMS 3D CMS Logo

LuminosityBlockPrincipal.cc
Go to the documentation of this file.
2 
4 
5 namespace edm {
6 
7  LuminosityBlockPrincipal::LuminosityBlockPrincipal(std::shared_ptr<ProductRegistry const> reg,
8  ProcessConfiguration const& pc,
9  HistoryAppender* historyAppender,
10  unsigned int index,
11  bool isForPrimaryProcess)
12  : Base(reg, reg->productLookup(InLumi), pc, InLumi, historyAppender, isForPrimaryProcess),
13  runPrincipal_(),
14  index_(index) {}
15 
19  }
20 
21  void LuminosityBlockPrincipal::put(BranchDescription const& bd, std::unique_ptr<WrapperBase> edp) const {
22  putOrMerge(bd, std::move(edp));
23  }
24 
25  void LuminosityBlockPrincipal::put(ProductResolverIndex index, std::unique_ptr<WrapperBase> edp) const {
26  auto phb = getProductResolverByIndex(index);
27  phb->putOrMergeProduct(std::move(edp));
28  }
29 
30  unsigned int LuminosityBlockPrincipal::transitionIndex_() const { return index().value(); }
31 
32 } // namespace edm
edm::ProductResolverIndex
unsigned int ProductResolverIndex
Definition: ProductResolverIndex.h:8
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::Principal
Definition: Principal.h:57
ProductRegistry.h
edm::Principal::processHistory
ProcessHistory const & processHistory() const
Definition: Principal.h:139
edm::Principal::getProductResolverByIndex
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition: Principal.cc:535
edm::Principal::fillPrincipal
void fillPrincipal(ProcessHistoryID const &hist, ProcessHistory const *phr, DelayedReader *reader)
Definition: Principal.cc:394
edm::LuminosityBlockIndex::value
unsigned int value() const
Definition: LuminosityBlockIndex.h:46
DQM.reader
reader
Definition: DQM.py:105
edm::Principal::reader
DelayedReader * reader() const
Definition: Principal.h:185
edm::LuminosityBlockAuxiliary::processHistoryID
ProcessHistoryID const & processHistoryID() const
Definition: LuminosityBlockAuxiliary.h:28
edm::InLumi
Definition: BranchType.h:11
edm::LuminosityBlockPrincipal::fillLuminosityBlockPrincipal
void fillLuminosityBlockPrincipal(ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
Definition: LuminosityBlockPrincipal.cc:16
edm::LuminosityBlockPrincipal::put
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition: LuminosityBlockPrincipal.cc:21
edm::HistoryAppender
Definition: HistoryAppender.h:13
LuminosityBlockPrincipal.h
edm::LuminosityBlockPrincipal::LuminosityBlockPrincipal
LuminosityBlockPrincipal(std::shared_ptr< ProductRegistry const > reg, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int index, bool isForPrimaryProcess=true)
Definition: LuminosityBlockPrincipal.cc:7
eostools.move
def move(src, dest)
Definition: eostools.py:511
edm::DelayedReader
Definition: DelayedReader.h:29
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
edm::BranchDescription
Definition: BranchDescription.h:32
edm::LuminosityBlockPrincipal::aux_
LuminosityBlockAuxiliary aux_
Definition: LuminosityBlockPrincipal.h:79
edm::ProcessHistory
Definition: ProcessHistory.h:13
edm::Principal::putOrMerge
void putOrMerge(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition: Principal.cc:872
edm::LuminosityBlockPrincipal::index
LuminosityBlockIndex index() const
Definition: LuminosityBlockPrincipal.h:51
edm::LuminosityBlockPrincipal::transitionIndex_
unsigned int transitionIndex_() const override
Definition: LuminosityBlockPrincipal.cc:30
edm::ProcessConfiguration
Definition: ProcessConfiguration.h:14