Skip to content

Commit e83ad78

Browse files
author
Sunanda
committed
Code check
1 parent da98686 commit e83ad78

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

Geometry/HGCalCommonData/src/HGCalDDDConstants.cc

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,14 +1780,17 @@ void HGCalDDDConstants::waferFromPosition(const double x,
17801780
dx0 = -cshift.first;
17811781
dy0 = cshift.second;
17821782
if (debug)
1783-
edm::LogVerbatim("HGCalGeom") << "Cassette " << (ktr->second).cassette << " Shift " << dx0 << ":" << dy0 << " Type " << (ktr->second).type << ":" << (ktr->second).part << ":" << (ktr->second).orient << ":" << (ktr->second).cassette;
1783+
edm::LogVerbatim("HGCalGeom") << "Cassette " << (ktr->second).cassette << " Shift " << dx0 << ":" << dy0
1784+
<< " Type " << (ktr->second).type << ":" << (ktr->second).part << ":"
1785+
<< (ktr->second).orient << ":" << (ktr->second).cassette;
17841786
} else {
1785-
if (mode_ == HGCalGeometryMode::Hexagon8FineCell) {
1786-
if (debug)
1787-
edm::LogVerbatim("HGCalGeom") << "Cannot find waferinformation --> Skip this " << layer << ":" << waferU << ":" << waferV << " wafer assignment";
1788-
continue;
1789-
}
1790-
}
1787+
if (mode_ == HGCalGeometryMode::Hexagon8FineCell) {
1788+
if (debug)
1789+
edm::LogVerbatim("HGCalGeom") << "Cannot find waferinformation --> Skip this " << layer << ":" << waferU
1790+
<< ":" << waferV << " wafer assignment";
1791+
continue;
1792+
}
1793+
}
17911794
}
17921795
double dx = std::abs(xx - dx0 - hgpar_->waferPosX_[k]);
17931796
double dy = std::abs(yy - dy0 - hgpar_->waferPosY_[k]);

Geometry/HGCalCommonData/src/HGCalGeomParameters.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,10 +1606,10 @@ void HGCalGeomParameters::loadSpecParsHexagon8(HGCalParameters& php,
16061606
<< HGCalWaferIndex::waferV(waferIndex[k]) << "] Thickness type "
16071607
<< HGCalProperty::waferThick(waferProperties[k]) << " Partial type " << partial
16081608
<< " Orientation " << HGCalProperty::waferOrient(waferProperties[k]) << ":" << orient
1609-
<< " Info " << php.waferInfoMap_[waferIndex[k]].type << ":"
1610-
<< php.waferInfoMap_[waferIndex[k]].part << ":"
1611-
<< php.waferInfoMap_[waferIndex[k]].orient << ":"
1612-
<< php.waferInfoMap_[waferIndex[k]].cassette;
1609+
<< " Info " << php.waferInfoMap_[waferIndex[k]].type << ":"
1610+
<< php.waferInfoMap_[waferIndex[k]].part << ":"
1611+
<< php.waferInfoMap_[waferIndex[k]].orient << ":"
1612+
<< php.waferInfoMap_[waferIndex[k]].cassette;
16131613
#endif
16141614
}
16151615
}

Geometry/HGCalGeometry/test/HGCalIdCheck.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ HGCalIdCheck::HGCalIdCheck(const edm::ParameterSet &iC)
9494
int32_t cellV = std::atoi(items[7].c_str());
9595
HGCSiliconDetId detId(det, zp, type, layer, waferU, waferV, cellU, cellV);
9696
detIds_.emplace_back(detId);
97-
edm::LogVerbatim("HGCGeom") << "[" << detIds_.size() << "] " << det << ":" << zp << ":" << type << ":" << layer << ":" << waferU << ":" << waferV << ":" << cellU << ":" << cellV << " ==> " << detId;
98-
}
97+
edm::LogVerbatim("HGCGeom") << "[" << detIds_.size() << "] " << det << ":" << zp << ":" << type << ":"
98+
<< layer << ":" << waferU << ":" << waferV << ":" << cellU << ":" << cellV
99+
<< " ==> " << detId;
100+
}
99101
}
100102
fInput.close();
101103
}

0 commit comments

Comments
 (0)