Changeset 692 for trunk/MagicSoft/Simulation/Detector
- Timestamp:
- 03/19/01 19:31:34 (24 years ago)
- Location:
- trunk/MagicSoft/Simulation/Detector/include-MFadc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx
r677 r692 78 78 79 79 for ( i =0 ; i <CAMERA_PIXELS ; i++ ) { 80 pedestal[i] = 0 ;80 pedestal[i] = 0.0 ; 81 81 } 82 82 … … 153 153 154 154 for ( i =0 ; i <CAMERA_PIXELS ; i++ ) { 155 pedestal[i] = 0 ;155 pedestal[i] = 0.0 ; 156 156 } 157 157 … … 327 327 328 328 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 333 void MFadc::SetPedestals( Float_t ped[CAMERA_PIXELS]) { 334 334 // It sets pedestal for each pixel from ped array 335 335 … … 525 525 } 526 526 527 void MFadc::GetPedestals( UChar_t *offset) {527 void MFadc::GetPedestals( Float_t *offset) { 528 528 // ============================================================ 529 529 // 530 // puts the standard response function into the array resp530 // puts the pedestal values into the array offset 531 531 532 532 for ( Int_t i=0; i< CAMERA_PIXELS; i++ ) { -
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx
r678 r692 52 52 // 53 53 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 FADCs54 Float_t pedestal[CAMERA_PIXELS] ; // Pedestal of FADCs 55 55 56 56 Float_t sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; // the analog signal for pixels … … 86 86 void SetPedestals( Int_t ped); 87 87 88 void SetPedestals( UChar_t ped[CAMERA_PIXELS]);88 void SetPedestals( Float_t ped[CAMERA_PIXELS]); 89 89 90 90 void SetFwhm( Float_t fwhm){ … … 110 110 void GetResponse( Float_t *resp ) ; 111 111 112 void GetPedestals( UChar_t *offset);112 void GetPedestals( Float_t *offset); 113 113 114 114 void TriggeredFadc(Float_t time);
Note:
See TracChangeset
for help on using the changeset viewer.