Skip to content

Commit

Permalink
Merge pull request #960 from ktf/zero-sized-vla
Browse files Browse the repository at this point in the history
Misc fixes -- Zero sized VLA
  • Loading branch information
ktf committed Oct 2, 2013
2 parents 09f5535 + ed1dedc commit 3a6529b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RecoLocalMuon/DTSegment/src/DTSegmentUpdator.cc
Expand Up @@ -438,6 +438,9 @@ void DTSegmentUpdator::rejectBadHits(DTChamberRecSegment2D* phiSeg) const {
float Sxy = 0.;

size_t N = x.size();

if (N == 0)
return;

for(size_t i = 0; i < N;++i){
Sx += x.at(i);
Expand Down
Expand Up @@ -147,6 +147,7 @@ induceVector(const SiChargeCollectionDrifter::collection_type& collection_points
const StripTopology& topology = dynamic_cast<const StripTopology&>(det.specificTopology());
const int Nstrips = topology.nstrips();

if (Nstrips == 0) return;

const int NP = collection_points.size();
if(0==NP) return;
Expand Down

0 comments on commit 3a6529b

Please sign in to comment.