RecoLocalMuon
RPCRecHit
src
CSCObjectMapESProducer.cc
Go to the documentation of this file.
1
// system include files
2
#include <memory>
3
4
// user include files
5
#include "
FWCore/Framework/interface/ESProducer.h
"
6
#include "
FWCore/Framework/interface/ESHandle.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
9
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
10
#include "
Geometry/Records/interface/MuonGeometryRecord.h
"
11
#include "
RecoLocalMuon/RPCRecHit/src/CSCObjectMap.h
"
12
13
class
CSCObjectMapESProducer
:
public
edm::ESProducer
{
14
public
:
15
CSCObjectMapESProducer
(
const
edm::ParameterSet
&) :
rpcGeomToken_
(
setWhatProduced
(this).consumes<
RPCGeometry
>()) {}
16
17
std::unique_ptr<CSCObjectMap>
produce
(
MuonGeometryRecord
const
&
record
) {
18
return
std::make_unique<CSCObjectMap>(
record
.get(
rpcGeomToken_
));
19
}
20
21
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
22
edm::ParameterSetDescription
desc
;
23
descriptions.
add
(
"cscObjectMapESProducer"
,
desc
);
24
}
25
26
private
:
27
const
edm::ESGetToken<RPCGeometry, MuonGeometryRecord>
rpcGeomToken_
;
28
};
29
30
//define this as a plug-in
31
#include "
FWCore/Framework/interface/ModuleFactory.h
"
32
DEFINE_FWK_EVENTSETUP_MODULE
(
CSCObjectMapESProducer
);
ConfigurationDescriptions.h
CSCObjectMap.h
ESHandle.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ESProducer.h
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
ParameterSetDescription.h
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHarvesting_cff.record
record
Definition:
AlCaHarvesting_cff.py:42
edm::ESGetToken< RPCGeometry, MuonGeometryRecord >
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
CSCObjectMapESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
CSCObjectMapESProducer.cc:21
CSCObjectMapESProducer
Definition:
CSCObjectMapESProducer.cc:13
edm::ESProducer
Definition:
ESProducer.h:104
RPCGeometry
Definition:
RPCGeometry.h:20
ParameterSet.h
MuonGeometryRecord.h
CSCObjectMapESProducer::CSCObjectMapESProducer
CSCObjectMapESProducer(const edm::ParameterSet &)
Definition:
CSCObjectMapESProducer.cc:15
CSCObjectMapESProducer::rpcGeomToken_
const edm::ESGetToken< RPCGeometry, MuonGeometryRecord > rpcGeomToken_
Definition:
CSCObjectMapESProducer.cc:27
MuonGeometryRecord
Definition:
MuonGeometryRecord.h:34
CSCObjectMapESProducer::produce
std::unique_ptr< CSCObjectMap > produce(MuonGeometryRecord const &record)
Definition:
CSCObjectMapESProducer.cc:17
Generated for CMSSW Reference Manual by
1.8.16