Index: /fact/tools/rootmacros/PulseTemplates/pixelsum.C
===================================================================
--- /fact/tools/rootmacros/PulseTemplates/pixelsum.C	(revision 13781)
+++ /fact/tools/rootmacros/PulseTemplates/pixelsum.C	(revision 13782)
@@ -13,10 +13,10 @@
         int         verbosityLevel,
         bool        stats,
-        TFile*      filename,
+        TString     options,
         int         pixelOverlayXaxisLeft,
         int         pixelOverlayXaxisRight,
         float       bSLMean,
         float       gainMean,
-        TString     options
+        TFile*      filename
         )
     :Pixel(
@@ -25,10 +25,10 @@
           verbosityLevel,
           stats,
-          filename,
+          options,
           pixelOverlayXaxisLeft,
           pixelOverlayXaxisRight,
           bSLMean,
           gainMean,
-          options
+          filename
           )
 {
@@ -44,13 +44,24 @@
 
     BookSumHistos();
-    BookSumDistributionHistos();
+//    BookSumDistributionHistos();
 }
 
 PixelSum::~PixelSum()
 {
-    if (mVerbosityLevel > 1) cout << endl << "...delete histograms of pixelSum " << mChid ;
+    if (mVerbosityLevel > 1)
+    {
+        cout << endl << "...deleting histograms of "
+             << mName << " ID: "<< mChid ;
+        cout << endl << "...mConstructorType = " << mConstructorType << endl;
+    }
 
     DeleteSumHistos();
-    DeleteSumDistributionHistos();
+//    DeleteSumDistributionHistos();
+
+    if (mVerbosityLevel > 1)
+    {
+        cout << endl << "...histograms of "
+             << mName << " ID: "<< mChid << " deleted";
+    }
 
 }// ~PixelSum
@@ -76,5 +87,5 @@
 PixelSum::BookSumHistos()
 {
-    if (mVerbosityLevel > 2) cout << endl << "...book pixel histograms" << endl;
+    if (mVerbosityLevel > 2) cout << endl << "...book " << mName << " histograms" << endl;
     for (int order = 0; order < mMaxPulseOrder; order++)
     {
@@ -304,2 +315,25 @@
 // end of DeletePixelHistos
 //----------------------------------------------------------------------------
+
+TString
+PixelSum::CsvFileName(
+        TString     path,
+        TString     overlayMethod,
+        int         order
+        )
+{
+    path += "CSV/";
+    path += overlayMethod;
+    path += "OverlayTemplate";
+    path += "_";
+    path +=   mName;
+    path +=   "_";
+    path +=   mChid;
+    path +=   "_";
+    path +=   order;
+    path +=   ".csv";
+    return path;
+}
+// end of CsvFileName
+//----------------------------------------------------------------------------
+
