CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  willBeContinued_ = false;
20  }
21 
22  void LuminosityBlockPrincipal::put(BranchDescription const& bd, std::unique_ptr<WrapperBase> edp) const {
23  put_(bd, std::move(edp));
24  }
25 
26  void LuminosityBlockPrincipal::put(ProductResolverIndex index, std::unique_ptr<WrapperBase> edp) const {
27  auto phb = getProductResolverByIndex(index);
28  dynamic_cast<ProductPutterBase const*>(phb)->putProduct(std::move(edp));
29  }
30 
31  unsigned int LuminosityBlockPrincipal::transitionIndex_() const { return index().value(); }
32 
33 } // namespace edm
void fillPrincipal(DelayedReader *reader)
Definition: Principal.cc:402
unsigned int ProductResolverIndex
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
void fillLuminosityBlockPrincipal(ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
ProcessHistoryID const & processHistoryID() const
LuminosityBlockIndex index() const
ProcessHistory const & processHistory() const
Definition: Principal.h:140
unsigned int transitionIndex_() const override
LuminosityBlockPrincipal(std::shared_ptr< ProductRegistry const > reg, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int index, bool isForPrimaryProcess=true)
def move
Definition: eostools.py:511
unsigned int value() const
tuple reader
Definition: DQM.py:105
DelayedReader * reader() const
Definition: Principal.h:187
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition: Principal.cc:562
void put_(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition: Principal.cc:927