Index: fact/tools/rootmacros/PulseTemplates/pulse.C
===================================================================
--- fact/tools/rootmacros/PulseTemplates/pulse.C	(revision 14813)
+++ fact/tools/rootmacros/PulseTemplates/pulse.C	(revision 14814)
@@ -52,4 +52,15 @@
     mOptions        += options;
     mType           = type;
+    Fit(mName, mOptions, mType);
+}
+
+Pulse::Pulse(TString name, TH1* histo, TString options, int type, int order)
+{
+    InitMembers();
+    mName           = name;
+    mHisto          = histo;
+    mOptions        += options;
+    mType           = type;
+    mOrder          = order;
     Fit(mName, mOptions, mType);
 }
@@ -178,4 +189,5 @@
     double tau = 30.0;
     double bsl = 0.8;     //shall be around 0
+    double gain = 10; //startvalue for gain
 
     int first_bin   = mHisto->GetXaxis()->GetFirst();
@@ -189,5 +201,13 @@
     double amplitude    = mHisto->GetBinContent(stop);
     double start        = stop-10; //pos 10 slices before maximum
-    int    phe          = amplitude/10;
+    int    phe = 0;
+    if (mOrder < 0)
+    {
+        phe      = (amplitude-bsl)/gain;
+    }
+    else
+    {
+        phe      = mOrder+1;
+    }
     // ======================================================================
 
@@ -233,6 +253,6 @@
     // Calculate startvaues for fit
     double tau      = 30.0;
-    double bsl = 0; //MW der ersten zehn slices
-
+    double bsl  = 0; //MW der ersten zehn slices
+    double gain = 10; //startvalue for gain
     int first_bin   = mHisto->GetXaxis()->GetFirst();
 
@@ -245,5 +265,13 @@
     double amplitude= mHisto->GetBinContent(stop);
     double start    = stop-10; //pos 10 slices before maximum
-    int    phe      = amplitude/10;
+    int    phe = 0;
+    if (mOrder < 0)
+    {
+        phe      = (amplitude-bsl)/gain;
+    }
+    else
+    {
+        phe      = mOrder+1;
+    }
     // ======================================================================
 
Index: fact/tools/rootmacros/PulseTemplates/pulse.h
===================================================================
--- fact/tools/rootmacros/PulseTemplates/pulse.h	(revision 14813)
+++ fact/tools/rootmacros/PulseTemplates/pulse.h	(revision 14814)
@@ -54,4 +54,5 @@
     Pulse(TString name, TH1* histo, TString options );
     Pulse(TString name, TH1* histo, TString options, int type);
+    Pulse(TString name, TH1* histo, TString options, int type, int order);
 
     //    /** Copy constructor.
