Index: /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C
===================================================================
--- /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C	(revision 13574)
+++ /fact/tools/rootmacros/PulseTemplates/FPulseOverlay.C	(revision 13575)
@@ -581,4 +581,9 @@
                                             pulsesCanvasFrameNrs
                                             );
+
+                                pixel[firstPixelOfSet]->DrawDistributionHistograms(
+                                            cgpDistributions,
+                                            distributionCanvasFrameNrs
+                                            );
 //                            }
                             if (testmode)
@@ -632,4 +637,9 @@
                             cgpPixelPulses,
                             pulsesCanvasFrameNrs
+                            );
+
+                pixel[pixelID]->DrawDistributionHistograms(
+                            cgpDistributions,
+                            distributionCanvasFrameNrs
                             );
 
@@ -717,4 +727,5 @@
     delete      datafile;
     delete[]    pixel;
+    delete tf;
 
 
@@ -869,4 +880,18 @@
                         cout << endl << "\t...filling Edge Histogram" ;
                 CurrentPixel->hSlopeRisingEdge[order_of_pulse]->Fill( reg->slopeOfRisingEdge ) ;
+            }
+
+            if (CurrentPixel->mOptions.Contains("R") )
+            {
+                if (verbosityLevel > 2)
+                        cout << endl << "\t...filling RisingEdgeToMax Histogram" ;
+                CurrentPixel->hRisingEdgeToMax[order_of_pulse]->Fill( reg->distanceEdgeToMax ) ;
+            }
+
+            if (CurrentPixel->mOptions.Contains("M") )
+            {
+                if (verbosityLevel > 2)
+                        cout << endl << "\t...filling PosOfMax Histogram" ;
+                CurrentPixel->hPosOfMax[order_of_pulse]->Fill( reg->maxPos ) ;
             }
 
@@ -957,4 +982,6 @@
         cgpPixelPulses[pulse_order]->Modified();
         cgpPixelPulses[pulse_order]->Update();
+        cgpDistributions[pulse_order]->Modified();
+        cgpDistributions[pulse_order]->Update();
         cgpTestHistos->Modified();
         cgpTestHistos->Update();
