+ if (!fCurrentData)
+ {
+ AliMUONPainterInterfaceHelper::SetState(*fTypes,kFALSE);
+ }
+ else
+ {
+ // disable levels that cannot be handled by this data
+ TGTextButton* padButton = static_cast<TGTextButton*>
+ (AliMUONPainterInterfaceHelper::FindButtonByName(*fTypes,"PAD"));
+ if (padButton)
+ {
+ padButton->SetEnabled(fCurrentData->IsChannelLevelEnabled());
+ }
+ TGTextButton* manuButton = static_cast<TGTextButton*>
+ (AliMUONPainterInterfaceHelper::FindButtonByName(*fTypes,"MANU"));
+ if (manuButton)
+ {
+ manuButton->SetEnabled(fCurrentData->IsManuLevelEnabled());
+ }
+
+ }
+