L1TriggerConfig
L1GtConfigProducers
src
L1GtTriggerMaskVetoAlgoTrigTrivialProducer.cc
Go to the documentation of this file.
1
15
// this class header
16
#include "
L1TriggerConfig/L1GtConfigProducers/interface/L1GtTriggerMaskVetoAlgoTrigTrivialProducer.h
"
17
18
// system include files
19
#include <memory>
20
21
#include <vector>
22
23
// user include files
24
// base class
25
#include "
FWCore/Framework/interface/ESProducer.h
"
26
27
#include "
FWCore/Framework/interface/ModuleFactory.h
"
28
#include "
FWCore/Framework/interface/ESHandle.h
"
29
30
#include "
CondFormats/DataRecord/interface/L1GtTriggerMaskVetoAlgoTrigRcd.h
"
31
32
// forward declarations
33
34
// constructor(s)
35
L1GtTriggerMaskVetoAlgoTrigTrivialProducer::L1GtTriggerMaskVetoAlgoTrigTrivialProducer
(
const
edm::ParameterSet
& parSet) {
36
// tell the framework what data is being produced
37
setWhatProduced
(
this
, &
L1GtTriggerMaskVetoAlgoTrigTrivialProducer::produceTriggerMask
);
38
39
// now do what ever other initialization is needed
40
41
m_triggerMask
= parSet.
getParameter
<std::vector<unsigned int> >(
"TriggerMask"
);
42
}
43
44
// destructor
45
L1GtTriggerMaskVetoAlgoTrigTrivialProducer::~L1GtTriggerMaskVetoAlgoTrigTrivialProducer
() {
46
// empty
47
}
48
49
// member functions
50
51
// method called to produce the data
52
std::unique_ptr<L1GtTriggerMask>
L1GtTriggerMaskVetoAlgoTrigTrivialProducer::produceTriggerMask
(
53
const
L1GtTriggerMaskVetoAlgoTrigRcd
& iRecord) {
54
return
std::make_unique<L1GtTriggerMask>(
m_triggerMask
);
55
}
L1GtTriggerMaskVetoAlgoTrigTrivialProducer::L1GtTriggerMaskVetoAlgoTrigTrivialProducer
L1GtTriggerMaskVetoAlgoTrigTrivialProducer(const edm::ParameterSet &)
constructor
Definition:
L1GtTriggerMaskVetoAlgoTrigTrivialProducer.cc:35
ESHandle.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
L1GtTriggerMaskVetoAlgoTrigTrivialProducer::~L1GtTriggerMaskVetoAlgoTrigTrivialProducer
~L1GtTriggerMaskVetoAlgoTrigTrivialProducer() override
destructor
Definition:
L1GtTriggerMaskVetoAlgoTrigTrivialProducer.cc:45
ESProducer.h
L1GtTriggerMaskVetoAlgoTrigTrivialProducer::produceTriggerMask
std::unique_ptr< L1GtTriggerMask > produceTriggerMask(const L1GtTriggerMaskVetoAlgoTrigRcd &)
public methods
Definition:
L1GtTriggerMaskVetoAlgoTrigTrivialProducer.cc:52
L1GtTriggerMaskVetoAlgoTrigTrivialProducer.h
L1GtTriggerMaskVetoAlgoTrigTrivialProducer::m_triggerMask
std::vector< unsigned int > m_triggerMask
trigger mask
Definition:
L1GtTriggerMaskVetoAlgoTrigTrivialProducer.h:50
edm::ParameterSet
Definition:
ParameterSet.h:47
L1GtTriggerMaskVetoAlgoTrigRcd
Definition:
L1GtTriggerMaskVetoAlgoTrigRcd.h:39
ModuleFactory.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
L1GtTriggerMaskVetoAlgoTrigRcd.h
Generated for CMSSW Reference Manual by
1.8.16