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
);
CSCIndexerFactory.h
CSCIndexerESProducer::algoName
std::string algoName
Definition:
CSCIndexerESProducer.h:21
MessageLogger.h
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
CSCIndexerESProducer::BSP_TYPE
std::unique_ptr< CSCIndexerBase > BSP_TYPE
Definition:
CSCIndexerESProducer.h:13
beamerCreator.create
def create(alignables, pedeDump, additionalData, outputFile, config)
Definition:
beamerCreator.py:44
CSCIndexerESProducer::~CSCIndexerESProducer
~CSCIndexerESProducer() override
Definition:
CSCIndexerESProducer.cc:16
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
CSCIndexerESProducer::CSCIndexerESProducer
CSCIndexerESProducer(const edm::ParameterSet &)
Definition:
CSCIndexerESProducer.cc:8
get
#define get
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
CSCIndexerESProducer.h
CSCIndexerESProducer::produce
BSP_TYPE produce(const CSCIndexerRecord &)
Definition:
CSCIndexerESProducer.cc:18
LogTrace
#define LogTrace(id)
Definition:
MessageLogger.h:224
CSCIndexerRecord
Definition:
CSCIndexerRecord.h:6
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
CSCIndexerESProducer
Definition:
CSCIndexerESProducer.h:11
Generated for CMSSW Reference Manual by
1.8.16