Skip to content

Commit 82cdbac

Browse files
author
Sunanda
committed
Code check
1 parent 68f6296 commit 82cdbac

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Geometry/HGCalGeometry/test/HGCalListValidCells.cc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ void HGCalListValidCells::analyze(const edm::Event& iEvent, const edm::EventSetu
7979
"Five2", "????", "LDTop", "LDBottom", "LDLeft", "LDRight", "LDFive", "LDThree", "????",
8080
"????", "????", "????", "HDTop", "HDBottom", "HDLeft", "HDRight", "HDFive"};
8181
const std::vector<DetId>& ids = geom->getValidDetIds();
82-
edm::LogVerbatim("HGCalGeom") << "Find the list of valid DetIds of type " << partialType_ << ":" << parts[partialType_] << " among a list of " << ids.size() << " valid ids of " << geom->cellElement();
82+
edm::LogVerbatim("HGCalGeom") << "Find the list of valid DetIds of type " << partialType_ << ":"
83+
<< parts[partialType_] << " among a list of " << ids.size() << " valid ids of "
84+
<< geom->cellElement();
8385
std::vector<HGCSiliconDetId> detIds;
8486

8587
for (auto const& id : ids) {
@@ -88,26 +90,27 @@ void HGCalListValidCells::analyze(const edm::Event& iEvent, const edm::EventSetu
8890
HGCalParameters::waferInfo info =
8991
geom->topology().dddConstants().waferInfo(detId.layer(), detId.waferU(), detId.waferV());
9092
if (info.part == partialType_) {
91-
if (std::find(detIds.begin(), detIds.end(), detId) == detIds.end())
92-
detIds.emplace_back(detId);
93+
if (std::find(detIds.begin(), detIds.end(), detId) == detIds.end())
94+
detIds.emplace_back(detId);
9395
}
9496
} else {
9597
edm::LogVerbatim("HGCalGeom") << "Illegal Det " << id.det() << " in " << std::hex << id.rawId() << std::dec
9698
<< " ERROR";
9799
}
98100
}
99-
edm::LogVerbatim("HGCalGeom") << "There are " << detIds.size() << " valid Ids with partial type " << partialType_ << ":" << parts[partialType_];
101+
edm::LogVerbatim("HGCalGeom") << "There are " << detIds.size() << " valid Ids with partial type " << partialType_
102+
<< ":" << parts[partialType_];
100103
if (verbosity_ > 0) {
101104
for (auto const detId : detIds)
102105
edm::LogVerbatim("HGCalGeom") << " " << detId;
103106
}
104-
107+
105108
if (detIds.size() > 0) {
106109
std::vector<int> cellPatterns;
107110
for (auto const& detId : detIds) {
108111
int iuv = (100 * detId.cellU() + detId.cellV());
109112
if (std::find(cellPatterns.begin(), cellPatterns.end(), iuv) == cellPatterns.end())
110-
cellPatterns.emplace_back(iuv);
113+
cellPatterns.emplace_back(iuv);
111114
}
112115
std::sort(cellPatterns.begin(), cellPatterns.end());
113116
edm::LogVerbatim("HGCalGeom") << "There are " << cellPatterns.size() << " different cell patterns:";

0 commit comments

Comments
 (0)