CMS 3D CMS Logo

LuminosityBlockPrincipal.cc
Go to the documentation of this file.
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  put_(bd, std::move(edp));
23  }
24 
25  void LuminosityBlockPrincipal::put(ProductResolverIndex index, std::unique_ptr<WrapperBase> edp) const {
26  auto phb = getProductResolverByIndex(index);
27  dynamic_cast<ProductPutterBase const*>(phb)->putProduct(std::move(edp));
28  }
29 
30  unsigned int LuminosityBlockPrincipal::transitionIndex_() const { return index().value(); }
31 
32 } // namespace edm
void fillPrincipal(DelayedReader *reader)
Definition: Principal.cc:403
LuminosityBlockPrincipal(std::shared_ptr< ProductRegistry const > reg, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int index, bool isForPrimaryProcess=true)
unsigned int ProductResolverIndex
void fillLuminosityBlockPrincipal(ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
ProcessHistoryID const & processHistoryID() const
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
reader
Definition: DQM.py:105
unsigned int transitionIndex_() const override
unsigned int value() const
void put_(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition: Principal.cc:861
ProcessHistory const & processHistory() const
Definition: Principal.h:134
HLT enums.
LuminosityBlockIndex index() const
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition: Principal.cc:563
def move(src, dest)
Definition: eostools.py:511
DelayedReader * reader() const
Definition: Principal.h:181