]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDpropagationLayer.cxx
Protection reinforced
[u/mrichter/AliRoot.git] / TRD / AliTRDpropagationLayer.cxx
index 93d088f25995dd21a4332f6da6fc4d1224adafeb..b8df200e1e747d900aadb6b8885daa920c48674a 100644 (file)
@@ -113,8 +113,8 @@ AliTRDpropagationLayer::AliTRDpropagationLayer(const AliTRDpropagationLayer &p)
   :TObject((TObject&)p)
   ,fN(p.fN)
   ,fSec(p.fSec)
-  ,fClusters(0x0)
-  ,fIndex(0x0)
+  ,fClusters(NULL)
+  ,fIndex(NULL)
   ,fX(p.fX)
   ,fdX(p.fdX)
   ,fRho(p.fRho)
@@ -220,22 +220,22 @@ void AliTRDpropagationLayer::Copy(TObject &o) const
 }
 
 //_____________________________________________________________________________
-void AliTRDpropagationLayer::SetZ(Double_t *center, Double_t *w, Double_t *wsensitive )
+void AliTRDpropagationLayer::SetZ(Double_t * const center, Double_t * const w, Double_t * const wsensitive )
 {
   //
   // Set centers and the width of sectors
   //
 
-  for (Int_t icham = 0; icham < AliTRDgeometry::kNcham; icham++) {
-    fZc[icham]            = center[icham];  
-    fZmax[icham]          = w[icham];
-    fZmaxSensitive[icham] = wsensitive[icham];
+  for (Int_t istack = 0; istack < AliTRDgeometry::kNstack; istack++) {
+    fZc[istack]            = center[istack];  
+    fZmax[istack]          = w[istack];
+    fZmaxSensitive[istack] = wsensitive[istack];
   }  
 
 }
 
 //_____________________________________________________________________________
-void AliTRDpropagationLayer::SetHoles(Bool_t *holes)
+void AliTRDpropagationLayer::SetHoles(Bool_t * const holes)
 {
   //
   // Set centers and the width of sectors
@@ -243,9 +243,9 @@ void AliTRDpropagationLayer::SetHoles(Bool_t *holes)
 
   fHole = kFALSE;
 
-  for (Int_t icham = 0; icham < AliTRDgeometry::kNcham; icham++) {
-    fIsHole[icham] = holes[icham]; 
-    if (holes[icham]) {
+  for (Int_t istack = 0; istack < AliTRDgeometry::kNstack; istack++) {
+    fIsHole[istack] = holes[istack]; 
+    if (holes[istack]) {
       fHole = kTRUE;
     }
   }