src
CalibMuon
CSCCalibration
plugins
CSCChannelMapperESProducer.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/ModuleFactory.h
"
2
3
#include "
CalibMuon/CSCCalibration/interface/CSCChannelMapperESProducer.h
"
4
#include "
CalibMuon/CSCCalibration/interface/CSCChannelMapperFactory.h
"
5
6
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
7
8
CSCChannelMapperESProducer::CSCChannelMapperESProducer
(
const
edm::ParameterSet
&
pset
) {
9
algoName
=
pset
.getParameter<
std::string
>(
"AlgoName"
);
10
11
LogTrace
(
"CSCChannelMapperESProducer"
) <<
" will produce: "
<<
algoName
;
12
13
setWhatProduced
(
this
);
14
}
15
16
CSCChannelMapperESProducer::~CSCChannelMapperESProducer
() {}
17
18
CSCChannelMapperESProducer::BSP_TYPE
CSCChannelMapperESProducer::produce
(
const
CSCChannelMapperRecord
&) {
19
LogTrace
(
"CSCChannelMapperESProducer"
) <<
" producing: "
<<
algoName
;
20
21
return
CSCChannelMapperESProducer::BSP_TYPE
(
CSCChannelMapperFactory::get
()->
create
(
algoName
));
22
}
23
24
// define this as a plug-in
25
DEFINE_FWK_EVENTSETUP_MODULE
(
CSCChannelMapperESProducer
);
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:166
ModuleFactory.h
CSCChannelMapperESProducer::BSP_TYPE
std::unique_ptr< CSCChannelMapperBase > BSP_TYPE
Definition:
CSCChannelMapperESProducer.h:13
CSCChannelMapperESProducer::produce
BSP_TYPE produce(const CSCChannelMapperRecord &)
Definition:
CSCChannelMapperESProducer.cc:18
MessageLogger.h
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition:
beamerCreator.py:44
CSCChannelMapperESProducer::CSCChannelMapperESProducer
CSCChannelMapperESProducer(const edm::ParameterSet &)
Definition:
CSCChannelMapperESProducer.cc:8
CSCChannelMapperESProducer::~CSCChannelMapperESProducer
~CSCChannelMapperESProducer() override
Definition:
CSCChannelMapperESProducer.cc:16
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
CSCChannelMapperFactory.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
LogTrace
#define LogTrace(id)
Definition:
MessageLogger.h:242
CSCChannelMapperESProducer
Definition:
CSCChannelMapperESProducer.h:11
CSCChannelMapperRecord
Definition:
CSCChannelMapperRecord.h:6
CSCChannelMapperESProducer::algoName
std::string algoName
Definition:
CSCChannelMapperESProducer.h:21
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:61
CSCChannelMapperESProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:48
get
#define get
Generated for CMSSW Reference Manual by
1.8.14