src
DataFormats
PatCandidates
src
PackedTriggerPrescales.cc
Go to the documentation of this file.
1
#include "
DataFormats/PatCandidates/interface/PackedTriggerPrescales.h
"
2
#include "
DataFormats/Common/interface/RefProd.h
"
3
4
pat::PackedTriggerPrescales::PackedTriggerPrescales
(
const
edm::Handle<edm::TriggerResults>
&
handle
)
5
: prescaleValues_(),
triggerResults_
(
edm
::
RefProd
<
edm
::
TriggerResults
>(
handle
).refCore()), triggerNames_(nullptr) {
6
prescaleValues_
.resize(
handle
->size(), 0);
7
}
8
9
void
pat::PackedTriggerPrescales::addPrescaledTrigger
(
int
index
,
double
prescale
) {
10
if
(
unsigned
(
index
) >=
triggerResults
().
size
())
11
throw
cms::Exception
(
"InvalidReference"
,
"Index out of bounds"
);
12
prescaleValues_[
index
] =
prescale
;
13
}
findQualityFiles.size
size
Write out results.
Definition:
findQualityFiles.py:443
PackedTriggerPrescales.h
Exception
Definition:
hltDiff.cc:245
setupCalibrationTree_cff.prescale
prescale
Definition:
setupCalibrationTree_cff.py:15
edm::Handle< edm::TriggerResults >
pat::PackedTriggerPrescales::PackedTriggerPrescales
PackedTriggerPrescales()
Definition:
PackedTriggerPrescales.h:15
RefProd.h
AlignmentPI::index
index
Definition:
AlignmentPayloadInspectorHelper.h:93
prescale
Definition:
PrescaleEventFilter.cc:32
pat::PackedTriggerPrescales::prescaleValues_
std::vector< double > prescaleValues_
Definition:
PackedTriggerPrescales.h:42
HLTObjectsMonitor_cfi.TriggerResults
TriggerResults
Definition:
HLTObjectsMonitor_cfi.py:9
patZpeak.handle
handle
Definition:
patZpeak.py:25
triggerResults
static std::string const triggerResults
Definition:
EdmProvDump.cc:47
reco::JetExtendedAssociation::RefProd
edm::RefProd< Container > RefProd
Definition:
JetExtendedAssociation.h:33
edm
HLT enums.
Definition:
AlignableModifier.h:19
pat::PackedTriggerPrescales::addPrescaledTrigger
void addPrescaledTrigger(int index, double prescale)
Definition:
PackedTriggerPrescales.cc:9
commonCuts_cff.triggerResults_
triggerResults_
Definition:
commonCuts_cff.py:17
Generated for CMSSW Reference Manual by
1.8.14