]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPainterPlotSelector.cxx
Macro to be attached to the analysis train
[u/mrichter/AliRoot.git] / MUON / AliMUONPainterPlotSelector.cxx
index a5bf778e90e64c74f4f39b75558280c684ad7735..0a58b259784b5a42b16d1681c76ff97229d8ff7f 100644 (file)
@@ -30,7 +30,7 @@
 #include "AliMUONPainterGroup.h"
 #include "AliMUONPainterInterfaceHelper.h"
 #include "AliMUONPainterMatrix.h"
-#include "AliMUONPainterRegistry.h"
+#include "AliMUONPainterDataRegistry.h"
 #include "AliMUONVPainter.h"
 #include "AliMUONVTrackerData.h"
 #include "AliLog.h"
@@ -62,7 +62,7 @@ fCurrentDimension(-1)
 
   fDataSourceNames = new TGButtonGroup(this,"Sources");
       
-  AliMUONPainterRegistry* reg = AliMUONPainterRegistry::Instance();
+  AliMUONPainterDataRegistry* reg = AliMUONPainterDataRegistry::Instance();
   
   reg->Connect("DataSourceWasRegistered(AliMUONVTrackerData*)",
                "AliMUONPainterPlotSelector",
@@ -142,7 +142,7 @@ AliMUONPainterPlotSelector::CreateDimensionButtons(const char* dataSourceName)
   
   AliDebug(1,Form("Creating dimension buttons for dataSource %s",dataSourceName));
   
-  AliMUONVTrackerData* data = AliMUONPainterRegistry::Instance()->DataSource(dataSourceName);
+  AliMUONVTrackerData* data = AliMUONPainterDataRegistry::Instance()->DataSource(dataSourceName);
 
   TGButtonGroup* bg = new TGButtonGroup(this,0,3,5,0,dataSourceName);
   
@@ -585,6 +585,13 @@ AliMUONPainterPlotSelector::UpdateTypeButton()
                { 
                        padButton->SetEnabled(fCurrentData->IsChannelLevelEnabled());
                }
+               TGTextButton* manuButton = static_cast<TGTextButton*>
+               (AliMUONPainterInterfaceHelper::FindButtonByName(*fTypes,"MANU"));
+               if (manuButton) 
+               { 
+                       manuButton->SetEnabled(fCurrentData->IsManuLevelEnabled());
+               }
+    
        }
        
   TGTextButton* button = static_cast<TGTextButton*>