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  unsigned int
40  return index().value();
41  }
42 
43 }
edm::propagate_const< std::shared_ptr< RunAuxiliary > > aux_
Definition: RunPrincipal.h:103
virtual unsigned int transitionIndex_() const override
Definition: RunPrincipal.cc:39
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:104
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:850
ProcessHistoryID const & reducedProcessHistoryID(ProcessHistoryID const &fullID) const
DelayedReader * reader() const
Definition: Principal.h:184
RunIndex index() const
Definition: RunPrincipal.h:53
HLT enums.
void fillPrincipal(ProcessHistoryID const &hist, ProcessHistoryRegistry const &phr, DelayedReader *reader)
Definition: Principal.cc:344
def move(src, dest)
Definition: eostools.py:510