FWCore
Framework
src
ProcessBlockPrincipal.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/ProcessBlockPrincipal.h
"
2
3
#include "
DataFormats/Provenance/interface/ProductRegistry.h
"
4
#include "
DataFormats/Provenance/interface/BranchType.h
"
5
6
#include <utility>
7
8
namespace
edm
{
9
10
ProcessBlockPrincipal::ProcessBlockPrincipal
(std::shared_ptr<ProductRegistry const> reg,
11
ProcessConfiguration
const
& pc,
12
bool
isForPrimaryProcess)
13
:
Principal
(reg, reg->productLookup(
InProcess
), pc,
InProcess
, nullptr, isForPrimaryProcess) {}
14
15
void
ProcessBlockPrincipal::fillProcessBlockPrincipal
(
std::string
const
& processNameOfBlock,
DelayedReader
*
reader
) {
16
processName_
= processNameOfBlock;
17
fillPrincipal
(processNameOfBlock,
reader
);
18
}
19
20
void
ProcessBlockPrincipal::put
(
ProductResolverIndex
index
, std::unique_ptr<WrapperBase> edp)
const
{
21
auto
phb =
getProductResolverByIndex
(
index
);
22
phb->putProduct(
std::move
(edp));
23
}
24
25
unsigned
int
ProcessBlockPrincipal::transitionIndex_
()
const
{
26
// Concurrent ProcessBlocks does not make any sense so just always
27
// return 0 here.
28
return
0;
29
}
30
31
}
// namespace edm
edm::ProductResolverIndex
unsigned int ProductResolverIndex
Definition:
ProductResolverIndex.h:8
edm::ProcessBlockPrincipal::index
unsigned int index() const
Definition:
ProcessBlockPrincipal.h:35
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::Principal
Definition:
Principal.h:57
ProcessBlockPrincipal.h
ProductRegistry.h
edm::Principal::getProductResolverByIndex
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition:
Principal.cc:553
edm::InProcess
Definition:
BranchType.h:11
edm::ProcessBlockPrincipal::put
void put(ProductResolverIndex index, std::unique_ptr< WrapperBase > edp) const
Definition:
ProcessBlockPrincipal.cc:20
DQM.reader
reader
Definition:
DQM.py:105
edm::Principal::reader
DelayedReader * reader() const
Definition:
Principal.h:187
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ProcessBlockPrincipal::processName_
std::string processName_
Definition:
ProcessBlockPrincipal.h:40
edm::Principal::fillPrincipal
void fillPrincipal(DelayedReader *reader)
Definition:
Principal.cc:393
edm::ProcessBlockPrincipal::transitionIndex_
unsigned int transitionIndex_() const final
Definition:
ProcessBlockPrincipal.cc:25
BranchType.h
edm::ProcessBlockPrincipal::fillProcessBlockPrincipal
void fillProcessBlockPrincipal(std::string const &processName, DelayedReader *reader=nullptr)
Definition:
ProcessBlockPrincipal.cc:15
eostools.move
def move(src, dest)
Definition:
eostools.py:511
edm::DelayedReader
Definition:
DelayedReader.h:29
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
edm::ProcessBlockPrincipal::ProcessBlockPrincipal
ProcessBlockPrincipal(std::shared_ptr< ProductRegistry const >, ProcessConfiguration const &, bool isForPrimaryProcess=true)
Definition:
ProcessBlockPrincipal.cc:10
edm::ProcessConfiguration
Definition:
ProcessConfiguration.h:14
Generated for CMSSW Reference Manual by
1.8.16