Skip to content

Commit a512872

Browse files
author
Sunanda
committed
Code check
1 parent b86d8a7 commit a512872

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

DataFormats/ForwardDetId/interface/HGCSiliconDetId.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class HGCSiliconDetId : public DetId {
6464
if (!gen.null()) {
6565
if ((gen.det() != HGCalEE) && (gen.det() != HGCalHSi)) {
6666
throw cms::Exception("Invalid DetId")
67-
<< "Cannot initialize HGCSiliconDetId from " << std::hex << gen.rawId() << std::dec << " Det " << gen.det();
67+
<< "Cannot initialize HGCSiliconDetId from " << std::hex << gen.rawId() << std::dec << " Det " << gen.det();
6868
}
6969
}
7070
id_ = gen.rawId();

Geometry/HGCalGeometry/test/HGCalWaferInfo.cc

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ class HGCalWaferInfo : public edm::one::EDAnalyzer<> {
5555
};
5656

5757
HGCalWaferInfo::HGCalWaferInfo(const edm::ParameterSet& iC)
58-
: name_(iC.getParameter<std::string>("detector")),
59-
geomToken_(esConsumes<HGCalGeometry, IdealGeometryRecord>(edm::ESInputTag("", name_))) {}
58+
: name_(iC.getParameter<std::string>("detector")),
59+
geomToken_(esConsumes<HGCalGeometry, IdealGeometryRecord>(edm::ESInputTag("", name_))) {}
6060

6161
void HGCalWaferInfo::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
6262
edm::ParameterSetDescription desc;
@@ -72,20 +72,22 @@ void HGCalWaferInfo::analyze(const edm::Event& iEvent, const edm::EventSetup& iS
7272

7373
const std::vector<DetId>& ids = geom->getValidDetIds();
7474
edm::LogVerbatim("HGCalGeom") << "Use " << ids.size() << " valid ids for " << geom->cellElement();
75-
std::string parts[26] = {"Full", "Five", "ChopTwo", "ChopTwoM", "Half", "Semi",
76-
"Semi2", "Three", "Half2", "Five2", "????", "LDTop",
77-
"LDBottom", "LDLeft", "LDRight", "LDFive", "LDThree",
78-
"????", "????", "????", "????", "HDTop", "HDBottom",
79-
"HDLeft", "HDRight", "HDFive"};
75+
std::string parts[26] = {"Full", "Five", "ChopTwo", "ChopTwoM", "Half", "Semi", "Semi2", "Three", "Half2",
76+
"Five2", "????", "LDTop", "LDBottom", "LDLeft", "LDRight", "LDFive", "LDThree", "????",
77+
"????", "????", "????", "HDTop", "HDBottom", "HDLeft", "HDRight", "HDFive"};
8078
std::string types[4] = {"HD120", "LD200", "LD300", "HD200"};
81-
79+
8280
for (auto const& id : ids) {
8381
if ((id.det() == DetId::HGCalEE) || (id.det() == DetId::HGCalHSi)) {
8482
HGCSiliconDetId detId(id);
85-
HGCalParameters::waferInfo info = geom->topology().dddConstants().waferInfo(detId.layer(), detId.waferU(), detId.waferV());
86-
edm::LogVerbatim("HGCalGeom") << "ID: " << detId << " Type " << info.type << ":" << types[info.type] << " Part " << info.part << ":" << parts[info.part] << " Orient " << info.orient << " Cassette " << info.cassette << " at " << geom->getPosition(id, true, false);
83+
HGCalParameters::waferInfo info =
84+
geom->topology().dddConstants().waferInfo(detId.layer(), detId.waferU(), detId.waferV());
85+
edm::LogVerbatim("HGCalGeom") << "ID: " << detId << " Type " << info.type << ":" << types[info.type] << " Part "
86+
<< info.part << ":" << parts[info.part] << " Orient " << info.orient << " Cassette "
87+
<< info.cassette << " at " << geom->getPosition(id, true, false);
8788
} else {
88-
edm::LogVerbatim("HGCalGeom") << "Illegal Det " << id.det() << " in " << std::hex << id.rawId() << std::dec << " ERROR";
89+
edm::LogVerbatim("HGCalGeom") << "Illegal Det " << id.det() << " in " << std::hex << id.rawId() << std::dec
90+
<< " ERROR";
8991
}
9092
}
9193
}

0 commit comments

Comments
 (0)