/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/ForwardGeometry/plugins/ZdcTopologyEP.cc
47 строк
2 KB
Sunanda
Define the modified scenarios for 2024 (Affecting ZDC geometry)
18 сен 2024, 14:51
18 сен 2024, 14:51
3980684
Код
Авторство
О чём код?
// -*- C++ -*- // // Package: ZdcTopologyEP // Class: ZdcTopologyEP // /**\class ZdcTopologyEP ZdcTopologyEP.h tmp/ZdcTopologyEP/interface/ZdcTopologyEP.h Description: <one line class summary> Implementation: <Notes on implementation> */ #include "Geometry/ForwardGeometry/plugins/ZdcTopologyEP.h" #include "Geometry/HcalCommonData/interface/HcalDDDRecConstants.h" #include "FWCore/Utilities/interface/Exception.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" //#define EDM_ML_DEBUG ZdcTopologyEP::ZdcTopologyEP(const edm::ParameterSet& conf) : m_hdcToken{setWhatProduced(this, &ZdcTopologyEP::produce).consumes<HcalDDDRecConstants>(edm::ESInputTag{})} { #ifdef EDM_ML_DEBUG edm::LogVerbatim("HCalGeom") << "ZdcTopologyEP::ZdcTopologyEP"; #endif } void ZdcTopologyEP::fillDescriptions(edm::ConfigurationDescriptions& descriptions) { edm::ParameterSetDescription desc; descriptions.add("zdcTopologyEP", desc); } // ------------ method called to produce the data ------------ ZdcTopologyEP::ReturnType ZdcTopologyEP::produce(const HcalRecNumberingRecord& iRecord) { #ifdef EDM_ML_DEBUG edm::LogVerbatim("HCalGeom") << "ZdcTopologyEP::produce(const HcalRecNumberingRecord& iRecord)"; #endif const HcalDDDRecConstants& hdc = iRecord.get(m_hdcToken); #ifdef EDM_ML_DEBUG edm::LogVerbatim("HCalGeom") << "mode = " << hdc.getTopoMode(); #endif ReturnType myTopo(new ZdcTopology(&hdc)); return myTopo; }