Skip to content

Commit a13555d

Browse files
committed
code format
1 parent e27d263 commit a13555d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Geometry/HGCalCommonData/test/HGCalTestDDDCons.cc

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,8 @@ class HGCalTestDDDCons : public edm::one::EDAnalyzer<edm::one::WatchRuns> {
7070
HGCalTestDDDCons::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

Comments
 (0)