@@ -70,11 +70,11 @@ class CTPPSGeometryESModule : public edm::ESProducer {
7070 std::unique_ptr<DetGeomDesc> produceMisalignedGDFromPreprocessedDB (const VeryForwardMisalignedGeometryRecord&);
7171 std::unique_ptr<CTPPSGeometry> produceMisalignedTG (const VeryForwardMisalignedGeometryRecord&);
7272
73- template <typename REC , typename GEO>
73+ template <typename REC, typename GEO>
7474 std::unique_ptr<DetGeomDesc> produceGD (const GEO&,
7575 const std::optional<REC>&,
76- edm::ESGetToken<DetGeomDesc,GEO> const &,
77- edm::ESGetToken<CTPPSRPAlignmentCorrectionsData,REC> const &,
76+ edm::ESGetToken<DetGeomDesc, GEO> const &,
77+ edm::ESGetToken<CTPPSRPAlignmentCorrectionsData, REC> const &,
7878 const char * name);
7979
8080 const unsigned int verbosity_;
@@ -108,7 +108,8 @@ CTPPSGeometryESModule::CTPPSGeometryESModule(const edm::ParameterSet& iConfig)
108108 realAlignmentToken_ = c1.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord>(edm::ESInputTag ());
109109
110110 auto c2 = setWhatProduced (this , &CTPPSGeometryESModule::produceMisalignedGDFromPreprocessedDB);
111- misAlignmentToken_ = c2.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord>(edm::ESInputTag ());
111+ misAlignmentToken_ =
112+ c2.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord>(edm::ESInputTag ());
112113 } else if (!fromDD4hep_) {
113114 auto c = setWhatProduced (this , &CTPPSGeometryESModule::produceIdealGD);
114115 ddToken_ = c.consumes <DDCompactView>(edm::ESInputTag (" " , iConfig.getParameter <std::string>(" compactViewTag" )));
@@ -118,7 +119,8 @@ CTPPSGeometryESModule::CTPPSGeometryESModule(const edm::ParameterSet& iConfig)
118119 realAlignmentToken_ = c1.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord>(edm::ESInputTag ());
119120
120121 auto c2 = setWhatProduced (this , &CTPPSGeometryESModule::produceMisalignedGD);
121- misAlignmentToken_ = c2.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord>(edm::ESInputTag ());
122+ misAlignmentToken_ =
123+ c2.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord>(edm::ESInputTag ());
122124 } else {
123125 auto c = setWhatProduced (this , &CTPPSGeometryESModule::produceIdealGD);
124126 dd4hepToken_ =
@@ -129,12 +131,13 @@ CTPPSGeometryESModule::CTPPSGeometryESModule(const edm::ParameterSet& iConfig)
129131 realAlignmentToken_ = c1.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPRealAlignmentRecord>(edm::ESInputTag ());
130132
131133 auto c2 = setWhatProduced (this , &CTPPSGeometryESModule::produceMisalignedGD);
132- misAlignmentToken_ = c2.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord>(edm::ESInputTag ());
134+ misAlignmentToken_ =
135+ c2.consumesFrom <CTPPSRPAlignmentCorrectionsData, RPMisalignedAlignmentRecord>(edm::ESInputTag ());
133136 }
134137
135138 auto c_RTG = setWhatProduced (this , &CTPPSGeometryESModule::produceRealTG);
136139 dgdRealToken_ = c_RTG.consumes <DetGeomDesc>(edm::ESInputTag ());
137-
140+
138141 auto c_MTG = setWhatProduced (this , &CTPPSGeometryESModule::produceMisalignedTG);
139142 dgdMisToken_ = c_MTG.consumes <DetGeomDesc>(edm::ESInputTag ());
140143}
@@ -168,25 +171,25 @@ std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceIdealGD(const IdealGe
168171 }
169172}
170173
171- std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceIdealGDFromPreprocessedDB (const VeryForwardIdealGeometryRecord& iRecord) {
172-
173- // Get the PDetGeomDesc from EventSetup
174- auto const & myDB = iRecord.get (dbToken_);
175-
176- edm::LogInfo (" CTPPSGeometryESModule" ) << " myDB size = " << myDB.container_ .size ();
174+ std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceIdealGDFromPreprocessedDB (
175+ const VeryForwardIdealGeometryRecord& iRecord) {
176+ // Get the PDetGeomDesc from EventSetup
177+ auto const & myDB = iRecord.get (dbToken_);
177178
178- // Build geo from PDetGeomDesc DB object.
179- auto pdet = std::make_unique<DetGeomDesc>(myDB);
180- return pdet;
179+ edm::LogInfo (" CTPPSGeometryESModule" ) << " myDB size = " << myDB.container_ .size ();
181180
181+ // Build geo from PDetGeomDesc DB object.
182+ auto pdet = std::make_unique<DetGeomDesc>(myDB);
183+ return pdet;
182184}
183185
184- template <typename REC , typename GEO>
185- std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceGD (GEO const & iIdealRec,
186- std::optional<REC> const & iAlignRec,
187- edm::ESGetToken<DetGeomDesc,GEO> const & iGDToken,
188- edm::ESGetToken<CTPPSRPAlignmentCorrectionsData,REC> const & iAlignToken,
189- const char * name) {
186+ template <typename REC, typename GEO>
187+ std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceGD (
188+ GEO const & iIdealRec,
189+ std::optional<REC> const & iAlignRec,
190+ edm::ESGetToken<DetGeomDesc, GEO> const & iGDToken,
191+ edm::ESGetToken<CTPPSRPAlignmentCorrectionsData, REC> const & iAlignToken,
192+ const char * name) {
190193 // get the input GeometricalDet
191194 auto const & idealGD = iIdealRec.get (iGDToken);
192195
@@ -211,7 +214,8 @@ std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceGD(GEO const& iIdealR
211214 return CTPPSGeometryESCommon::applyAlignments (idealGD, alignments);
212215}
213216
214- std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceRealGDFromPreprocessedDB (const VeryForwardRealGeometryRecord& iRecord) {
217+ std::unique_ptr<DetGeomDesc> CTPPSGeometryESModule::produceRealGDFromPreprocessedDB (
218+ const VeryForwardRealGeometryRecord& iRecord) {
215219 return produceGD (iRecord.getRecord <VeryForwardIdealGeometryRecord>(),
216220 iRecord.tryToGetRecord <RPRealAlignmentRecord>(),
217221 idealDBGDToken_,
0 commit comments