Skip to content
Snippets Groups Projects
Commit e3971c33 authored by Shaun Roe's avatar Shaun Roe Committed by Vakhtang Tsulaia
Browse files

22.0-cppcheck-InDetTrackingGeometry

parent 7c95b060
No related branches found
No related tags found
8 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46538Draft: Added missing xAOD::TrigConfKeys from DESDM_MCP,!4648622.0-cppcheck-InDetTrackingGeometry
...@@ -592,7 +592,7 @@ const Trk::TrackingVolume* InDet::StagedTrackingGeometryBuilder::createTrackingV ...@@ -592,7 +592,7 @@ const Trk::TrackingVolume* InDet::StagedTrackingGeometryBuilder::createTrackingV
if (!ringSet.size() || zPos>ringSet.back()->surfaceRepresentation().center().z()) ringSet.push_back(ring); if (!ringSet.size() || zPos>ringSet.back()->surfaceRepresentation().center().z()) ringSet.push_back(ring);
else { else {
std::vector<const Trk::Layer*>::iterator lit = ringSet.begin(); std::vector<const Trk::Layer*>::iterator lit = ringSet.begin();
while (lit!=ringSet.end() && zPos>(*lit)->surfaceRepresentation().center().z()) lit++; while (lit!=ringSet.end() && zPos>(*lit)->surfaceRepresentation().center().z()) ++lit;
ringSet.insert(lit,ring); ringSet.insert(lit,ring);
} }
} }
......
...@@ -32,8 +32,8 @@ ...@@ -32,8 +32,8 @@
#include "StoreGate/ReadCondHandle.h" #include "StoreGate/ReadCondHandle.h"
#include <stdlib.h> #include <cstdlib>
#include <string.h> #include <string>
#include <vector> #include <vector>
/** Constructor */ /** Constructor */
...@@ -255,7 +255,7 @@ void GetDetectorPositions::writeSimpleTRTPositions(){ ...@@ -255,7 +255,7 @@ void GetDetectorPositions::writeSimpleTRTPositions(){
std::vector<Identifier>::const_iterator trtStrawLayIt = m_TRTHelper->straw_layer_begin(); std::vector<Identifier>::const_iterator trtStrawLayIt = m_TRTHelper->straw_layer_begin();
std::vector<Identifier>::const_iterator trtStrawLayItE = m_TRTHelper->straw_layer_end(); std::vector<Identifier>::const_iterator trtStrawLayItE = m_TRTHelper->straw_layer_end();
for(; trtStrawLayIt != trtStrawLayItE; trtStrawLayIt++ ) { for(; trtStrawLayIt != trtStrawLayItE; ++trtStrawLayIt ) {
writeTRTPositions(*trtStrawLayIt); writeTRTPositions(*trtStrawLayIt);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment