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