Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
L1TriggerConfig
L1GtConfigProducers
src
L1GtTriggerMaskTechTrigTrivialProducer.cc
Go to the documentation of this file.
1
15
// this class header
16
#include "
L1TriggerConfig/L1GtConfigProducers/interface/L1GtTriggerMaskTechTrigTrivialProducer.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/L1GtTriggerMaskTechTrigRcd.h
"
32
33
// forward declarations
34
35
// constructor(s)
36
L1GtTriggerMaskTechTrigTrivialProducer::L1GtTriggerMaskTechTrigTrivialProducer
(
37
const
edm::ParameterSet
& parSet)
38
{
39
// tell the framework what data is being produced
40
setWhatProduced
(
this
,
41
&
L1GtTriggerMaskTechTrigTrivialProducer::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
L1GtTriggerMaskTechTrigTrivialProducer::~L1GtTriggerMaskTechTrigTrivialProducer
()
52
{
53
54
// empty
55
56
}
57
58
// member functions
59
60
// method called to produce the data
61
boost::shared_ptr<L1GtTriggerMask>
L1GtTriggerMaskTechTrigTrivialProducer::produceTriggerMask
(
62
const
L1GtTriggerMaskTechTrigRcd
& 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
L1GtTriggerMaskTechTrigRcd.h
L1GtTriggerMaskTechTrigTrivialProducer::produceTriggerMask
boost::shared_ptr< L1GtTriggerMask > produceTriggerMask(const L1GtTriggerMaskTechTrigRcd &)
public methods
Definition:
L1GtTriggerMaskTechTrigTrivialProducer.cc:61
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
L1GtTriggerMaskTechTrigTrivialProducer::~L1GtTriggerMaskTechTrigTrivialProducer
~L1GtTriggerMaskTechTrigTrivialProducer()
destructor
Definition:
L1GtTriggerMaskTechTrigTrivialProducer.cc:51
ESHandle.h
L1GtTriggerMask
Definition:
L1GtTriggerMask.h:31
ESProducer.h
L1GtTriggerMaskTechTrigTrivialProducer.h
L1GtTriggerMaskTechTrigTrivialProducer::L1GtTriggerMaskTechTrigTrivialProducer
L1GtTriggerMaskTechTrigTrivialProducer(const edm::ParameterSet &)
constructor
Definition:
L1GtTriggerMaskTechTrigTrivialProducer.cc:36
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
L1GtTriggerMaskTechTrigRcd
Definition:
L1GtTriggerMaskTechTrigRcd.h:39
L1GtTriggerMaskTechTrigTrivialProducer::m_triggerMask
std::vector< unsigned int > m_triggerMask
trigger mask
Definition:
L1GtTriggerMaskTechTrigTrivialProducer.h:57
Generated for CMSSW Reference Manual by
1.8.5