Ignore:
Timestamp:
03/19/01 19:31:34 (24 years ago)
Author:
magicsol
Message:
The pedestal member array has been changed from UChar_t to Float_t
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx

    r677 r692  
    7878 
    7979  for ( i =0 ; i <CAMERA_PIXELS ; i++ ) {
    80     pedestal[i] = 0 ;
     80    pedestal[i] = 0.0 ;
    8181  }
    8282
     
    153153 
    154154  for ( i =0 ; i <CAMERA_PIXELS ; i++ ) {
    155     pedestal[i] = 0 ;
     155    pedestal[i] = 0.0 ;
    156156  }
    157157
     
    327327
    328328  for(i=0;i<CAMERA_PIXELS;i++){
    329     pedestal[i]= (UChar_t)(ped* GenElec->Rndm());
    330   }
    331 }
    332 
    333 void MFadc::SetPedestals(  UChar_t ped[CAMERA_PIXELS]) {
     329    pedestal[i]= (Float_t)(ped* GenElec->Rndm());
     330  }
     331}
     332
     333void MFadc::SetPedestals(  Float_t ped[CAMERA_PIXELS]) {
    334334  //  It sets pedestal for each pixel from ped array
    335335
     
    525525}
    526526
    527 void MFadc::GetPedestals( UChar_t *offset) {
     527void MFadc::GetPedestals( Float_t *offset) {
    528528  // ============================================================
    529529  //
    530   //    puts the standard response function into the array resp
     530  //    puts the pedestal values into the array offset
    531531 
    532532  for ( Int_t i=0; i< CAMERA_PIXELS; i++ ) {
Note: See TracChangeset for help on using the changeset viewer.