Index: fact/tools/rootmacros/example.C
===================================================================
--- fact/tools/rootmacros/example.C	(revision 12718)
+++ fact/tools/rootmacros/example.C	(revision 12719)
@@ -9,4 +9,7 @@
 #include <TStyle.h>     // in order to set gStyle->SetPallette(1,0);
 #include <TCanvas.h>    // well ..we are going to show some plots, right?
+#include <TTimer.h>     // dunno
+#include <Getline.h>    // well ... for Getline()
+#include <TFile.h>      // for root file handling
 #include <TH1F.h>       // we will use these Histograms
 
@@ -30,5 +33,4 @@
 // contains implementation of std FIR filters for vector<float> and
 // a simple sldig average filter, which is not FIR.
-#include "factfir.h"
 #include "factfir.C"
 
@@ -63,5 +65,6 @@
 TH1F* hWavelet = NULL;              // this we use for plotting the Wavelet
 TCanvas *cExample = NULL;
-// The following two functions were introduced by Werner.
+TObjArray hList;
+// The following two functions were introduced by Werner
 // BookHistos() creates histograms and takes care of settings like
 // Binning
@@ -81,10 +84,10 @@
     int firstpixel                  = 0,
     int npixel                      = -1,
-    bool Debug                      = false,
+    bool Debug                      = true,
     int verbosityLevel              = 1,
     bool ProduceGraphic             = true
 	)
 {
-
+bool breakout = false;
 
 cout << "I AM NOT YET TESTED ... DO NOT USE ME" << endl;
@@ -94,7 +97,7 @@
 gROOT->SetStyle("Plain");   // don't know
 
-    if (spikeDebug){
-        cFiltered = new TCanvas("cFiltered","filtered DRS Waveforms",410,410,400,400);
-        cFiltered->Divide(1, 4);
+    if ( Debug ){
+        cExample = new TCanvas("cFiltered","filtered DRS Waveforms",410,410,400,400);
+        cExample->Divide(1, 4);
     }
 
@@ -172,13 +175,13 @@
 
             if ( Debug ){
-                hWavelet.GetXaxis()->Set(Wavelet.size() , -0.5 , Wavelet.size()-0.5);
+                hWavelet->GetXaxis()->Set(Wavelet.size() , -0.5 , Wavelet.size()-0.5);
 
                 for ( unsigned int sl = 0; sl < RegionOfInterest; sl++){
-                    hWavelet.SetBinContent(sl, Wavelet[sl]);
+                    hWavelet->SetBinContent(sl, Wavelet[sl]);
                 }
 
                 cExample->cd(1);
                 gPad->SetGrid();
-                hWavelet.Draw();
+                hWavelet->Draw();
                 cExample->Update();
 
@@ -218,10 +221,4 @@
     hWavelet->GetYaxis()->SetTitle( "amplitude in mV" );
     hList.Add(hWavelet);
-
-    hDom = new TH1F("hDom", "test", Wavelet.size(), -0.5, Wavelet.size()-0.5 );
-    hDom->GetXaxis()->SetTitle( "time in slices" );
-    hDom->GetYaxis()->SetTitle( "amplitude in mV" );
-    hList.Add(hDom);
-
 }
 
