@@ -58,6 +58,7 @@ HGCalDDDConstants::HGCalDDDConstants(const HGCalParameters* hp, const std::strin
5858 if (mode_ == HGCalGeometryMode::TrapezoidFineCell) {
5959 hgcassette_.setParameter (hgpar_->cassettes_ , hgpar_->cassetteShift_ , false );
6060 hgcassette_.setParameterScint (hgpar_->cassetteShiftTile_ );
61+ hgcassette_.setParameterRetract (hgpar_->cassetteRetractTile_ );
6162 } else {
6263 hgcassette_.setParameter (hgpar_->cassettes_ , hgpar_->cassetteShift_ , true );
6364 }
@@ -227,7 +228,8 @@ std::array<int, 3> HGCalDDDConstants::assignCellTrap(float x, float y, float z,
227228 if (cassetteMode ()) {
228229 int nphi = (hgpar_->scintFine (indx.first )) ? hgpar_->nphiFineCassette_ : hgpar_->nphiCassette_ ;
229230 int cassette = HGCalTileIndex::tileCassette (iphi, hgpar_->phiOffset_ , nphi, hgpar_->cassettes_ );
230- auto cshift = hgcassette_.getShift (layer, -1 , cassette, true );
231+ auto cshift = (mode_ == HGCalGeometryMode::TrapezoidFineCell) ? hgcassette_.getShiftScnt ((indx.first + 1 ), -1 , phi)
232+ : hgcassette_.getShift (layer, -1 , cassette, true );
231233#ifdef EDM_ML_DEBUG
232234 std::ostringstream st1;
233235 st1 << " Cassette " << cassette << " Shift " << cshift.first << " :" << cshift.second << " Original " << xx << " :"
@@ -1034,7 +1036,8 @@ std::pair<float, float> HGCalDDDConstants::locateCellTrap(
10341036 debug = true ;
10351037 if (debug)
10361038 edm::LogVerbatim (" HGCalGeom" ) << " locateCellTrap:: Input " << lay << " :" << irad << " :" << iphi << " :" << zside
1037- << " :" << reco << " :" << indx.first ;
1039+ << " :" << reco << " :" << indx.first << " First Layer " << hgpar_->firstLayer_ << " :"
1040+ << hgpar_->firstMixedLayer_ ;
10381041#endif
10391042 if (indx.first >= 0 ) {
10401043 int ir = std::abs (irad);
@@ -1076,7 +1079,9 @@ std::pair<float, float> HGCalDDDConstants::locateCellTrap(
10761079 if (cassetteMode ()) {
10771080 int nphi = (hgpar_->scintFine (indx.first )) ? hgpar_->nphiFineCassette_ : hgpar_->nphiCassette_ ;
10781081 int cassette = HGCalTileIndex::tileCassette (iphi, hgpar_->phiOffset_ , nphi, hgpar_->cassettes_ );
1079- auto cshift = hgcassette_.getShift (lay, -1 , cassette, true );
1082+ auto cshift = (mode_ == HGCalGeometryMode::TrapezoidFineCell)
1083+ ? hgcassette_.getShiftScnt ((indx.first + 1 ), -1 , phi)
1084+ : hgcassette_.getShift (lay, -1 , cassette, true );
10801085#ifdef EDM_ML_DEBUG
10811086 std::ostringstream st1;
10821087 if (debug)
0 commit comments