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
//
26
// constants, enums and typedefs
27
//
28
29
//
30
// static data member definitions
31
//
32
33
//
34
// constructors and destructor
35
//
36
CaloTowerHardcodeGeometryEP::CaloTowerHardcodeGeometryEP
(
const
edm::ParameterSet
& iConfig)
37
{
38
//the following line is needed to tell the framework what
39
// data is being produced
40
setWhatProduced
(
this
,
41
&
CaloTowerHardcodeGeometryEP::produce
,
42
dependsOn
( &
CaloTowerHardcodeGeometryEP::idealRecordCallBack
),
43
"TOWER"
);
44
45
//now do what ever other initialization is needed
46
loader_
=
new
CaloTowerHardcodeGeometryLoader
();
47
}
48
49
50
CaloTowerHardcodeGeometryEP::~CaloTowerHardcodeGeometryEP
() {
51
delete
loader_
;
52
}
53
54
55
//
56
// member functions
57
//
58
59
// ------------ method called to produce the data ------------
60
CaloTowerHardcodeGeometryEP::ReturnType
61
CaloTowerHardcodeGeometryEP::produce
(
const
CaloTowerGeometryRecord
& iRecord) {
62
edm::ESHandle<CaloTowerTopology>
cttopo;
63
iRecord.
getRecord
<
HcalRecNumberingRecord
>().
get
( cttopo );
64
edm::ESHandle<HcalTopology>
hcaltopo;
65
iRecord.
getRecord
<
HcalRecNumberingRecord
>().
get
( hcaltopo );
66
edm::ESHandle<HcalDDDRecConstants>
pHRNDC;
67
iRecord.
getRecord
<
HcalRecNumberingRecord
>().
get
( pHRNDC );
68
69
return
std::unique_ptr<CaloSubdetectorGeometry>(
loader_
->
load
( &*cttopo, &*hcaltopo, &*pHRNDC ));
70
71
}
72
73
edm::eventsetup::dependsOn
depends_on::OneHolder< T, TDependsOnRecord > dependsOn(void(T::*iT)(const TDependsOnRecord &))
Definition:
eventsetup_dependsOn.h:190
CaloTowerHardcodeGeometryEP.h
CaloTowerHardcodeGeometryEP::idealRecordCallBack
void idealRecordCallBack(const HcalRecNumberingRecord &)
Definition:
CaloTowerHardcodeGeometryEP.h:32
CaloTowerHardcodeGeometryEP::~CaloTowerHardcodeGeometryEP
~CaloTowerHardcodeGeometryEP() override
Definition:
CaloTowerHardcodeGeometryEP.cc:50
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:61
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
edm::eventsetup::DependentRecordImplementation::getRecord
const DepRecordT & getRecord() const
Definition:
DependentRecordImplementation.h:48
edm::ESHandle
Definition:
DTSurvey.h:22
CaloTowerTopology.h
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:36
CaloTowerHardcodeGeometryLoader
Definition:
CaloTowerHardcodeGeometryLoader.h:15
CaloTowerHardcodeGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition:
CaloTowerHardcodeGeometryEP.h:28
HcalDDDRecConstants.h
CaloTowerHardcodeGeometryEP::loader_
CaloTowerHardcodeGeometryLoader * loader_
Definition:
CaloTowerHardcodeGeometryEP.h:36
HcalTopology.h
Generated for CMSSW Reference Manual by
1.8.11