FWCore
Framework
src
TriggerResultInserter.h
Go to the documentation of this file.
1
#ifndef FWCore_Framework_TriggerResultsInserter_h
2
#define FWCore_Framework_TriggerResultsInserter_h
3
4
/*
5
Author: Jim Kowalkowski 15-1-06
6
7
This is an unusual module in that it is always present in the
8
schedule and it is not configurable.
9
The ownership of the bitmask is shared with the scheduler
10
Its purpose is to create a TriggerResults instance and insert it into
11
the event.
12
13
*/
14
15
#include <vector>
16
17
#include "
FWCore/Framework/interface/global/EDProducer.h
"
18
#include "
DataFormats/Provenance/interface/ParameterSetID.h
"
19
#include "
FWCore/Utilities/interface/propagate_const.h
"
20
21
#include <memory>
22
23
namespace
edm
{
24
class
ParameterSet
;
25
class
Event
;
26
class
EventSetup
;
27
class
HLTGlobalStatus;
28
class
TriggerResults
;
29
30
class
TriggerResultInserter
:
public
edm::global::EDProducer
<> {
31
public
:
32
typedef
std::shared_ptr<HLTGlobalStatus>
TrigResPtr
;
33
34
// standard constructor not supported for this module
35
explicit
TriggerResultInserter
(
edm::ParameterSet
const
& ps);
36
37
// the pset needed here is the one that defines the trigger path names
38
TriggerResultInserter
(
edm::ParameterSet
const
& ps,
unsigned
int
iNStreams);
39
40
void
setTrigResultForStream
(
unsigned
int
iStreamIndex,
const
TrigResPtr
& trptr);
41
void
produce
(
StreamID
id
,
edm::Event
&
e
,
edm::EventSetup
const
&
c
)
const
final
;
42
43
private
:
44
std::vector<edm::propagate_const<TrigResPtr>>
resultsPerStream_
;
45
46
ParameterSetID
pset_id_
;
47
EDPutTokenT<TriggerResults>
token_
;
48
};
49
}
// namespace edm
50
#endif
edm::StreamID
Definition:
StreamID.h:30
edm::TriggerResultInserter::resultsPerStream_
std::vector< edm::propagate_const< TrigResPtr > > resultsPerStream_
Definition:
TriggerResultInserter.h:44
propagate_const.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::EDPutTokenT
Definition:
EDPutToken.h:33
edm::TriggerResultInserter::produce
void produce(StreamID id, edm::Event &e, edm::EventSetup const &c) const final
Definition:
TriggerResultInserter.cc:17
Event
edm::Hash< ParameterSetType >
edm::global::EDProducer
Definition:
EDProducer.h:32
edm::ParameterSet
Definition:
ParameterSet.h:47
ParameterSet
Definition:
Functions.h:16
edm::TriggerResultInserter::token_
EDPutTokenT< TriggerResults > token_
Definition:
TriggerResultInserter.h:47
edm::EventSetup
Definition:
EventSetup.h:58
edm::TriggerResultInserter::pset_id_
ParameterSetID pset_id_
Definition:
TriggerResultInserter.h:46
edm::TriggerResultInserter
Definition:
TriggerResultInserter.h:30
edm::TriggerResultInserter::TriggerResultInserter
TriggerResultInserter(edm::ParameterSet const &ps)
edm::TriggerResultInserter::TrigResPtr
std::shared_ptr< HLTGlobalStatus > TrigResPtr
Definition:
TriggerResultInserter.h:32
ParameterSetID.h
edm::TriggerResultInserter::setTrigResultForStream
void setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr &trptr)
Definition:
TriggerResultInserter.cc:13
EventSetup
EDProducer.h
c
auto & c
Definition:
CAHitNtupletGeneratorKernelsImpl.h:56
HLTObjectsMonitor_cfi.TriggerResults
TriggerResults
Definition:
HLTObjectsMonitor_cfi.py:9
edm::Event
Definition:
Event.h:73
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16