Skip to content

Commit

Permalink
Warning fixed: variable shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado authored and andresailer committed Oct 4, 2023
1 parent c32ddb2 commit 4c80cec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions detector/calorimeter/HCalTileBarrel_o1_v01_geo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,16 +198,16 @@ static dd4hep::Ref_t createHCal(dd4hep::Detector& lcdd, xml_det_t xmlDet, dd4hep
}

// second z loop (place sequences in layer)
std::vector<dd4hep::PlacedVolume> sequences;
std::vector<dd4hep::PlacedVolume> sq_vector;

for (uint numSeq=0; numSeq < numSequencesZ; numSeq++){
double zOffset = - dzDetector + (2 * numSeq + 1) * (dzSequence * 0.5);
dd4hep::Position tileSequencePosition(0, 0, zOffset);
dd4hep::PlacedVolume placedTileSequenceVolume = layerVolume.placeVolume(tileSequenceVolume, tileSequencePosition);
placedTileSequenceVolume.addPhysVolID("row", numSeq);
sequences.push_back(placedTileSequenceVolume);
sq_vector.push_back(placedTileSequenceVolume);
}
seqInLayers.push_back(sequences);
seqInLayers.push_back(sq_vector);

}

Expand Down

0 comments on commit 4c80cec

Please sign in to comment.