]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliAttrib.cxx
Adding AliEn environment
[u/mrichter/AliRoot.git] / RALICE / AliAttrib.cxx
index fb231c7ecb87a7db95f9764ab4768b87b3842cf9..bedbcc7c94932069dc3fb600609e81c504789aad 100644 (file)
 // Example :
 // ---------
 // AliAttrib a;
-// a.SetGain(250.7);
 // a.SetSlotName("PMT amplitude in Volt");
-// a.SetGain(1340,3);
+// a.SetGain(250.7);
+// a.SetSlotName("Time of flight in ns",2);
+// a.SetOffset(-22.5,2);
 // a.SetSlotName("PMT amplitude in ADC",3);
+// a.SetGain(1340,3);
+// a.SetSlotName("TDC",4);
+// a.SetOffset(10.75,"TDC");
 // a.SetEdgeOn(3);
-// a.SetOffset(-22.5,2);
-// a.SetSlotName("Time of flight in ns",2);
 // a.SetDead(1);
 // a.List();
 //
@@ -1046,7 +1048,11 @@ Int_t AliAttrib::GetSlotIndex(TString name) const
   {
    TObjString* so=(TObjString*)fNames->At(i);
    if (so) s=so->GetString();
-   if (s==name) index=i+1;
+   if (s==name)
+   {
+    index=i+1;
+    break;
+   }
   }
  }
  return index;