@@ -70,11 +70,8 @@ class HGCalTestDDDCons : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
7070HGCalTestDDDCons::HGCalTestDDDCons (const edm::ParameterSet &iC)
7171 : nameDetectors_(iC.getParameter<std::vector<std::string>>(" nameDetectors" )),
7272 fileName_(iC.getParameter<std::string>(" fileName" )),
73- tok_hgcal_{
74- edm::vector_transform (nameDetectors_,
75- [this ](const std::string &name) {
76- return esConsumes<HGCalDDDConstants, IdealGeometryRecord, edm::Transition::BeginRun>(
77- edm::ESInputTag{" " , name});
73+ tok_hgcal_{edm::vector_transform (nameDetectors_, [this ](const std::string &name) {
74+ return esConsumes<HGCalDDDConstants, IdealGeometryRecord, edm::Transition::BeginRun>(edm::ESInputTag{" " , name});
7875 })} {
7976 std::ostringstream st1;
8077 for (const auto &name : nameDetectors_)
@@ -188,16 +185,18 @@ void HGCalTestDDDCons::beginRun(edm::Run const &iRun, edm::EventSetup const &iSe
188185 << " :" << cellxy_ncog.first << " ," << cellxy_ncog.second << " :" << cellxy_cog.first
189186 << " ," << cellxy_cog.second << " CellType:CellPosition " << cellType.second << " :"
190187 << cellType.first ;
191- if (std::sqrt (std::pow (waferxy.first + scale * xwafer_[k], 2 ) + std::pow (waferxy.second - scale * ywafer_[k], 2 )) > 0.01 ) {
188+ if (std::sqrt (std::pow (waferxy.first + scale * xwafer_[k], 2 ) + std::pow (waferxy.second - scale * ywafer_[k], 2 )) >
189+ 0.01 ) {
192190 edm::LogVerbatim (" HGCGeom" ) << " Error wafer mismatch actual:observed (" << xwafer_[k] << " ," << ywafer_[k]
193191 << " ):(" << waferxy.first << " ," << waferxy.second << " ) " ;
194192 }
195- if (std::sqrt (std::pow (cellxy_ncog.first + scale * xcell_[k], 2 ) + std::pow (cellxy_ncog.second - scale * ycell_[k], 2 )) > 0.01 ) {
193+ if (std::sqrt (std::pow (cellxy_ncog.first + scale * xcell_[k], 2 ) +
194+ std::pow (cellxy_ncog.second - scale * ycell_[k], 2 )) > 0.01 ) {
196195 edm::LogVerbatim (" HGCGeom" ) << " Error cell COG mismatch actual:observed (" << xcell_[k] << " ," << ycell_[k]
197196 << " ):(" << cellxy_ncog.first << " ," << cellxy_ncog.second << " ) " ;
198197 }
199- if (std::sqrt (std::pow (cellxy_cog.first + scale * xcellOff_[k], 2 ) + std::pow (cellxy_cog. second - scale * ycellOff_[k], 2 )) >
200- 0.01 ) {
198+ if (std::sqrt (std::pow (cellxy_cog.first + scale * xcellOff_[k], 2 ) +
199+ std::pow (cellxy_cog. second - scale * ycellOff_[k], 2 )) > 0.01 ) {
201200 edm::LogVerbatim (" HGCGeom" ) << " Error cell center mismatch actual:observed (" << xcellOff_[k] << " ,"
202201 << ycellOff_[k] << " ):(" << cellxy_cog.first << " ," << cellxy_cog.second << " ) " ;
203202 }
0 commit comments