Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
L1TriggerConfig
L1GtConfigProducers
src
L1GtTriggerMaskAlgoTrigTrivialProducer.cc
Go to the documentation of this file.
1
17
// this class header
18
#include "
L1TriggerConfig/L1GtConfigProducers/interface/L1GtTriggerMaskAlgoTrigTrivialProducer.h
"
19
20
// system include files
21
#include <memory>
22
#include "boost/shared_ptr.hpp"
23
24
#include <vector>
25
26
// user include files
27
// base class
28
#include "
FWCore/Framework/interface/ESProducer.h
"
29
30
#include "
FWCore/Framework/interface/ModuleFactory.h
"
31
#include "
FWCore/Framework/interface/ESHandle.h
"
32
33
#include "
CondFormats/DataRecord/interface/L1GtTriggerMaskAlgoTrigRcd.h
"
34
35
// forward declarations
36
37
// constructor(s)
38
L1GtTriggerMaskAlgoTrigTrivialProducer::L1GtTriggerMaskAlgoTrigTrivialProducer
(
39
const
edm::ParameterSet
& parSet)
40
{
41
// tell the framework what data is being produced
42
setWhatProduced
(
this
,
43
&
L1GtTriggerMaskAlgoTrigTrivialProducer::produceTriggerMask
);
44
45
// now do what ever other initialization is needed
46
47
m_triggerMask
=
48
parSet.
getParameter
<std::vector<unsigned int> >(
"TriggerMask"
);
49
50
}
51
52
// destructor
53
L1GtTriggerMaskAlgoTrigTrivialProducer::~L1GtTriggerMaskAlgoTrigTrivialProducer
()
54
{
55
56
// empty
57
58
}
59
60
// member functions
61
62
// method called to produce the data
63
boost::shared_ptr<L1GtTriggerMask>
L1GtTriggerMaskAlgoTrigTrivialProducer::produceTriggerMask
(
64
const
L1GtTriggerMaskAlgoTrigRcd
& iRecord)
65
{
66
boost::shared_ptr<L1GtTriggerMask> pL1GtTriggerMask = boost::shared_ptr<L1GtTriggerMask>(
67
new
L1GtTriggerMask
(
m_triggerMask
) );
68
69
return
pL1GtTriggerMask ;
70
}
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
L1GtTriggerMaskAlgoTrigTrivialProducer::produceTriggerMask
boost::shared_ptr< L1GtTriggerMask > produceTriggerMask(const L1GtTriggerMaskAlgoTrigRcd &)
public methods
Definition:
L1GtTriggerMaskAlgoTrigTrivialProducer.cc:63
L1GtTriggerMaskAlgoTrigRcd.h
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
L1GtTriggerMaskAlgoTrigTrivialProducer::L1GtTriggerMaskAlgoTrigTrivialProducer
L1GtTriggerMaskAlgoTrigTrivialProducer(const edm::ParameterSet &)
constructor
Definition:
L1GtTriggerMaskAlgoTrigTrivialProducer.cc:38
L1GtTriggerMaskAlgoTrigTrivialProducer::m_triggerMask
std::vector< unsigned int > m_triggerMask
trigger mask
Definition:
L1GtTriggerMaskAlgoTrigTrivialProducer.h:59
ESHandle.h
L1GtTriggerMask
Definition:
L1GtTriggerMask.h:31
L1GtTriggerMaskAlgoTrigTrivialProducer.h
ESProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
L1GtTriggerMaskAlgoTrigTrivialProducer::~L1GtTriggerMaskAlgoTrigTrivialProducer
~L1GtTriggerMaskAlgoTrigTrivialProducer()
destructor
Definition:
L1GtTriggerMaskAlgoTrigTrivialProducer.cc:53
L1GtTriggerMaskAlgoTrigRcd
Definition:
L1GtTriggerMaskAlgoTrigRcd.h:39
Generated for CMSSW Reference Manual by
1.8.5