Index: fact/tools/rootmacros/PulseTemplates/pixel.h
===================================================================
--- fact/tools/rootmacros/PulseTemplates/pixel.h	(revision 13473)
+++ fact/tools/rootmacros/PulseTemplates/pixel.h	(revision 13474)
@@ -23,4 +23,6 @@
 // PROJECT INCLUDES
 //
+//#include "rootfilehandler.h"
+//#include "rootfilehandler.C"
 
 // LOCAL INCLUDES
@@ -40,12 +42,12 @@
 //    Pixel(int pixelID);
     Pixel(
-            int pixelID         = 0,
-            int maxPulsorder    = 1,
-            int verbosityLevel  = 0,
-            int pixelOverlayXaxisLeft,
-            int pixelOverlayXaxisRight,
-            int bSLMean,
-            int gainMean,
-            const char *options = ""
+            int pixelID                 = 0,
+            int maxPulsorder            = 1,
+            int verbosityLevel          = 0,
+            int pixelOverlayXaxisLeft   = 50,
+            int pixelOverlayXaxisRight  = 250,
+            int bSLMean                 = -1,
+            int gainMean                = 10,
+            TString options             = ""
         );
 
@@ -82,4 +84,10 @@
             int         *histoFrameNR   //Array with Canvas Frame numbers
             );
+    void DrawDistributionHistograms(
+            TCanvas     *pixelCanvas,   //Array of Canvases
+            int         *histoFrameNr   //Array with Canvas Frame numbers
+            );
+
+    void SavePixelHistograms(const char *loc_fname);
 
 // ACCESS
@@ -92,13 +100,13 @@
     int             mBSLMean;
     int             mGainMean;
-    const char*     mOptions;
+    TString         mOptions;
 
-    TH2F*           hMaxOverlay;      //histogrammm for overlay of detected Peaks
-    TH2F*           hEdgeOverlay;
-    TProfile*       hMaxProfile;      //histogrammm for Profile of detected Peaks
-    TProfile*       hEdgeProfile;  //histogrammm for Profile of detected Peaks
-    TH1F*           hSlopeRisingEdge;
-    TH1F*           hRisingToMaxEdge;
-    TH1F*           hPosOfMax;
+    TH2F**          hMaxOverlay;      //histogrammm for overlay of detected Peaks
+    TH2F**          hEdgeOverlay;
+    TProfile**      hMaxProfile;      //histogrammm for Profile of detected Peaks
+    TProfile**      hEdgeProfile;  //histogrammm for Profile of detected Peaks
+    TH1F**          hSlopeRisingEdge;
+    TH1F**          hRisingEdgeToMax;
+    TH1F**          hPosOfMax;
     TObjArray*      hList;
 
