Main Page
Namespaces
Classes
Package Documentation
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::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
MessageLogger.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
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition:
beamerCreator.py:44
CSCChannelMapperESProducer::CSCChannelMapperESProducer
CSCChannelMapperESProducer(const edm::ParameterSet &)
Definition:
CSCChannelMapperESProducer.cc:8
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CSCChannelMapperESProducer::~CSCChannelMapperESProducer
~CSCChannelMapperESProducer() override
Definition:
CSCChannelMapperESProducer.cc:16
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
CSCChannelMapperFactory.h
CSCChannelMapperESProducer
Definition:
CSCChannelMapperESProducer.h:11
CSCChannelMapperRecord
Definition:
CSCChannelMapperRecord.h:6
CSCChannelMapperESProducer::algoName
std::string algoName
Definition:
CSCChannelMapperESProducer.h:21
LogTrace
#define LogTrace(id)
Definition:
MessageLogger.h:671
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
CSCChannelMapperESProducer.h
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
reco::get
T get(const Candidate &c)
Definition:
component.h:55
Generated for CMSSW Reference Manual by
1.8.11