Geometry
HGCalGeometry
interface
CaloGeometryDBHGCal.h
Go to the documentation of this file.
1
#ifndef Geometry_HGCalGeometry_CaloGeometryDBHGCal_h
2
#define Geometry_HGCalGeometry_CaloGeometryDBHGCal_h
3
4
#include "
Geometry/CaloEventSetup/interface/CaloGeometryDBEP.h
"
5
#include "
Geometry/HGCalGeometry/interface/HGCalGeometry.h
"
6
7
// Specializations for HGCal
8
namespace
calogeometryDBEPimpl
{
9
static
constexpr
auto
nameHGCal
=
"HGCalEESensitive"
;
10
template
<>
11
struct
GeometryTraits
<
HGCalGeometry
,
true
> {
12
using
TokenType
=
edm::ESGetToken<HGCalGeometry, IdealGeometryRecord>
;
13
14
static
TokenType
makeToken
(
edm::ESConsumesCollectorT<HGCalGeometry::AlignedRecord>
&
cc
) {
15
return
cc
.template consumesFrom<HGCalGeometry, IdealGeometryRecord>(
edm::ESInputTag
{
""
,
nameHGCal
});
16
}
17
};
18
template
<>
19
struct
AdditionalTokens
<
HGCalGeometry
> {
20
void
makeTokens
(
edm::ESConsumesCollectorT<HGCalGeometry::AlignedRecord>
&
cc
) {
21
topology
=
cc
.consumesFrom<
HGCalTopology
,
IdealGeometryRecord
>(
edm::ESInputTag
{
""
,
nameHGCal
});
22
}
23
edm::ESGetToken<HGCalTopology, IdealGeometryRecord>
topology
;
24
};
25
}
// namespace calogeometryDBEPimpl
26
27
#endif
edm::ESInputTag
Definition:
ESInputTag.h:87
calogeometryDBEPimpl::GeometryTraits< HGCalGeometry, true >::makeToken
static TokenType makeToken(edm::ESConsumesCollectorT< HGCalGeometry::AlignedRecord > &cc)
Definition:
CaloGeometryDBHGCal.h:14
CaloGeometryDBEP.h
edm::ESConsumesCollectorT
Definition:
ESConsumesCollector.h:125
ecaldqm::topology
const CaloTopology * topology(nullptr)
calogeometryDBEPimpl::AdditionalTokens< HGCalGeometry >::topology
edm::ESGetToken< HGCalTopology, IdealGeometryRecord > topology
Definition:
CaloGeometryDBHGCal.h:23
calogeometryDBEPimpl
Definition:
CaloGeometryDBEP.h:33
HGCalGeometry
Definition:
HGCalGeometry.h:29
funct::true
true
Definition:
Factorize.h:173
HGCalGeometry.h
cc
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord >
HGCalTopology
Definition:
HGCalTopology.h:12
calogeometryDBEPimpl::nameHGCal
static constexpr auto nameHGCal
Definition:
CaloGeometryDBHGCal.h:9
calogeometryDBEPimpl::GeometryTraits
Definition:
CaloGeometryDBEP.h:36
calogeometryDBEPimpl::AdditionalTokens
Definition:
CaloGeometryDBEP.h:79
calogeometryDBEPimpl::AdditionalTokens< HGCalGeometry >::makeTokens
void makeTokens(edm::ESConsumesCollectorT< HGCalGeometry::AlignedRecord > &cc)
Definition:
CaloGeometryDBHGCal.h:20
IdealGeometryRecord
Definition:
IdealGeometryRecord.h:25
Generated for CMSSW Reference Manual by
1.8.16