CMS 3D CMS Logo

ProcessBlockPrincipal.cc
Go to the documentation of this file.
3 
6 
7 #include <utility>
8 
9 namespace edm {
10 
11  ProcessBlockPrincipal::ProcessBlockPrincipal(std::shared_ptr<ProductRegistry const> reg,
12  ProcessConfiguration const& pc,
13  bool isForPrimaryProcess)
14  : Principal(reg, reg->productLookup(InProcess), pc, InProcess, nullptr, isForPrimaryProcess) {}
15 
17  processName_ = processNameOfBlock;
18  fillPrincipal(processNameOfBlock, reader);
19  }
20 
21  void ProcessBlockPrincipal::put(ProductResolverIndex index, std::unique_ptr<WrapperBase> edp) const {
22  auto phb = getProductResolverByIndex(index);
23  dynamic_cast<ProductPutterBase const*>(phb)->putProduct(std::move(edp));
24  }
25 
27  // Concurrent ProcessBlocks does not make any sense so just always
28  // return 0 here.
29  return 0;
30  }
31 
32 } // namespace edm
void fillPrincipal(DelayedReader *reader)
Definition: Principal.cc:403
unsigned int transitionIndex_() const final
unsigned int ProductResolverIndex
reader
Definition: DQM.py:105
void fillProcessBlockPrincipal(std::string const &processName, DelayedReader *reader=nullptr)
ProcessBlockPrincipal(std::shared_ptr< ProductRegistry const >, ProcessConfiguration const &, bool isForPrimaryProcess=true)
void put(ProductResolverIndex index, std::unique_ptr< WrapperBase > edp) const
HLT enums.
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition: Principal.cc:563
def move(src, dest)
Definition: eostools.py:511
DelayedReader * reader() const
Definition: Principal.h:181