Changeset 692 for trunk/MagicSoft


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
Location:
trunk/MagicSoft/Simulation/Detector/include-MFadc
Files:
2 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++ ) {
  • trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx

    r678 r692  
    5252  //
    5353  Bool_t   used[CAMERA_PIXELS] ;  //  a boolean to indicated if the pixels is used in this event
    54   UChar_t  pedestal[CAMERA_PIXELS] ;  //  Pedestal of FADCs
     54  Float_t  pedestal[CAMERA_PIXELS] ;  //  Pedestal of FADCs
    5555
    5656  Float_t  sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; //  the analog signal for pixels
     
    8686  void SetPedestals( Int_t ped);
    8787
    88   void SetPedestals( UChar_t ped[CAMERA_PIXELS]);
     88  void SetPedestals( Float_t ped[CAMERA_PIXELS]);
    8989
    9090  void SetFwhm( Float_t fwhm){
     
    110110  void GetResponse( Float_t *resp ) ;
    111111
    112   void GetPedestals( UChar_t *offset);
     112  void GetPedestals( Float_t *offset);
    113113
    114114  void TriggeredFadc(Float_t time);
Note: See TracChangeset for help on using the changeset viewer.