CMS 3D CMS Logo

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