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
17
// this class header
18
#include "
L1TriggerConfig/L1GtConfigProducers/interface/L1GtTriggerMaskTechTrigTrivialProducer.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/L1GtTriggerMaskTechTrigRcd.h
"
34
35
// forward declarations
36
37
// constructor(s)
38
L1GtTriggerMaskTechTrigTrivialProducer::L1GtTriggerMaskTechTrigTrivialProducer
(
39
const
edm::ParameterSet
& parSet)
40
{
41
// tell the framework what data is being produced
42
setWhatProduced
(
this
,
43
&
L1GtTriggerMaskTechTrigTrivialProducer::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
L1GtTriggerMaskTechTrigTrivialProducer::~L1GtTriggerMaskTechTrigTrivialProducer
()
54
{
55
56
// empty
57
58
}
59
60
// member functions
61
62
// method called to produce the data
63
boost::shared_ptr<L1GtTriggerMask>
L1GtTriggerMaskTechTrigTrivialProducer::produceTriggerMask
(
64
const
L1GtTriggerMaskTechTrigRcd
& 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
L1GtTriggerMaskTechTrigRcd.h
L1GtTriggerMaskTechTrigTrivialProducer::produceTriggerMask
boost::shared_ptr< L1GtTriggerMask > produceTriggerMask(const L1GtTriggerMaskTechTrigRcd &)
public methods
Definition:
L1GtTriggerMaskTechTrigTrivialProducer.cc:63
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
L1GtTriggerMaskTechTrigTrivialProducer::~L1GtTriggerMaskTechTrigTrivialProducer
~L1GtTriggerMaskTechTrigTrivialProducer()
destructor
Definition:
L1GtTriggerMaskTechTrigTrivialProducer.cc:53
ESHandle.h
L1GtTriggerMask
Definition:
L1GtTriggerMask.h:31
ESProducer.h
L1GtTriggerMaskTechTrigTrivialProducer.h
L1GtTriggerMaskTechTrigTrivialProducer::L1GtTriggerMaskTechTrigTrivialProducer
L1GtTriggerMaskTechTrigTrivialProducer(const edm::ParameterSet &)
constructor
Definition:
L1GtTriggerMaskTechTrigTrivialProducer.cc:38
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:59
Generated for CMSSW Reference Manual by
1.8.5