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