]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Add local buspatch number reading (Christian)
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Jul 2007 10:16:00 +0000 (10:16 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Jul 2007 10:16:00 +0000 (10:16 +0000)
MUON/mapping/AliMpDDLStore.cxx

index a083f883c042645e22bb62e816f0413467d0b4fa..24d5bdf56aa507d459605dea806d48353e19a817 100644 (file)
@@ -671,7 +671,19 @@ Bool_t AliMpDDLStore::SetBusPatchLength()
        } while(line[0] == '#');
 
        TString tmp(AliMpHelper::Normalize(line));
-       Float_t length = tmp.Atof();
+
+       TObjArray* stringList = tmp.Tokenize(TString(" "));
+       
+       TString sLocalBusId = ((TObjString*)stringList->At(0))->GetString();
+       Int_t   localBusId  = sLocalBusId.Atoi();
+
+       TString sLength = ((TObjString*)stringList->At(1))->GetString();
+       Float_t length  = sLength.Atof();
+
+       delete stringList;
+
+       if (localBusId != iBusPatch + 1)
+           AliWarning(Form("Wrong local buspatch id %d instead of %d", iBusPatch+1, localBusId));
 
        Int_t busPatchId = ddl->GetBusPatchId(iBusPatch);
        AliMpBusPatch* busPatch = GetBusPatch(busPatchId);