Main Page
Namespaces
Classes
Package Documentation
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
HGCalGeometry
Definition:
HGCalGeometry.h:30
ecaldqm::topology
CaloTopology const * topology(0)
calogeometryDBEPimpl::nameHGCal
static auto nameHGCal
Definition:
CaloGeometryDBHGCal.h:9
edm::ESInputTag
Definition:
ESInputTag.h:87
calogeometryDBEPimpl
Definition:
CaloGeometryDBEP.h:33
HGCalGeometry.h
calogeometryDBEPimpl::AdditionalTokens< HGCalGeometry >::makeTokens
void makeTokens(edm::ESConsumesCollectorT< HGCalGeometry::AlignedRecord > &cc)
Definition:
CaloGeometryDBHGCal.h:20
edm::ESConsumesCollector::consumesFrom
auto consumesFrom(ESInputTag const &tag)
Definition:
ESConsumesCollector.h:68
CaloGeometryDBEP.h
funct::true
true
Definition:
Factorize.h:173
edm::ESGetToken< HGCalGeometry, IdealGeometryRecord >
edm::ESConsumesCollectorT
Definition:
ESConsumesCollector.h:131
calogeometryDBEPimpl::AdditionalTokens
Definition:
CaloGeometryDBEP.h:79
IdealGeometryRecord
Definition:
IdealGeometryRecord.h:27
calogeometryDBEPimpl::GeometryTraits
Definition:
CaloGeometryDBEP.h:36
HGCalTopology
Definition:
HGCalTopology.h:12
calogeometryDBEPimpl::GeometryTraits< HGCalGeometry, true >::makeToken
static TokenType makeToken(edm::ESConsumesCollectorT< HGCalGeometry::AlignedRecord > &cc)
Definition:
CaloGeometryDBHGCal.h:14
constexpr
#define constexpr
Definition:
GCC11Compatibility.h:35
calogeometryDBEPimpl::AdditionalTokens< HGCalGeometry >::topology
edm::ESGetToken< HGCalTopology, IdealGeometryRecord > topology
Definition:
CaloGeometryDBHGCal.h:23
Generated for CMSSW Reference Manual by
1.8.11