Geometry
HcalEventSetup
src
HcalDDDGeometryEP.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: HcalDDDGeometryEP
4
// Class: HcalDDDGeometryEP
5
//
13
//
14
// Original Author: Sunanda Banerjee
15
// Created: Thu Oct 20 11:35:27 CDT 2006
16
//
17
//
18
19
#include "
Geometry/HcalEventSetup/interface/HcalDDDGeometryEP.h
"
20
#include "
Geometry/Records/interface/HcalRecNumberingRecord.h
"
21
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
22
23
HcalDDDGeometryEP::HcalDDDGeometryEP
(
const
edm::ParameterSet
& ps) {
24
//the following line is needed to tell the framework what
25
// data is being produced
26
auto
cc
=
setWhatProduced
(
this
, &
HcalDDDGeometryEP::produceAligned
,
edm::es::Label
(
"HCAL"
));
27
consToken_
=
cc
.consumesFrom<
HcalDDDRecConstants
,
HcalRecNumberingRecord
>(
edm::ESInputTag
{});
28
topologyToken_
=
cc
.consumesFrom<
HcalTopology
,
HcalRecNumberingRecord
>(
edm::ESInputTag
{});
29
}
30
31
// ------------ method called to produce the data ------------
32
HcalDDDGeometryEP::ReturnType
HcalDDDGeometryEP::produceAligned
(
const
HcalGeometryRecord
& iRecord) {
33
edm::LogInfo
(
"HCAL"
) <<
"Using default HCAL topology"
;
34
const
auto
& cons = iRecord.
get
(
consToken_
);
35
const
auto
& topology = iRecord.
get
(
topologyToken_
);
36
37
HcalDDDGeometryLoader
loader
(&cons);
38
39
return
ReturnType
(
loader
.load(topology));
40
}
edm::ESInputTag
Definition:
ESInputTag.h:87
MessageLogger.h
HcalDDDGeometryEP::ReturnType
std::unique_ptr< CaloSubdetectorGeometry > ReturnType
Definition:
HcalDDDGeometryEP.h:18
HcalTopology
Definition:
HcalTopology.h:26
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
HcalRecNumberingRecord.h
edm::LogInfo
Log< level::Info, false > LogInfo
Definition:
MessageLogger.h:125
HcalDDDGeometryLoader
Definition:
HcalDDDGeometryLoader.h:21
HcalDDDGeometryEP.h
HcalDDDGeometryEP::topologyToken_
edm::ESGetToken< HcalTopology, HcalRecNumberingRecord > topologyToken_
Definition:
HcalDDDGeometryEP.h:24
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
HcalRecNumberingRecord
Definition:
HcalRecNumberingRecord.h:23
HcalGeometryRecord
Definition:
HcalGeometryRecord.h:23
HcalDDDGeometryEP::produceAligned
ReturnType produceAligned(const HcalGeometryRecord &)
Definition:
HcalDDDGeometryEP.cc:32
edm::ParameterSet
Definition:
ParameterSet.h:47
HcalDDDGeometryEP::HcalDDDGeometryEP
HcalDDDGeometryEP(const edm::ParameterSet &)
Definition:
HcalDDDGeometryEP.cc:23
cc
HcalDDDGeometryEP::consToken_
edm::ESGetToken< HcalDDDRecConstants, HcalRecNumberingRecord > consToken_
Definition:
HcalDDDGeometryEP.h:23
HcalDDDRecConstants
Definition:
HcalDDDRecConstants.h:23
web.browse_db.loader
loader
Definition:
browse_db.py:18
Generated for CMSSW Reference Manual by
1.8.16