CMS 3D CMS Logo

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 
20 
21 #include <memory>
22 
23 namespace edm {
24  class ParameterSet;
25  class Event;
26  class EventSetup;
27  class HLTGlobalStatus;
28  class TriggerResults;
29 
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 
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:57
edm::TriggerResultInserter::pset_id_
ParameterSetID pset_id_
Definition: TriggerResultInserter.h:46
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
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
HLTObjectsMonitor_cfi.TriggerResults
TriggerResults
Definition: HLTObjectsMonitor_cfi.py:9
edm::Event
Definition: Event.h:73
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37