CMS 3D CMS Logo

RunPrincipal.cc
Go to the documentation of this file.
2 
6 
7 namespace edm {
9  std::shared_ptr<RunAuxiliary> aux,
10  std::shared_ptr<ProductRegistry const> reg,
11  ProcessConfiguration const& pc,
12  HistoryAppender* historyAppender,
13  unsigned int iRunIndex,
14  bool isForPrimaryProcess) :
15  Base(reg, reg->productLookup(InRun), pc, InRun, historyAppender, isForPrimaryProcess),
16  aux_(aux), index_(iRunIndex), complete_(false) {
17  }
18 
19  void
21  complete_ = false;
22 
23  m_reducedHistoryID = processHistoryRegistry.reducedProcessHistoryID(aux_->processHistoryID());
24  fillPrincipal(aux_->processHistoryID(), processHistoryRegistry, reader);
25 
26  for(auto& prod : *this) {
27  prod->setProcessHistory(processHistory());
28  }
29  }
30 
31  void
33  BranchDescription const& bd,
34  std::unique_ptr<WrapperBase> edp) const {
35  putOrMerge(bd,std::move(edp));
36  }
37 
38  void
40  std::unique_ptr<WrapperBase> edp) const {
41  auto phb = getProductResolverByIndex(index);
42  phb->putOrMergeProduct(std::move(edp));
43  }
44 
45  unsigned int
47  return index().value();
48  }
49 
50 }
edm::propagate_const< std::shared_ptr< RunAuxiliary > > aux_
Definition: RunPrincipal.h:106
unsigned int transitionIndex_() const override
Definition: RunPrincipal.cc:46
unsigned int ProductResolverIndex
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition: RunPrincipal.cc:32
unsigned int value() const
Definition: RunIndex.h:50
void fillRunPrincipal(ProcessHistoryRegistry const &processHistoryRegistry, DelayedReader *reader=0)
Definition: RunPrincipal.cc:20
ProcessHistory const & processHistory() const
Definition: Principal.h:141
ProcessHistoryID m_reducedHistoryID
Definition: RunPrincipal.h:107
RunPrincipal(std::shared_ptr< RunAuxiliary > aux, std::shared_ptr< ProductRegistry const > reg, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int iRunIndex, bool isForPrimaryProcess=true)
Definition: RunPrincipal.cc:8
void putOrMerge(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition: Principal.cc:858
ProcessHistoryID const & reducedProcessHistoryID(ProcessHistoryID const &fullID) const
DelayedReader * reader() const
Definition: Principal.h:184
RunIndex index() const
Definition: RunPrincipal.h:53
HLT enums.
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition: Principal.cc:498
void fillPrincipal(ProcessHistoryID const &hist, ProcessHistoryRegistry const &phr, DelayedReader *reader)
Definition: Principal.cc:346
def move(src, dest)
Definition: eostools.py:510