Index: /fact/tools/rootmacros/PulseTemplates/pixelsum.C
===================================================================
--- /fact/tools/rootmacros/PulseTemplates/pixelsum.C	(revision 13654)
+++ /fact/tools/rootmacros/PulseTemplates/pixelsum.C	(revision 13655)
@@ -13,5 +13,10 @@
         int         verbosityLevel,
         bool        stats,
-        TFile*      filename
+        TFile*      filename,
+        int         pixelOverlayXaxisLeft,
+        int         pixelOverlayXaxisRight,
+        float       bSLMean,
+        float       gainMean,
+        TString     options
         )
     :Pixel(
@@ -20,5 +25,10 @@
           verbosityLevel,
           stats,
-          filename
+          filename,
+          pixelOverlayXaxisLeft,
+          pixelOverlayXaxisRight,
+          bSLMean,
+          gainMean,
+          options
           )
 {
@@ -32,4 +42,7 @@
     mhDistSlopeRiseEdge     = new TH1F*[mMaxPulseOrder];
     mhDistSlopeFallEdge     = new TH1F*[mMaxPulseOrder];
+
+    BookSumHistos();
+    BookSumDistributionHistos();
 }
 
@@ -38,6 +51,6 @@
     if (mVerbosityLevel > 1) cout << endl << "...delete histograms of pixelSum " << mChid ;
 
-    DeleteHistos();
-    DeleteDistributionHistos();
+    DeleteSumHistos();
+    DeleteSumDistributionHistos();
 
 }// ~PixelSum
@@ -61,5 +74,5 @@
 /////////////////////////////// PRIVATE    ///////////////////////////////////
 void
-PixelSum::BookHistos()
+PixelSum::BookSumHistos()
 {
     if (mVerbosityLevel > 2) cout << endl << "...book pixel histograms" << endl;
@@ -74,5 +87,6 @@
                 mhMaxByChid[order],
                 "mhMaxByChid",
-                "Distribution of Templates extracted with Max"
+                "Distribution of Templates extracted with Max",
+                    order
                 );
 
@@ -102,5 +116,5 @@
         MakeTH2Pretty(
                 mhMedianByChid[order],
-                "mhMedianByChid,
+                "mhMedianByChid",
                 "Distribution of Templates extracted with Median",
                     order
@@ -116,5 +130,5 @@
 
 void
-PixelSum::BookDistributionHistos()
+PixelSum::BookSumDistributionHistos()
 {
     if (mVerbosityLevel > 2) cout << endl
@@ -126,5 +140,5 @@
         if (mVerbosityLevel > 3) cout << "\t...booking "
                                       << HistoName("mhDistAmplitude", order) << endl;
-        mhDistAmplitude[order]=new TH2F();
+        mhDistAmplitude[order]=new TH1F();
 
         MakeTH1Pretty(
@@ -142,5 +156,5 @@
         if (mVerbosityLevel > 3) cout << "\t...booking "
                                       << HistoName("mhDistSlopeRiseEdge", order) << endl;
-        mhDistSlopeRiseEdge[order]=new TH2F();
+        mhDistSlopeRiseEdge[order]=new TH1F();
 
         MakeTH1Pretty(
@@ -158,5 +172,5 @@
         if (mVerbosityLevel > 3) cout << "\t...booking "
                                       << HistoName("mhDistSlopeFallEdge", order) << endl;
-        mhDistSlopeFallEdge[order]=new TH2F();
+        mhDistSlopeFallEdge[order]=new TH1F();
 
         MakeTH1Pretty(
@@ -177,5 +191,5 @@
 
 void
-PixelSum::DeleteHistos()
+PixelSum::DeleteSumHistos()
 {
     if (mVerbosityLevel > 2)
@@ -223,5 +237,5 @@
 
 void
-PixelSum::DeleteDistributionHistos()
+PixelSum::DeleteSumDistributionHistos()
 {
     if (mVerbosityLevel > 2)
