CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LuminosityBlockPrincipal.cc
Go to the documentation of this file.
2 
8 
9 namespace edm {
10 
12  std::shared_ptr<LuminosityBlockAuxiliary> aux,
13  std::shared_ptr<ProductRegistry const> reg,
14  ProcessConfiguration const& pc,
15  HistoryAppender* historyAppender,
16  unsigned int index) :
17  Base(reg, reg->productLookup(InLumi), pc, InLumi, historyAppender),
18  runPrincipal_(),
19  aux_(aux),
20  index_(index),
21  complete_(false) {
22  }
23 
24  void
26  ProcessHistoryRegistry const& processHistoryRegistry,
28 
29  complete_ = false;
30 
31  fillPrincipal(aux_->processHistoryID(), processHistoryRegistry, reader);
32 
33  for(auto& prod : *this) {
34  prod->setProcessHistory(processHistory());
35  }
36  }
37 
38  void
40  BranchDescription const& bd,
41  std::unique_ptr<WrapperBase> edp) const {
42  putOrMerge(bd,std::move(edp));
43  }
44 
45  unsigned int
47  return index().value();
48  }
49 
50 }
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
LuminosityBlockIndex index() const
ProcessHistory const & processHistory() const
Definition: Principal.h:144
void fillLuminosityBlockPrincipal(ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=0)
void putOrMerge(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition: Principal.cc:869
virtual unsigned int transitionIndex_() const override
def move
Definition: eostools.py:510
unsigned int value() const
LuminosityBlockPrincipal(std::shared_ptr< LuminosityBlockAuxiliary > aux, std::shared_ptr< ProductRegistry const > reg, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int index)
edm::propagate_const< std::shared_ptr< LuminosityBlockAuxiliary > > aux_
DelayedReader * reader() const
Definition: Principal.h:185
volatile std::atomic< bool > shutdown_flag false
void fillPrincipal(ProcessHistoryID const &hist, ProcessHistoryRegistry const &phr, DelayedReader *reader)
Definition: Principal.cc:344