Changeset 5326 for trunk/MagicSoft/Simulation/Detector
- Timestamp:
- 10/28/04 18:43:13 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx
r5248 r5326 19 19 20 20 21 fBinsTrig = (Int_t)(TRIG_SLICES_PER_NSEC* TIMERANGE); // Default value 4*10000=4000021 fBinsTrig = (Int_t)(TRIG_SLICES_PER_NSEC*fTimeRange); // Default value 4*10000=40000 22 22 fTrigShape = 0; 23 23 fAmplTrig = 0.; 24 24 fFwhmTrig = 0.; 25 25 26 fBinsFadc = (Int_t)(fFadcSlicesPerNanosec* TIMERANGE); // Default value 0.3*10000=300026 fBinsFadc = (Int_t)(fFadcSlicesPerNanosec*fTimeRange); // Default value 0.3*10000=3000 27 27 fFadcShape = 0; 28 28 fIntegFadc = 0.; … … 50 50 void MStarLight::Reset() { 51 51 52 53 fBrightness = 0. ; 54 fTimeRange = TIMERANGE; 52 fBrightness = 0. ; 55 53 56 54 fTrigShape = 0; … … 109 107 { 110 108 fFadcSlicesPerNanosec = in; 111 fBinsFadc = (Int_t)(fFadcSlicesPerNanosec* TIMERANGE);109 fBinsFadc = (Int_t)(fFadcSlicesPerNanosec*fTimeRange); 112 110 113 111 if (fFadc) … … 157 155 // fill the trigger response 158 156 159 Int_t startbin = (Int_t) (time * ((Float_t)fBinsTrig/ TIMERANGE));157 Int_t startbin = (Int_t) (time * ((Float_t)fBinsTrig/fTimeRange)); 160 158 161 159 Int_t icount = 0; … … 177 175 // 178 176 179 startbin = (Int_t) ( time * ((Float_t)(fBinsFadc*SUBBINS)/ TIMERANGE));177 startbin = (Int_t) ( time * ((Float_t)(fBinsFadc*SUBBINS)/fTimeRange)); 180 178 181 179 Int_t ichanfadc = 0 ; … … 252 250 // 253 251 254 TH1F trigresp ("trigresp", "Trigger Response", fBinsTrig, 0., TIMERANGE);252 TH1F trigresp ("trigresp", "Trigger Response", fBinsTrig, 0., fTimeRange); 255 253 256 254 for (Int_t i=0; i< fBinsTrig ; i++ ) … … 263 261 264 262 TH1F trigbase ("trigbase", "Response after Baseline shift", 265 fBinsTrig, 0., TIMERANGE) ;263 fBinsTrig, 0., fTimeRange) ; 266 264 267 265 for (Int_t i = 0; i < fBinsTrig ; i++) … … 279 277 // 280 278 281 TH1F fadcresp ("fadcresp", "Fadc Response", fBinsFadc, 0., TIMERANGE);279 TH1F fadcresp ("fadcresp", "Fadc Response", fBinsFadc, 0., fTimeRange); 282 280 283 281 baseline = 0.; … … 291 289 292 290 TH1F fadcbase ("fadcbase", "Fadc after Baseline shift", 293 fBinsFadc, 0., TIMERANGE) ;291 fBinsFadc, 0., fTimeRange) ; 294 292 295 293 for (Int_t i=0; i< fBinsFadc ; i++ )
Note:
See TracChangeset
for help on using the changeset viewer.