Index: fact/tools/rootmacros/PulseTemplates/pixel.C
===================================================================
--- fact/tools/rootmacros/PulseTemplates/pixel.C	(revision 14811)
+++ fact/tools/rootmacros/PulseTemplates/pixel.C	(revision 14812)
@@ -782,9 +782,4 @@
     }
 
-//    mPixelOverlayXaxisRight   =70;   ///TODO: get it from the root file
-//    mPixelOverlayXaxisLeft    =230;  ///TODO: get it from the root file
-//    mBSLMean                  =-1;   ///TODO: get it from the root file
-//    mGainMean                 =9;    ///TODO: get it from the root file
-//    mOptions                  ="SRM"; ///TODO: get it from the root file
 
     if (mVerbosityLevel > 2) cout << endl << "...load pixel histograms" << endl;
@@ -803,5 +798,20 @@
         if (mVerbosityLevel > 3) cout << "\t...loading " << HistoName("hEdgeProfile", order) << endl;
         hEdgeProfile[order] = (TProfile*)mDirectory->Get( ChooseCycleNumber( HistoName("hEdgeProfile", order), 1) );
-    }
+
+
+    }
+    //    mPixelOverlayXaxisRight   =70;   ///TODO: get it from the root file
+    //    mPixelOverlayXaxisLeft    =230;  ///TODO: get it from the root file
+//        mBSLMean                  =-2;   ///TODO: get it from the root file
+//        mGainMean                 =11;    ///TODO: get it from the root file
+    //    mOptions                  ="SRM"; ///TODO: get it from the root file
+
+    mPixelOverlayXaxisRight = hEdgeOverlay[0]->GetBinCenter(
+                hEdgeOverlay[0]->GetXaxis()->GetFirst()
+                );
+
+    mPixelOverlayXaxisLeft = hEdgeOverlay[0]->GetBinCenter(
+                hEdgeOverlay[0]->GetXaxis()->GetLast()
+                );
 
 }
