Geometry
HcalEventSetup
src
CaloTowerHardcodeGeometryEP.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: CaloTowerHardcodeGeometryEP
4
// Class: CaloTowerHardcodeGeometryEP
5
//
13
//
14
// Original Author: Jeremiah Mans
15
// Created: Mon Oct 3 11:35:27 CDT 2005
16
//
17
//
18
19
#include "
Geometry/HcalEventSetup/src/CaloTowerHardcodeGeometryEP.h
"
20
#include "
Geometry/Records/interface/HcalRecNumberingRecord.h
"
21
#include "
Geometry/CaloTopology/interface/CaloTowerTopology.h
"
22
#include "
Geometry/CaloTopology/interface/HcalTopology.h
"
23
#include "
Geometry/HcalCommonData/interface/HcalDDDRecConstants.h
"
24
25
CaloTowerHardcodeGeometryEP::CaloTowerHardcodeGeometryEP
(
const
edm::ParameterSet
& iConfig) {
26
//the following line is needed to tell the framework what
27
// data is being produced
28
auto
cc
=
setWhatProduced
(
this
, &
CaloTowerHardcodeGeometryEP::produce
,
edm::es::Label
(
"TOWER"
));
29
cttopoToken_
=
cc
.consumesFrom<
CaloTowerTopology
,
HcalRecNumberingRecord
>(
edm::ESInputTag
{});
30
hcaltopoToken_
=
cc
.consumesFrom<
HcalTopology
,
HcalRecNumberingRecord
>(
edm::ESInputTag
{});
31
consToken_
=
cc
.consumesFrom<
HcalDDDRecConstants
,
HcalRecNumberingRecord
>(
edm::ESInputTag
{});
32
}
33
34
// ------------ method called to produce the data ------------
35
CaloTowerHardcodeGeometryEP::ReturnType
CaloTowerHardcodeGeometryEP::produce
(
const
CaloTowerGeometryRecord
& iRecord) {
36
const
auto
& cttopo = iRecord.
get
(
cttopoToken_
);
37
const
auto
& hcaltopo = iRecord.
get
(
hcaltopoToken_
);
38
const
auto
& cons = iRecord.
get
(
consToken_
);
39
40
return
std::unique_ptr<CaloSubdetectorGeometry>(
loader_
.
load
(&cttopo, &hcaltopo, &cons));
41
}
CaloTowerHardcodeGeometryEP.h
CaloTowerHardcodeGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition:
CaloTowerHardcodeGeometryEP.h:20
edm::ESInputTag
Definition:
ESInputTag.h:87
HcalTopology
Definition:
HcalTopology.h:26
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
CaloTowerTopology
Definition:
CaloTowerTopology.h:13
HcalRecNumberingRecord.h
CaloTowerHardcodeGeometryEP::hcaltopoToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > hcaltopoToken_
Definition:
CaloTowerHardcodeGeometryEP.h:28
CaloTowerHardcodeGeometryEP::CaloTowerHardcodeGeometryEP
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
Definition:
CaloTowerHardcodeGeometryEP.cc:25
CaloTowerHardcodeGeometryEP::produce
ReturnType produce(const CaloTowerGeometryRecord &)
Definition:
CaloTowerHardcodeGeometryEP.cc:35
edm::es::Label
Definition:
es_Label.h:56
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:109
CaloTowerTopology.h
CaloTowerHardcodeGeometryEP::consToken_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > consToken_
Definition:
CaloTowerHardcodeGeometryEP.h:29
HcalRecNumberingRecord
Definition:
HcalRecNumberingRecord.h:23
CaloTowerHardcodeGeometryLoader::load
std::unique_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
Definition:
CaloTowerHardcodeGeometryLoader.cc:14
edm::ParameterSet
Definition:
ParameterSet.h:47
CaloTowerHardcodeGeometryEP::loader_
CaloTowerHardcodeGeometryLoader loader_
Definition:
CaloTowerHardcodeGeometryEP.h:26
CaloTowerHardcodeGeometryEP::cttopoToken_
edm::ESGetToken< CaloTowerTopology, HcalRecNumberingRecord > cttopoToken_
Definition:
CaloTowerHardcodeGeometryEP.h:27
CaloTowerGeometryRecord
Definition:
CaloTowerGeometryRecord.h:24
cc
HcalTopology.h
HcalDDDRecConstants.h
HcalDDDRecConstants
Definition:
HcalDDDRecConstants.h:23
Generated for CMSSW Reference Manual by
1.8.16