]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONVGeometryBuilder.cxx
new task to find jet trigger candidates (loop over EMCal L1 patches over threshold...
[u/mrichter/AliRoot.git] / MUON / AliMUONVGeometryBuilder.cxx
index 1ae1432e36a09588617c6ff4c5c9335499d7b191..74f3538b363799a18459e60d0b611dacd2b79592 100644 (file)
@@ -457,7 +457,7 @@ void  AliMUONVGeometryBuilder::RebuildSVMaps(Bool_t withEnvelopes) const
         std::string ePath = ComposePath(eName, envelope->GetCopyNo()).Data();
          std::string::size_type ePathPos = path0.find(ePath);
          if ( ePathPos != std::string::npos )
-           path0.erase(path0.find(ePath), ePath.size());
+           path0.erase(ePathPos, ePath.size());
       }
 
       if ( ! envelope->IsVirtual() )