Index: trunk/MagicSoft/Mars/mtemp/mmpi/SupercutsONOFFClasses/MFindSupercutsONOFFThetaLoop.cc
===================================================================
--- trunk/MagicSoft/Mars/mtemp/mmpi/SupercutsONOFFClasses/MFindSupercutsONOFFThetaLoop.cc	(revision 6353)
+++ trunk/MagicSoft/Mars/mtemp/mmpi/SupercutsONOFFClasses/MFindSupercutsONOFFThetaLoop.cc	(revision 6354)
@@ -1544,4 +1544,13 @@
 
 
+	// Degree of polynomials used to fit ON and OFF alpha 
+	// distributions is set
+
+	FindSupercuts.SetDegreeON(fDegreeON);
+	FindSupercuts.SetDegreeOFF(fDegreeOFF);
+
+
+
+
 	// bining for alpha plots is set 
 	
@@ -2054,10 +2063,5 @@
     const Double_t alphabkgmax = fAlphaBkgMax;
     
-    // degree of polynomial function used to fit ON data in background region
-    const Int_t    degree   =    2;
-    
-    // degree of polynomial function used to fit OFF data in all alpha region (0-90)
-    const Int_t    degreeOFF   =    2;
-    
+        
     const Bool_t   drawpoly  = kFALSE;
     const Bool_t   fitgauss  = kFALSE;
@@ -2471,5 +2475,5 @@
 				       NormalizationFactor, 
 				       alphabkgmin, alphabkgmax, 
-				       degree, degreeOFF,
+				       fDegreeON, fDegreeOFF,
 				       alphasig, 
 				       drawpoly, fitgauss, print, 
@@ -2768,5 +2772,5 @@
 				       NormalizationFactor, 
 				       alphabkgmin, alphabkgmax, 
-				       degree, degreeOFF,
+				       fDegreeON, fDegreeOFF,
 				       alphasig, 
 				       drawpoly, fitgauss, print, 
@@ -4107,10 +4111,5 @@
 	const Double_t alphabkgmax = fAlphaBkgMax;
 	
-	// degree of polynomial function used to fit ON data in background region
-	const Int_t    degree   =    2;
-
-	// degree of polynomial function used to fit OFF data in all alpha region (0-90)
-	const Int_t    degreeOFF   =    2;
-
+	
 	const Bool_t   drawpoly  = kTRUE;
 	const Bool_t   fitgauss  = kTRUE;
@@ -4140,5 +4139,5 @@
 				   MeanNormFactorTrain, 
 				   alphabkgmin, alphabkgmax, 
-				   degree, degreeOFF,
+				   fDegreeON, fDegreeOFF,
 				   alphasig, 
 				   drawpoly, fitgauss, print, 
@@ -4168,5 +4167,5 @@
 				   MeanNormFactorTest, 
 				   alphabkgmin, alphabkgmax, 
-				   degree, degreeOFF,
+				   fDegreeON, fDegreeOFF,
 				   alphasig, 
 				   drawpoly, fitgauss, print, 
