Index: /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C
===================================================================
--- /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C	(revision 13538)
+++ /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C	(revision 13539)
@@ -191,14 +191,14 @@
         const char*     drsfilename         = "../../data/2011/11/09/20111109_003.drs.fits.gz",
         const char*     OutRootFileName     = "../../analysis/FPulseTemplate/20111109_006/20111109_006.pulses.root",
-        bool            ProduceGraphic      = false,
+        bool            ProduceGraphic      = true,
         bool            spikeDebug          = false,
         bool            debugPixel          = false,
         bool            testmode            = false,
         bool            saveResults         = false,
-        int             verbosityLevel      = 6,        // different verbosity levels can be implemented here
+        int             verbosityLevel      = 1,        // different verbosity levels can be implemented here
         int             firstevent          = 1,        // Hast to be between 1 and infinity NOT 0!!!!
         int             nevents             = -1,
         int             firstpixel          = 0,
-        int             npixel              = -1,
+        int             npixel              = 1000,
         int             sampleSetSize       = 40,
         int             maxPulseOrder       = 3,
@@ -396,7 +396,7 @@
 // Initialize Pixel
 //----------------------------------------------------------------------------
-    Pixel** pixel = new Pixel*[npixel-firstpixel];
-
-    for (int i = 0 ; i < (npixel-firstpixel); i++)
+    Pixel** pixel = new Pixel*[NPIX];
+
+    for (int i = 0 ; i < NPIX; i++)
     {
         pixel[i] = NULL;
@@ -505,7 +505,4 @@
                 // spikes are: 1 or 2 slice wide, positive non physical artifacts
                 if (verbosityLevel > 2) cout << "...removeing Spikes";
-                cout << "blaaa" << endl;
-                cout << "blaaa" << endl;
-
                 removeSpikes (Ameas, Vcorr);
                 if (verbosityLevel > 2) cout << "...done " << endl;
@@ -525,5 +522,4 @@
                 sliding_avg(Vcfd, Vcfd2, avg2);
                 if (verbosityLevel > 2) cout << "...done " << endl;
-                cout << "miauuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu" << endl;
 
 //-------------------------------------
@@ -548,7 +544,9 @@
 // Fill Overlay Histos
 //-----------------------------------------------------------------------------
-                cout << endl << "Filling Histograms of Pixel# [Set] " << pixelID
-                     << " Pixel# [Got] " << pixel[pixelID]->mChid
-                     << " Adress " << &pixel[pixelID] << endl;
+                if (verbosityLevel > 2)
+                {
+                    cout << endl << "Filling Histograms of Pixel# [Set] " << pixelID
+                         << " Pixel# [Got] " << pixel[pixelID]->mChid;
+                }
 //                FillHistograms(
 //                            pixel[pixelID],
@@ -560,5 +558,4 @@
 //                            verbosityLevel
 //                            );
-                cout << endl << "got out of fillhisto" << endl;
 //-----------------------------------------------------------------------------
 // Spike Debug
@@ -617,8 +614,4 @@
 //-------------------------------------
 
-            cout << endl << "Last Pixel# [Set] " << (firstPixelOfSample + sampleSetSize-1);
-            cout << " Pixel# [Got] " << pixel[firstPixelOfSample + sampleSetSize-1]->mChid
-                 << " Adress " << &pixel[firstPixelOfSample + sampleSetSize-1]
-                 << " Adress [Got]" << &pixel[firstPixelOfSample + sampleSetSize-1]->mChid;
 
         }//End of Loop over Events
@@ -661,7 +654,9 @@
 
             //Save Histograms of Pixels into Output rootfile
-            cout << endl << "Saving Pixel# [Set] " << pixelID
-                 << " Pixel# [Got] " << pixel[pixelID]->mChid
-                 << " Adress " << &pixel[pixelID];
+            if (verbosityLevel > 2)
+            {
+                cout << endl << "Saving Pixel# [Set] " << pixelID
+                 << " Pixel# [Got] " << pixel[pixelID]->mChid;
+            }
             pixel[pixelID]->SavePixelHistograms( OutRootFileName, saveResults );
 
@@ -680,8 +675,9 @@
             }
 
-            cout << endl << "Deleting Pixel# [Set] " << pixelID
-                 << " Pixel# [Got] " << pixel[pixelID]->mChid
-                 << " Adress " << &pixel[pixelID]
-                 << " ChidAdress " << &pixel[pixelID]->mChid ;
+            if (verbosityLevel > 2)
+            {
+                cout << endl << "Deleting Pixel# [Set] " << pixelID
+                     << " Pixel# [Got] " << pixel[pixelID]->mChid;
+            }
             delete pixel[pixelID];
 
