Index: trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx	(revision 5325)
+++ trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx	(revision 5326)
@@ -19,10 +19,10 @@
 
 
-  fBinsTrig = (Int_t)(TRIG_SLICES_PER_NSEC*TIMERANGE);   // Default value 4*10000=40000
+  fBinsTrig = (Int_t)(TRIG_SLICES_PER_NSEC*fTimeRange);   // Default value 4*10000=40000
   fTrigShape   = 0; 
   fAmplTrig    = 0.; 
   fFwhmTrig    = 0.; 
 
-  fBinsFadc    = (Int_t)(fFadcSlicesPerNanosec*TIMERANGE);  // Default value 0.3*10000=3000
+  fBinsFadc    = (Int_t)(fFadcSlicesPerNanosec*fTimeRange);  // Default value 0.3*10000=3000
   fFadcShape   = 0; 
   fIntegFadc   = 0.; 
@@ -50,7 +50,5 @@
 void MStarLight::Reset() {
 
-  
-  fBrightness  = 0. ; 
-  fTimeRange   = TIMERANGE; 
+  fBrightness  = 0. ;
 
   fTrigShape   = 0; 
@@ -109,5 +107,5 @@
 {
   fFadcSlicesPerNanosec = in;
-  fBinsFadc    = (Int_t)(fFadcSlicesPerNanosec*TIMERANGE);
+  fBinsFadc    = (Int_t)(fFadcSlicesPerNanosec*fTimeRange);
 
   if (fFadc)
@@ -157,5 +155,5 @@
   //  fill the trigger response
   
-  Int_t startbin = (Int_t) (time * ((Float_t)fBinsTrig/TIMERANGE));
+  Int_t startbin = (Int_t) (time * ((Float_t)fBinsTrig/fTimeRange));
 
   Int_t icount = 0;
@@ -177,5 +175,5 @@
   //
 
-  startbin = (Int_t) ( time * ((Float_t)(fBinsFadc*SUBBINS)/TIMERANGE));
+  startbin = (Int_t) ( time * ((Float_t)(fBinsFadc*SUBBINS)/fTimeRange));
 
   Int_t ichanfadc = 0 ; 
@@ -252,5 +250,5 @@
   // 
 
-  TH1F  trigresp ("trigresp", "Trigger Response", fBinsTrig, 0., TIMERANGE);
+  TH1F  trigresp ("trigresp", "Trigger Response", fBinsTrig, 0., fTimeRange);
 
   for (Int_t i=0; i< fBinsTrig ; i++ )
@@ -263,5 +261,5 @@
   
   TH1F  trigbase ("trigbase", "Response after Baseline shift", 
-		  fBinsTrig, 0., TIMERANGE) ; 
+		  fBinsTrig, 0., fTimeRange) ; 
 
   for (Int_t i = 0; i < fBinsTrig ; i++)
@@ -279,5 +277,5 @@
   //
 
-  TH1F  fadcresp ("fadcresp", "Fadc Response", fBinsFadc, 0., TIMERANGE); 
+  TH1F  fadcresp ("fadcresp", "Fadc Response", fBinsFadc, 0., fTimeRange); 
 
   baseline = 0.;
@@ -291,5 +289,5 @@
   
   TH1F  fadcbase ("fadcbase", "Fadc after Baseline shift", 
-		  fBinsFadc, 0., TIMERANGE) ; 
+		  fBinsFadc, 0., fTimeRange) ; 
 
   for (Int_t i=0; i< fBinsFadc ; i++ )
