Main Page
Namespaces
Classes
Package Documentation
FWCore
Framework
src
TriggerResultInserter.cc
Go to the documentation of this file.
1
2
#include "
FWCore/Framework/src/TriggerResultInserter.h
"
3
#include "
DataFormats/Common/interface/TriggerResults.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
7
#include <memory>
8
9
namespace
edm
{
10
TriggerResultInserter::TriggerResultInserter
(
const
ParameterSet
&
pset
,
unsigned
int
iNStreams)
11
: resultsPerStream_(iNStreams), pset_id_(pset.
id
()), token_{produces<TriggerResults>()} {}
12
13
void
TriggerResultInserter::setTrigResultForStream
(
unsigned
int
iStreamIndex,
const
TrigResPtr
& trptr) {
14
resultsPerStream_[iStreamIndex] = trptr;
15
}
16
17
void
TriggerResultInserter::produce
(
StreamID
id
,
edm::Event
&
e
,
edm::EventSetup
const
&)
const
{
18
e.
emplace
(token_, *resultsPerStream_[
id
.
value
()], pset_id_);
19
}
20
}
// namespace edm
edm::TriggerResultInserter::TrigResPtr
std::shared_ptr< HLTGlobalStatus > TrigResPtr
Definition:
TriggerResultInserter.h:32
ParameterSet
Definition:
Functions.h:16
edm::StreamID
Definition:
StreamID.h:30
Event.h
TriggerResults.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
ParameterSet.h
edm::TriggerResultInserter::produce
void produce(StreamID id, edm::Event &e, edm::EventSetup const &c) const final
Definition:
TriggerResultInserter.cc:17
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:29
TriggerResultInserter.h
edm::EventSetup
Definition:
EventSetup.h:57
edm::TriggerResultInserter::TriggerResultInserter
TriggerResultInserter(edm::ParameterSet const &ps)
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
edm::Event::emplace
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
Definition:
Event.h:413
edm::TriggerResultInserter::setTrigResultForStream
void setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr &trptr)
Definition:
TriggerResultInserter.cc:13
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::Event
Definition:
Event.h:71
Generated for CMSSW Reference Manual by
1.8.11