Ignore:
Timestamp:
11/14/01 17:41:33 (23 years ago)
Author:
blanch
Message:
Now the fadc signal from NSB is stored after substracting the baseline
(AC coupling)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/StarResponse/MStarLight.cxx

    r626 r1079  
    333333  fwrite ( &fTrig      , sizeof(Float_t), TRIGBINS, datei ) ;
    334334
     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 
    335356  fwrite ( &fFadc      , sizeof(Float_t), FADCBINS, datei ) ;
    336357
    337  
    338358
    339359  fclose ( datei ) ;
Note: See TracChangeset for help on using the changeset viewer.