]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPainterPlotSelector.cxx
ALIROOT-5420 Changes for CDH v3
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterPlotSelector.cxx
index 0a58b259784b5a42b16d1681c76ff97229d8ff7f..8b7749f504f55533a21aed3cb845ff69346fbca3 100644 (file)
@@ -409,9 +409,8 @@ AliMUONPainterPlotSelector::SourceButtonWasClicked(Int_t id)
   TGButton* button = fDataSourceNames->GetButton(id);
   if ( !button ) 
   {
-    AliError(Form("Could not get DataSource button id=%d",id));
     StdoutToAliDebug(1,AliMUONPainterInterfaceHelper::Dump(*fDataSourceNames));
-    button->GetUserData(); // to trigger a crash so gdb is possible ;-)
+    AliFatal(Form("Could not get DataSource button id=%d",id));
   }
   
   AliMUONVTrackerData* data = reinterpret_cast<AliMUONVTrackerData*>(button->GetUserData());
@@ -591,6 +590,18 @@ AliMUONPainterPlotSelector::UpdateTypeButton()
                { 
                        manuButton->SetEnabled(fCurrentData->IsManuLevelEnabled());
                }
+               TGTextButton* busPatchButton = static_cast<TGTextButton*>
+               (AliMUONPainterInterfaceHelper::FindButtonByName(*fTypes,"BUSPATCH"));
+               if (busPatchButton) 
+               { 
+                       busPatchButton->SetEnabled(fCurrentData->IsBusPatchLevelEnabled());
+               }
+               TGTextButton* pcbButton = static_cast<TGTextButton*>
+               (AliMUONPainterInterfaceHelper::FindButtonByName(*fTypes,"PCB"));
+               if (pcbButton) 
+               { 
+                       pcbButton->SetEnabled(fCurrentData->IsPCBLevelEnabled());
+               }
     
        }