Index: fact/tools/rootmacros/PulseTemplates/pixel.C
===================================================================
--- fact/tools/rootmacros/PulseTemplates/pixel.C	(revision 13854)
+++ fact/tools/rootmacros/PulseTemplates/pixel.C	(revision 13855)
@@ -20,5 +20,6 @@
         float       bSLMean,
         float       gainMean,
-        TFile*      filename
+        TFile*      filename,
+        TFile*      outfilename
         )
 {
@@ -35,4 +36,5 @@
     mGainMean               = gainMean;
     mRootFile               = filename;
+    mOutRootFile            = outfilename;
 
     hMaxOverlay  = new TH2F*[mMaxPulseOrder];
@@ -165,8 +167,9 @@
         pixelCanvas[pulse_order]->cd( histoFrameNr[2] );
         hMaxProfile[pulse_order]->Draw();
-        hEdgeProfile[pulse_order]->Draw("SAME");
 
         pixelCanvas[pulse_order]->cd( histoFrameNr[1] );
         hEdgeOverlay[pulse_order]->Draw("COLZ");
+        pixelCanvas[pulse_order]->cd( histoFrameNr[3] );
+        hEdgeProfile[pulse_order]->Draw();
     }
 }
@@ -265,5 +268,5 @@
 void
 Pixel::SavePixelHistograms(
-        TString outRootFileName,
+        TString     outRootFileName,
         bool        saveResults
         )
@@ -281,6 +284,4 @@
 // end of SavePixelHistograms
 //----------------------------------------------------------------------------
-
-
 
 TString
@@ -683,8 +684,13 @@
 Pixel::LoadPulseHistos()
 {
-    if (mVerbosityLevel > 1)
-    {
-        mRootFile->ls();
-        cout << "Current File: " ;
+    mRootFile->cd();
+
+    if (mVerbosityLevel > 2)
+    {
+        if (mVerbosityLevel > 3)
+        {
+            mRootFile->ls();
+        }
+        cout << "loading current File: " ;
         gFile->pwd();
     }
@@ -693,8 +699,12 @@
     mDirectory = gDirectory;
 
-    if (mVerbosityLevel > 1)
-    {
+    if (mVerbosityLevel > 2)
+    {
+        if (mVerbosityLevel > 3)
+        {
+            gDirectory->ls();
+        }
         cout << "Current Directory: " ;
-        gDirectory->ls();
+        gDirectory->pwd();
     }
 
@@ -717,7 +727,5 @@
         if (mVerbosityLevel > 3) cout << "\t...loading " << HistoName("hMaxProfile", order) << endl;
         hMaxProfile[order]  = (TProfile*)mDirectory->Get( ChooseCycleNumber( HistoName("hMaxProfile", order), 1) );
-        cout << "histoname: " << HistoName("hMaxProfile", order)
-             << "histoname: " << ChooseCycleNumber( HistoName("hMaxProfile", order), 1)
-             << "histoname: " << hMaxProfile[order];
+
         if (mVerbosityLevel > 3) cout << "\t...loading " << HistoName("hEdgeProfile", order) << endl;
         hEdgeProfile[order] = (TProfile*)mDirectory->Get( ChooseCycleNumber( HistoName("hEdgeProfile", order), 1) );
@@ -912,8 +920,5 @@
         if (mVerbosityLevel > 3)
         cout << endl << "\t\t...deleting hPixelEdgeMax"
-                                      << mChid << "_" << order
-                                      << " hPixelEdgeMax[order] adr " << hPixelEdgeMax[order]
-                                      << " hPixelEdgeMax adr " << hPixelEdgeMax
-                                         ;
+                                      << mChid << "_" << order;
 
         delete hPixelEdgeMax[order];
