Index: trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc
===================================================================
--- trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc	(revision 543)
+++ trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc	(revision 544)
@@ -31,5 +31,5 @@
 
 // ================================================================================
-Bool_t MViewAdcSpectra::PedAdcSpectra ( Char_t *inputfile ) 
+Bool_t MViewAdcSpectra::AdcSpectra ( Char_t *inputfile, Char_t *treeName ) 
 {
   //   This job reads in the FADC data from all events and fills
@@ -37,5 +37,6 @@
   //
 
-  cout << "PedAdcSpectra:: Analyse the file " << inputfile << endl ;
+  cout << "PedAdcSpectra:: Analyse the tree " << treeName 
+       << "in the file  " << inputfile << endl ;
   
   // create a (empty) list of parameters which can be used by the tasks
@@ -69,5 +70,5 @@
   //    set up the tasks for this job
 
-  MReadTree *readin  =  new MReadTree ( inputfile, "Data") ; 
+  MReadTree *readin  =  new MReadTree ( inputfile, treeName ) ; 
   tasks->AddToList( readin ) ; 
 
Index: trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.h
===================================================================
--- trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.h	(revision 543)
+++ trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.h	(revision 544)
@@ -16,5 +16,5 @@
   ~MViewAdcSpectra() ; 
   
-  Bool_t PedAdcSpectra( Char_t *inputFile ) ; 
+  Bool_t AdcSpectra( Char_t *inputFile , Char_t *treeName ) ; 
 
   //  Bool_t CrAdcSpectra ( Char_t *inputFile ) ; 
Index: trunk/MagicSoft/Mars/mgui/MGDataCheckMain.cc
===================================================================
--- trunk/MagicSoft/Mars/mgui/MGDataCheckMain.cc	(revision 543)
+++ trunk/MagicSoft/Mars/mgui/MGDataCheckMain.cc	(revision 544)
@@ -293,5 +293,5 @@
 	      }      
 	      
-	      fViewAdc.PedAdcSpectra(fInputFile) ; 
+	      fViewAdc.AdcSpectra(fInputFile, "PedEvents" ) ; 
 
 	      break ; 
@@ -307,6 +307,6 @@
 	      }
 	      
-	      //	      fOctober.CrAdcSpectra(fInputFile) ; 
-
+	      fViewAdc.AdcSpectra(fInputFile, "Events" ) ; 
+	      
 	      break ; 
       
@@ -333,5 +333,5 @@
 	      }
 	      
-	      //	      fOctober.CrTdcSpectra(fInputFile) ; 
+	      
 
 	      break ; 
