Geometry
HcalTowerAlgo
plugins
HcalTrigTowerGeometryESProducer.cc
Go to the documentation of this file.
1
#include "
HcalTrigTowerGeometryESProducer.h
"
2
#include "
FWCore/Framework/interface/ModuleFactory.h
"
3
#include "
Geometry/Records/interface/HcalRecNumberingRecord.h
"
4
#include <memory>
5
6
HcalTrigTowerGeometryESProducer::HcalTrigTowerGeometryESProducer
(
const
edm::ParameterSet
&
config
)
7
: topologyToken_{
setWhatProduced
(
this
).consumesFrom<
HcalTopology
,
HcalRecNumberingRecord
>(
edm::ESInputTag
{})} {}
8
9
HcalTrigTowerGeometryESProducer::~HcalTrigTowerGeometryESProducer
(
void
) {}
10
11
std::unique_ptr<HcalTrigTowerGeometry>
HcalTrigTowerGeometryESProducer::produce
(
const
CaloGeometryRecord
& iRecord) {
12
const
auto
& hcalTopology = iRecord.
get
(
topologyToken_
);
13
return
std::make_unique<HcalTrigTowerGeometry>(&hcalTopology);
14
}
15
16
void
HcalTrigTowerGeometryESProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
17
edm::ParameterSetDescription
desc
;
18
descriptions.
add
(
"HcalTrigTowerGeometryESProducer"
,
desc
);
19
}
20
21
DEFINE_FWK_EVENTSETUP_MODULE
(
HcalTrigTowerGeometryESProducer
);
HcalTrigTowerGeometryESProducer::topologyToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topologyToken_
Definition:
HcalTrigTowerGeometryESProducer.h:25
HcalTrigTowerGeometryESProducer
Definition:
HcalTrigTowerGeometryESProducer.h:15
edm::ESInputTag
Definition:
ESInputTag.h:87
HcalTrigTowerGeometryESProducer::HcalTrigTowerGeometryESProducer
HcalTrigTowerGeometryESProducer(const edm::ParameterSet &conf)
Definition:
HcalTrigTowerGeometryESProducer.cc:6
CaloGeometryRecord
Definition:
CaloGeometryRecord.h:30
HcalTopology
Definition:
HcalTopology.h:26
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
HcalRecNumberingRecord.h
HcalTrigTowerGeometryESProducer::produce
std::unique_ptr< HcalTrigTowerGeometry > produce(const CaloGeometryRecord &)
Definition:
HcalTrigTowerGeometryESProducer.cc:11
config
Definition:
config.py:1
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:103
HcalRecNumberingRecord
Definition:
HcalRecNumberingRecord.h:23
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
edm::ParameterSet
Definition:
ParameterSet.h:47
HcalTrigTowerGeometryESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
HcalTrigTowerGeometryESProducer.cc:16
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
HcalTrigTowerGeometryESProducer.h
HcalTrigTowerGeometryESProducer::~HcalTrigTowerGeometryESProducer
~HcalTrigTowerGeometryESProducer(void) override
Definition:
HcalTrigTowerGeometryESProducer.cc:9
Generated for CMSSW Reference Manual by
1.8.16