FWCore
Framework
src
LuminosityBlockPrincipal.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/LuminosityBlockPrincipal.h
"
2
#include "
FWCore/Framework/src/ProductPutterBase.h
"
3
#include "
DataFormats/Provenance/interface/ProductRegistry.h
"
4
5
namespace
edm
{
6
7
LuminosityBlockPrincipal::LuminosityBlockPrincipal
(std::shared_ptr<ProductRegistry const> reg,
8
ProcessConfiguration
const
& pc,
9
HistoryAppender
* historyAppender,
10
unsigned
int
index
,
11
bool
isForPrimaryProcess)
12
:
Base
(reg, reg->productLookup(
InLumi
), pc,
InLumi
, historyAppender, isForPrimaryProcess),
13
runPrincipal_(),
14
index_(
index
) {}
15
16
void
LuminosityBlockPrincipal::fillLuminosityBlockPrincipal
(
ProcessHistory
const
* processHistory,
17
DelayedReader
*
reader
) {
18
fillPrincipal
(
aux_
.
processHistoryID
(),
processHistory
,
reader
);
19
}
20
21
void
LuminosityBlockPrincipal::put
(
BranchDescription
const
&
bd
, std::unique_ptr<WrapperBase> edp)
const
{
22
put_
(
bd
,
std::move
(edp));
23
}
24
25
void
LuminosityBlockPrincipal::put
(
ProductResolverIndex
index
, std::unique_ptr<WrapperBase> edp)
const
{
26
auto
phb =
getProductResolverByIndex
(
index
);
27
dynamic_cast<ProductPutterBase const*>(phb)->putProduct(
std::move
(edp));
28
}
29
30
unsigned
int
LuminosityBlockPrincipal::transitionIndex_
()
const
{
return
index
().
value
(); }
31
32
}
// namespace edm
edm::ProductResolverIndex
unsigned int ProductResolverIndex
Definition:
ProductResolverIndex.h:8
edm::Principal::put_
void put_(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition:
Principal.cc:923
edm
HLT enums.
Definition:
AlignableModifier.h:19
deep_tau::DeepTauBase::BasicDiscriminator
BasicDiscriminator
Definition:
DeepTauBase.h:115
edm::Principal
Definition:
Principal.h:56
ProductRegistry.h
edm::Principal::processHistory
ProcessHistory const & processHistory() const
Definition:
Principal.h:140
edm::Principal::getProductResolverByIndex
ConstProductResolverPtr getProductResolverByIndex(ProductResolverIndex const &oid) const
Definition:
Principal.cc:562
edm::LuminosityBlockIndex::value
unsigned int value() const
Definition:
LuminosityBlockIndex.h:47
DQM.reader
reader
Definition:
DQM.py:105
edm::Principal::reader
DelayedReader * reader() const
Definition:
Principal.h:187
ProductPutterBase.h
edm::LuminosityBlockAuxiliary::processHistoryID
ProcessHistoryID const & processHistoryID() const
Definition:
LuminosityBlockAuxiliary.h:32
edm::Principal::fillPrincipal
void fillPrincipal(DelayedReader *reader)
Definition:
Principal.cc:402
edm::InLumi
Definition:
BranchType.h:11
edm::LuminosityBlockPrincipal::fillLuminosityBlockPrincipal
void fillLuminosityBlockPrincipal(ProcessHistory const *processHistory, DelayedReader *reader=nullptr)
Definition:
LuminosityBlockPrincipal.cc:16
edm::LuminosityBlockPrincipal::put
void put(BranchDescription const &bd, std::unique_ptr< WrapperBase > edp) const
Definition:
LuminosityBlockPrincipal.cc:21
edm::HistoryAppender
Definition:
HistoryAppender.h:13
LuminosityBlockPrincipal.h
edm::LuminosityBlockPrincipal::LuminosityBlockPrincipal
LuminosityBlockPrincipal(std::shared_ptr< ProductRegistry const > reg, ProcessConfiguration const &pc, HistoryAppender *historyAppender, unsigned int index, bool isForPrimaryProcess=true)
Definition:
LuminosityBlockPrincipal.cc:7
eostools.move
def move(src, dest)
Definition:
eostools.py:511
edm::DelayedReader
Definition:
DelayedReader.h:29
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:46
edm::BranchDescription
Definition:
BranchDescription.h:32
edm::LuminosityBlockPrincipal::aux_
LuminosityBlockAuxiliary aux_
Definition:
LuminosityBlockPrincipal.h:79
edm::ProcessHistory
Definition:
ProcessHistory.h:13
edm::LuminosityBlockPrincipal::index
LuminosityBlockIndex index() const
Definition:
LuminosityBlockPrincipal.h:51
edm::LuminosityBlockPrincipal::transitionIndex_
unsigned int transitionIndex_() const override
Definition:
LuminosityBlockPrincipal.cc:30
edm::ProcessConfiguration
Definition:
ProcessConfiguration.h:14
Generated for CMSSW Reference Manual by
1.8.16