]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing (?) the HV display
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Nov 2009 12:48:48 +0000 (12:48 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 10 Nov 2009 12:48:48 +0000 (12:48 +0000)
MUON/AliMUONTrackerConditionDataMaker.cxx

index b63731baa7871086c28fd94ca224d15c1d4fb925..3f4ba6c30ad1dd56b446c181b76bdd726906aca4 100644 (file)
@@ -235,13 +235,13 @@ AliMUONTrackerConditionDataMaker::CreateHVStore(TMap& m)
     
     Int_t hvIndex = hvNamer.DCSIndexFromDCSAlias(name.Data());
 
-    if ( hvIndex >= 0 )
+    Int_t detElemId = hvNamer.DetElemIdFromDCSAlias(name.Data());
+    
+    if ( hvIndex >= 0 && detElemId < 0 )
     {
       // skip switches
       continue;      
     }
-
-    Int_t detElemId = hvNamer.DetElemIdFromDCSAlias(name.Data());
     
     if ( !AliMpDEManager::IsValidDetElemId(detElemId) )
     {
@@ -249,9 +249,15 @@ AliMUONTrackerConditionDataMaker::CreateHVStore(TMap& m)
                          detElemId,name.Data()));
       continue;
     }
+
+    if ( hvIndex > 1 && AliMpDEManager::GetStationType(detElemId) == AliMp::kStation12 )
+    {
+      // skip all but first sector (as we'll loop on the 3 sectors below
+      continue;      
+    }
     
     Int_t nPCBs = hvNamer.NumberOfPCBs(detElemId);
-    Int_t nindex = nPCBs ? nPCBs : 1;
+    Int_t nindex = nPCBs ? nPCBs : 3;
     
     AliMpDetElement* de = AliMpDDLStore::Instance()->GetDetElement(detElemId);