File indexing completed on 2024-04-06 12:14:49
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include "Geometry/HcalEventSetup/src/CaloTowerHardcodeGeometryEP.h"
0020 #include "Geometry/Records/interface/HcalRecNumberingRecord.h"
0021 #include "Geometry/CaloTopology/interface/CaloTowerTopology.h"
0022 #include "Geometry/CaloTopology/interface/HcalTopology.h"
0023 #include "Geometry/HcalCommonData/interface/HcalDDDRecConstants.h"
0024
0025 CaloTowerHardcodeGeometryEP::CaloTowerHardcodeGeometryEP(const edm::ParameterSet& iConfig) {
0026
0027
0028 auto cc = setWhatProduced(this, &CaloTowerHardcodeGeometryEP::produce, edm::es::Label("TOWER"));
0029 cttopoToken_ = cc.consumesFrom<CaloTowerTopology, HcalRecNumberingRecord>(edm::ESInputTag{});
0030 hcaltopoToken_ = cc.consumesFrom<HcalTopology, HcalRecNumberingRecord>(edm::ESInputTag{});
0031 consToken_ = cc.consumesFrom<HcalDDDRecConstants, HcalRecNumberingRecord>(edm::ESInputTag{});
0032 }
0033
0034
0035 CaloTowerHardcodeGeometryEP::ReturnType CaloTowerHardcodeGeometryEP::produce(const CaloTowerGeometryRecord& iRecord) {
0036 const auto& cttopo = iRecord.get(cttopoToken_);
0037 const auto& hcaltopo = iRecord.get(hcaltopoToken_);
0038 const auto& cons = iRecord.get(consToken_);
0039
0040 return std::unique_ptr<CaloSubdetectorGeometry>(loader_.load(&cttopo, &hcaltopo, &cons));
0041 }