@@ -55,8 +55,8 @@ class HGCalWaferInfo : public edm::one::EDAnalyzer<> {
5555};
5656
5757HGCalWaferInfo::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
6161void 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