]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/mapping/AliMpTrigger.cxx
Using Min and Max from TMath
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpTrigger.cxx
index 40473a990d271c40ff424ab20d1162c8ac85bafc..f6ba6bdab0fbeb657d1ec04cb743ec043ade9182 100644 (file)
@@ -137,9 +137,9 @@ AliMpTrigger::AdoptLayer(AliMpSlat* slat)
   // the slat segmentation will be the owner of the slat, and will delete
   // it when it'll be deleted itself
   fSlatSegmentations.Add(new AliMpSlatSegmentation(slat,owner));
-  fMaxNofPadsY = std::max(slat->GetMaxNofPadsY(),fMaxNofPadsY);
-  fDX = std::max(fDX,slat->DX());
-  fDY = std::max(fDY,slat->DY());
+  fMaxNofPadsY = TMath::Max(slat->GetMaxNofPadsY(),fMaxNofPadsY);
+  fDX = TMath::Max(fDX,slat->DX());
+  fDY = TMath::Max(fDY,slat->DY());
   return kTRUE;
 }