Main Page
Namespaces
Classes
Package Documentation
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
{
27
//the following line is needed to tell the framework what
28
// data is being produced
29
setWhatProduced
(
this
,
30
&
CaloTowerHardcodeGeometryEP::produce
,
31
edm::es::Label
(
"TOWER"
));
32
33
loader_
=
new
CaloTowerHardcodeGeometryLoader
();
34
}
35
36
CaloTowerHardcodeGeometryEP::~CaloTowerHardcodeGeometryEP
() {
37
delete
loader_
;
38
}
39
40
// ------------ method called to produce the data ------------
41
CaloTowerHardcodeGeometryEP::ReturnType
42
CaloTowerHardcodeGeometryEP::produce
(
const
CaloTowerGeometryRecord
& iRecord) {
43
edm::ESHandle<CaloTowerTopology>
cttopo;
44
iRecord.
getRecord
<
HcalRecNumberingRecord
>().
get
( cttopo );
45
edm::ESHandle<HcalTopology>
hcaltopo;
46
iRecord.
getRecord
<
HcalRecNumberingRecord
>().
get
( hcaltopo );
47
edm::ESHandle<HcalDDDRecConstants>
pHRNDC;
48
iRecord.
getRecord
<
HcalRecNumberingRecord
>().
get
( pHRNDC );
49
50
return
std::unique_ptr<CaloSubdetectorGeometry>(
loader_
->
load
( &*cttopo, &*hcaltopo, &*pHRNDC ));
51
}
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
CaloTowerHardcodeGeometryEP.h
CaloTowerHardcodeGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition:
CaloTowerHardcodeGeometryEP.h:23
CaloTowerHardcodeGeometryEP::~CaloTowerHardcodeGeometryEP
~CaloTowerHardcodeGeometryEP() override
Definition:
CaloTowerHardcodeGeometryEP.cc:36
CaloTowerHardcodeGeometryLoader::load
std::unique_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
Definition:
CaloTowerHardcodeGeometryLoader.cc:14
CaloTowerHardcodeGeometryEP::produce
ReturnType produce(const CaloTowerGeometryRecord &)
Definition:
CaloTowerHardcodeGeometryEP.cc:42
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT getRecord() const
Definition:
DependentRecordImplementation.h:51
edm::ESHandle
Definition:
DTSurvey.h:22
CaloTowerTopology.h
edm::es::Label
Definition:
es_Label.h:54
HcalRecNumberingRecord.h
CaloTowerGeometryRecord
Definition:
CaloTowerGeometryRecord.h:25
HcalRecNumberingRecord
Definition:
HcalRecNumberingRecord.h:23
edm::ParameterSet
Definition:
ParameterSet.h:36
CaloTowerHardcodeGeometryEP::CaloTowerHardcodeGeometryEP
CaloTowerHardcodeGeometryEP(const edm::ParameterSet &)
Definition:
CaloTowerHardcodeGeometryEP.cc:25
CaloTowerHardcodeGeometryLoader
Definition:
CaloTowerHardcodeGeometryLoader.h:15
HcalDDDRecConstants.h
CaloTowerHardcodeGeometryEP::loader_
CaloTowerHardcodeGeometryLoader * loader_
Definition:
CaloTowerHardcodeGeometryEP.h:29
HcalTopology.h
Generated for CMSSW Reference Manual by
1.8.11