- Timestamp:
- 11/14/01 17:41:33 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx
r626 r1079 333 333 fwrite ( &fTrig , sizeof(Float_t), TRIGBINS, datei ) ; 334 334 335 // We want to store the FADC signal taking into account the AC 336 // coupling 337 // 338 // We calculate and substract the baseline 339 // 340 341 Float_t baseline = 0. ; 342 343 for (Int_t i=0; i< FADCBINS ; i++ ) { 344 345 baseline = baseline + fFadc[i] ; 346 } 347 348 baseline = baseline / FADCBINS ; 349 350 for (Int_t i=0; i< FADCBINS ; i++ ) { 351 352 fFadc[i]=fFadc[i]-baseline; 353 354 } 355 335 356 fwrite ( &fFadc , sizeof(Float_t), FADCBINS, datei ) ; 336 357 337 338 358 339 359 fclose ( datei ) ;
Note:
See TracChangeset
for help on using the changeset viewer.