Index: fact/tools/rootmacros/DrsCalibration.C
===================================================================
--- fact/tools/rootmacros/DrsCalibration.C	(revision 12382)
+++ fact/tools/rootmacros/DrsCalibration.C	(revision 12383)
@@ -32,5 +32,7 @@
 
 size_t applyDrsCalibration( vector<float> &destination,
-	int pixel,
+	int pixel, 
+  int LeaveOutLeft, 
+  int LeaveOutRight,
 	vector<float> &drs_basemean,
 	vector<float> &drs_gainmean,
@@ -51,5 +53,5 @@
 
 
-	for ( unsigned int sl = 0; sl < RegionOfInterest; sl++){
+	for ( unsigned int sl = LeaveOutLeft; sl < RegionOfInterest-LeaveOutRight ; sl++){
 		slice_pt = pixel_pt + sl;
 		drs_cal_offset = ( sl + StartCellVector[ pixel ] )%RegionOfInterest;
Index: fact/tools/rootmacros/DrsCalibration.h
===================================================================
--- fact/tools/rootmacros/DrsCalibration.h	(revision 12382)
+++ fact/tools/rootmacros/DrsCalibration.h	(revision 12383)
@@ -12,5 +12,7 @@
 
 size_t applyDrsCalibration( vector<float> &destination,
-	int pixel,
+	int pixel, 
+  int LeaveOutLeft,
+  int LeaveOutRight,
 	vector<float> &drs_basemean,
 	vector<float> &drs_gainmean,
