Index: fact/tools/rootmacros/PulseTemplates/pixel.C
===================================================================
--- fact/tools/rootmacros/PulseTemplates/pixel.C	(revision 13560)
+++ fact/tools/rootmacros/PulseTemplates/pixel.C	(revision 13572)
@@ -58,5 +58,5 @@
     }
 
-    if (mOptions.Contains("P") )
+    if (mOptions.Contains("M") )
     {
         hPosOfMax = new TH1F*[mMaxPulseOrder];
@@ -351,5 +351,5 @@
             }
 
-            if (mOptions.Contains("P"))
+            if (mOptions.Contains("M"))
             {
                 histo_name =    "hPosOfMax";
@@ -386,13 +386,32 @@
 {
     if (mVerbosityLevel > 2) cout << endl << "...drawing distribution histograms" ;
+    bool nothing_to_fill = true;
     for (int pulse_order = 0; pulse_order < mMaxPulseOrder; pulse_order++)
     {
+        if (mOptions.Contains("S") )
+        {
         pixelCanvas[pulse_order]->cd( histoFrameNr[0] );
         hSlopeRisingEdge[pulse_order]->Draw();
+        nothing_to_fill = false;
+        }
+
+        if (mOptions.Contains("R") )
+        {
         pixelCanvas[pulse_order]->cd( histoFrameNr[1] );
         hRisingEdgeToMax[pulse_order]->Draw();
-
+        nothing_to_fill = false;
+        }
+
+        if (mOptions.Contains("M") )
+        {
         pixelCanvas[pulse_order]->cd( histoFrameNr[2] );
         hPosOfMax[pulse_order]->Draw();
+        nothing_to_fill = false;
+        }
+
+    }
+    if (nothing_to_fill)
+    {
+        cout << "there were NO DISTRIBUTION HISTOGRAMS to fill"
     }
 }
@@ -506,5 +525,5 @@
         }
 
-        if (mOptions.Contains("P"))
+        if (mOptions.Contains("M"))
         {
             if (mVerbosityLevel > 3) cout << endl
@@ -532,5 +551,5 @@
     }
 
-    if (mOptions.Contains("P"))
+    if (mOptions.Contains("M"))
     {
         if (mVerbosityLevel > 3) cout << endl << "\t\t...deleting hPosOfMax";
