Skip to content

Commit f587f6e

Browse files
authored
Merge pull request #49321 from bsunanda/Phase2-hgx364M
Phase2-hgx364M Avoid unnecessary printouts for normal execution
2 parents fe7c0ff + b152950 commit f587f6e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Geometry/HGCalCommonData/src/HGCalDDDConstants.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -823,15 +823,15 @@ bool HGCalDDDConstants::isValidHex8(int layer, int modU, int modV, int cellU, in
823823
bool HGCalDDDConstants::isValidTrap(int zside, int layer, int irad, int iphi) const {
824824
// Check validity for a layer|eta|phi of scintillator
825825
const auto& indx = getIndex(layer, true);
826-
//#ifdef EDM_ML_DEBUG
826+
#ifdef EDM_ML_DEBUG
827827
edm::LogWarning("HGCalGeomT") << "isValidTrap: Layer " << layer << " indx " << indx.first << ":"
828828
<< hgpar_->firstLayer_ << ":" << hgpar_->firstMixedLayer_;
829-
//#endif
829+
#endif
830830
if (indx.first < 0)
831831
return false;
832832
bool ok = ((hgpar_->scintValidRing(indx.first, irad)) && (iphi > 0) && (iphi <= hgpar_->scintCells(layer)));
833833
bool valid = ((ok && trapezoidFile()) ? tileExist(zside, layer, irad, iphi) : ok);
834-
//#ifdef EDM_ML_DEBUG
834+
#ifdef EDM_ML_DEBUG
835835
bool tileEx = trapezoidFile() ? tileExist(zside, layer, irad, iphi) : true;
836836
if (!valid)
837837
edm::LogWarning("HGCalGeomT") << "HGCalDDDConstants::isValidityTrap: Input " << zside << ":" << layer << ":" << irad
@@ -844,7 +844,7 @@ bool HGCalDDDConstants::isValidTrap(int zside, int layer, int irad, int iphi) co
844844
<< hgpar_->scintValidRing(indx.first, irad)
845845
<< " Range on phi 0:" << hgpar_->scintCells(layer) << " tileExist " << tileEx
846846
<< " Valid " << ok << ":" << tileExist(zside, layer, irad, iphi) << ":" << valid;
847-
//#endif
847+
#endif
848848
return valid;
849849
}
850850

@@ -1757,7 +1757,6 @@ void HGCalDDDConstants::waferFromPosition(const double x,
17571757
edm::LogVerbatim("HGCalGeom") << "waferFromPosition:: Layer " << layer << ":" << ll << " Rot " << rotx << " X " << x
17581758
<< ":" << xx << " Y " << y << ":" << yy << " side " << zside << " extend " << extend
17591759
<< " initial wafer index " << waferU << ":" << waferV;
1760-
;
17611760
double rmax = extend ? rmaxT_ : rmax_;
17621761
double hexside = extend ? hexsideT_ : hexside_;
17631762
if (waferin) {
@@ -1913,8 +1912,9 @@ void HGCalDDDConstants::waferFromPosition(const double x,
19131912
<< hexside;
19141913
}
19151914
}
1916-
edm::LogVerbatim("HGCalGeom") << "Input x:y:layer " << x << ":" << y << ":" << layer << " Wafer " << waferU << ":"
1917-
<< waferV << " Cell " << cellU << ":" << cellV << ":" << celltype << " wt " << wt;
1915+
if (debug)
1916+
edm::LogVerbatim("HGCalGeom") << "Input x:y:layer " << x << ":" << y << ":" << layer << " Wafer " << waferU << ":"
1917+
<< waferV << " Cell " << cellU << ":" << cellV << ":" << celltype << " wt " << wt;
19181918
}
19191919

19201920
bool HGCalDDDConstants::waferInLayer(int wafer, int lay, bool reco) const {

0 commit comments

Comments
 (0)