Skip to content

Commit

Permalink
Merge pull request #33279 from bsunanda/Phase2-hgx279x
Browse files Browse the repository at this point in the history
Phase2-hgx279x Remove some overlap (HGCal) and modify debug statements for quick comparison
  • Loading branch information
cmsbuild authored Mar 27, 2021
2 parents a9cd560 + 6946fc6 commit ffe2963
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 36 deletions.
6 changes: 3 additions & 3 deletions Geometry/HGCalCommonData/data/hgcal/v11/hgcal.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../../../DetectorDescription/Schema/DDLSchema.xsd">
<DDDefinition>

<ConstantsSection label="hgcal.xml" eval="true">
<Constant name="WaferSize" value="166.4408*mm"/>
Expand Down Expand Up @@ -171,10 +171,10 @@
<ZSection z="[zHGCal2]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal5]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
</Polycone>
<Polycone name="HGCalHEsup2" startPhi="0*deg" deltaPhi="360*deg">
<ZSection z="[zHGCal5]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal7]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
</Polycone>
<Polycone name="HGCalHEsup3" startPhi="0*deg" deltaPhi="360*deg">
Expand Down
6 changes: 3 additions & 3 deletions Geometry/HGCalCommonData/data/hgcal/v11m20/hgcal.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../../../DetectorDescription/Schema/DDLSchema.xsd">
<DDDefinition>

<ConstantsSection label="hgcal.xml" eval="true">
<Constant name="WaferSize" value="166.4408*mm"/>
Expand Down Expand Up @@ -171,10 +171,10 @@
<ZSection z="[zHGCal2]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal5]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
</Polycone>
<Polycone name="HGCalHEsup2" startPhi="0*deg" deltaPhi="360*deg">
<ZSection z="[zHGCal5]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal7]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
</Polycone>
<Polycone name="HGCalHEsup3" startPhi="0*deg" deltaPhi="360*deg">
Expand Down
6 changes: 3 additions & 3 deletions Geometry/HGCalCommonData/data/hgcal/v11p20/hgcal.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../../../DetectorDescription/Schema/DDLSchema.xsd">
<DDDefinition>

<ConstantsSection label="hgcal.xml" eval="true">
<Constant name="WaferSize" value="166.4408*mm"/>
Expand Down Expand Up @@ -171,10 +171,10 @@
<ZSection z="[zHGCal2]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal5]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
</Polycone>
<Polycone name="HGCalHEsup2" startPhi="0*deg" deltaPhi="360*deg">
<ZSection z="[zHGCal5]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal7]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
</Polycone>
<Polycone name="HGCalHEsup3" startPhi="0*deg" deltaPhi="360*deg">
Expand Down
6 changes: 3 additions & 3 deletions Geometry/HGCalCommonData/data/hgcal/v12/hgcal.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../../../DetectorDescription/Schema/DDLSchema.xsd">
<DDDefinition>

<ConstantsSection label="hgcal.xml" eval="true">
<Constant name="WaferSize" value="166.4408*mm"/>
Expand Down Expand Up @@ -177,10 +177,10 @@
<ZSection z="[zHGCal2]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal5]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
</Polycone>
<Polycone name="HGCalHEsup2" startPhi="0*deg" deltaPhi="360*deg">
<ZSection z="[zHGCal5]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal7]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
</Polycone>
<Polycone name="HGCalHEsup3" startPhi="0*deg" deltaPhi="360*deg">
Expand Down
6 changes: 3 additions & 3 deletions Geometry/HGCalCommonData/data/hgcal/v13/hgcal.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../../../DetectorDescription/Schema/DDLSchema.xsd">
<DDDefinition>

<ConstantsSection label="hgcal.xml" eval="true">
<Constant name="WaferSize" value="166.4408*mm"/>
Expand Down Expand Up @@ -173,10 +173,10 @@
<ZSection z="[zHGCal2]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal1]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal3]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal5]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal2]" rMax="[rMinHGCalHEsil1]"/>
</Polycone>
<Polycone name="HGCalHEsup2" startPhi="0*deg" deltaPhi="360*deg">
<ZSection z="[zHGCal5]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal6]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
<ZSection z="[zHGCal7]" rMin="[rMinHGCal3]" rMax="[rMinHGCalHEmix1]"/>
</Polycone>
<Polycone name="HGCalHEsup3" startPhi="0*deg" deltaPhi="360*deg">
Expand Down
2 changes: 1 addition & 1 deletion Geometry/HGCalCommonData/plugins/DDHGCalCell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void DDHGCalCell::execute(DDCompactView& cpv) {
cpv.position(glog2, glog1, 1, tran, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalCell: " << glog2.name() << " number 1 position in " << glog1.name() << " at "
<< tran << " with " << rot;
<< tran << " with no rotation";
#endif

static constexpr int ir0[] = {0, 1, 0};
Expand Down
4 changes: 2 additions & 2 deletions Geometry/HGCalCommonData/plugins/DDHGCalEEAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void DDHGCalEEAlgo::constructLayers(const DDLogicalPart& module, DDCompactView&
++copyNumber_[ii];
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalEEAlgo: " << glog.name() << " number " << copy << " positioned in "
<< module.name() << " at " << r1 << " with " << rot;
<< module.name() << " at " << r1 << " with no rotation";
#endif
zz += hthick;
} // End of loop over layers in a block
Expand Down Expand Up @@ -410,7 +410,7 @@ void DDHGCalEEAlgo::positionSensitive(const DDLogicalPart& glog,
#ifdef EDM_ML_DEBUG
++ntype[type];
edm::LogVerbatim("HGCalGeom") << " DDHGCalEEAlgo: " << name << " number " << copy << " positioned in "
<< glog.ddname() << " at " << tran << " with " << rotation;
<< glog.ddname() << " at " << tran << " with no rotation";
#endif
}
}
Expand Down
4 changes: 2 additions & 2 deletions Geometry/HGCalCommonData/plugins/DDHGCalEEFileAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void DDHGCalEEFileAlgo::constructLayers(const DDLogicalPart& module, DDCompactVi
++copyNumber_[ii];
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalEEFileAlgo: " << glog.name() << " number " << copy << " positioned in "
<< module.name() << " at " << r1 << " with " << rot;
<< module.name() << " at " << r1 << " with no rotation";
#endif
zz += hthick;
} // End of loop over layers in a block
Expand Down Expand Up @@ -391,7 +391,7 @@ void DDHGCalEEFileAlgo::positionSensitive(
++ntype[type];
edm::LogVerbatim("HGCalGeom") << " DDHGCalEEFileAlgo: " << name << " number " << copy << " type " << layertype
<< ":" << type << " positioned in " << glog.ddname() << " at " << tran
<< " with " << rotation;
<< " with no rotation";
#endif
}
}
Expand Down
12 changes: 6 additions & 6 deletions Geometry/HGCalCommonData/plugins/DDHGCalHEAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ void DDHGCalHEAlgo::constructLayers(const DDLogicalPart& module, DDCompactView&
++copyNumber_[ii];
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEAlgo: " << glog.name() << " number " << copy << " positioned in "
<< module.name() << " at " << r1 << " with " << rot;
<< module.name() << " at " << r1 << " with no rotation";
#endif
zz += hthick;
} // End of loop over layers in a block
Expand Down Expand Up @@ -420,7 +420,7 @@ void DDHGCalHEAlgo::positionMix(const DDLogicalPart& glog,
cpv.position(glog1, glog, 1, tran, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEAlgo: " << glog1.name() << " number 1 positioned in " << glog.name()
<< " at " << tran << " with " << rot;
<< " at " << tran << " with no rotation";
#endif
double thickTot(0), zpos(-hthick);
for (unsigned int ly = 0; ly < layerTypeTop_.size(); ++ly) {
Expand Down Expand Up @@ -450,7 +450,7 @@ void DDHGCalHEAlgo::positionMix(const DDLogicalPart& glog,
cpv.position(glog2, glog1, copy, r1, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEAlgo: Position " << glog2.name() << " number " << copy << " in "
<< glog1.name() << " at " << r1 << " with " << rot;
<< glog1.name() << " at " << r1 << " with no rotation";
#endif
++copyNumberTop_[ii];
zpos += hthickl;
Expand All @@ -476,7 +476,7 @@ void DDHGCalHEAlgo::positionMix(const DDLogicalPart& glog,
cpv.position(glog1, glog, 1, tran, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEAlgo: " << glog1.name() << " number 1 positioned in " << glog.name()
<< " at " << tran << " with " << rot;
<< " at " << tran << " with no rotation";
#endif
thickTot = 0;
zpos = -hthick;
Expand Down Expand Up @@ -507,7 +507,7 @@ void DDHGCalHEAlgo::positionMix(const DDLogicalPart& glog,
cpv.position(glog2, glog1, copy, r1, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEAlgo: Position " << glog2.name() << " number " << copy << " in "
<< glog1.name() << " at " << r1 << " with " << rot;
<< glog1.name() << " at " << r1 << " with no rotation";
#endif
if (layerSenseBot_[ly] != 0) {
#ifdef EDM_ML_DEBUG
Expand Down Expand Up @@ -591,7 +591,7 @@ void DDHGCalHEAlgo::positionSensitive(const DDLogicalPart& glog,
#ifdef EDM_ML_DEBUG
++ntype[type];
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEAlgo: " << name << " number " << copy << " positioned in "
<< glog.ddname() << " at " << tran << " with " << rotation;
<< glog.ddname() << " at " << tran << " with no rotation";
#endif
}
}
Expand Down
12 changes: 6 additions & 6 deletions Geometry/HGCalCommonData/plugins/DDHGCalHEFileAlgo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ void DDHGCalHEFileAlgo::constructLayers(const DDLogicalPart& module, DDCompactVi
++copyNumber_[ii];
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog.name() << " number " << copy << " positioned in "
<< module.name() << " at " << r1 << " with " << rot;
<< module.name() << " at " << r1 << " with no rotation";
#endif
zz += hthick;
} // End of loop over layers in a block
Expand Down Expand Up @@ -407,7 +407,7 @@ void DDHGCalHEFileAlgo::positionMix(const DDLogicalPart& glog,
cpv.position(glog1, glog, 1, tran, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog1.name() << " number 1 positioned in " << glog.name()
<< " at " << tran << " with " << rot;
<< " at " << tran << " with no rotation";
#endif
double thickTot(0), zpos(-hthick);
for (unsigned int ly = 0; ly < layerTypeTop_.size(); ++ly) {
Expand Down Expand Up @@ -437,7 +437,7 @@ void DDHGCalHEFileAlgo::positionMix(const DDLogicalPart& glog,
cpv.position(glog2, glog1, copy, r1, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Position " << glog2.name() << " number " << copy << " in "
<< glog1.name() << " at " << r1 << " with " << rot;
<< glog1.name() << " at " << r1 << " with no rotation";
#endif
++copyNumberTop_[ii];
zpos += hthickl;
Expand All @@ -463,7 +463,7 @@ void DDHGCalHEFileAlgo::positionMix(const DDLogicalPart& glog,
cpv.position(glog1, glog, 1, tran, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: " << glog1.name() << " number 1 positioned in " << glog.name()
<< " at " << tran << " with " << rot;
<< " at " << tran << " with no rotation";
#endif
thickTot = 0;
zpos = -hthick;
Expand Down Expand Up @@ -494,7 +494,7 @@ void DDHGCalHEFileAlgo::positionMix(const DDLogicalPart& glog,
cpv.position(glog2, glog1, copy, r1, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalHEFileAlgo: Position " << glog2.name() << " number " << copy << " in "
<< glog1.name() << " at " << r1 << " with " << rot;
<< glog1.name() << " at " << r1 << " with no rotation";
#endif
if (layerSenseBot_[ly] != 0) {
#ifdef EDM_ML_DEBUG
Expand Down Expand Up @@ -581,7 +581,7 @@ void DDHGCalHEFileAlgo::positionSensitive(
++ntype[type];
edm::LogVerbatim("HGCalGeom") << " DDHGCalHEFileAlgo: " << name << " number " << copy << " type " << layertype
<< ":" << type << " positioned in " << glog.ddname() << " at " << tran
<< " with " << rotation;
<< " with no rotation";
#endif
}
}
Expand Down
2 changes: 1 addition & 1 deletion Geometry/HGCalCommonData/plugins/DDHGCalWafer8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void DDHGCalWafer8::execute(DDCompactView& cpv) {
cpv.position(DDName(cellNames_[cell]), glog, copy, tran, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalWafer8: " << cellNames_[cell] << " number " << copy << " position in "
<< glog.name() << " at " << tran << " with " << rot;
<< glog.name() << " at " << tran << " with no rotation";
#endif
}
}
Expand Down
7 changes: 4 additions & 3 deletions Geometry/HGCalCommonData/plugins/DDHGCalWaferF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void DDHGCalWaferF::execute(DDCompactView& cpv) {
cpv.position(glogs[i], glogM, copyNumber_[i], tran0, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalWaferF: " << glogs[i].name() << " number " << copyNumber_[i]
<< " positioned in " << glogM.name() << " at " << tran0 << " with " << rot;
<< " positioned in " << glogM.name() << " at " << tran0 << " with no rotation";
#endif
++copyNumber_[i];
zi += layerThick_[i];
Expand Down Expand Up @@ -200,8 +200,9 @@ void DDHGCalWaferF::execute(DDCompactView& cpv) {
int copy = HGCalTypes::packCellTypeUV(cellType_, u, v);
cpv.position(DDName(cellNames_[cell]), glogs[i], copy, tran, rot);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HGCalGeom") << "DDHGCalWaferF: " << cellNames_[cell] << " number " << copy
<< " positioned in " << glogs[i].name() << " at " << tran << " with " << rot;
edm::LogVerbatim("HGCalGeom")
<< "DDHGCalWaferF: " << cellNames_[cell] << " number " << copy << " positioned in " << glogs[i].name()
<< " at " << tran << " with no rotation";
#endif
}
}
Expand Down

0 comments on commit ffe2963

Please sign in to comment.