AdditionalTokens

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef Geometry_ForwardGeometry_CaloGeometryDBZdc_h
#define Geometry_ForwardGeometry_CaloGeometryDBZdc_h

#include "Geometry/CaloEventSetup/interface/CaloGeometryDBEP.h"
#include "Geometry/ForwardGeometry/interface/ZdcGeometry.h"

namespace calogeometryDBEPimpl {
  template <>
  struct AdditionalTokens<ZdcGeometry> {
    void makeTokens(edm::ESConsumesCollectorT<ZdcGeometry::AlignedRecord>& cc) {
      topology = cc.consumesFrom<ZdcTopology, HcalRecNumberingRecord>(edm::ESInputTag{});
    }
    edm::ESGetToken<ZdcTopology, HcalRecNumberingRecord> topology;
  };
}  // namespace calogeometryDBEPimpl

#endif