Changeset 2433 for trunk/MagicSoft/Simulation
- Timestamp:
- 10/26/03 20:18:58 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx
r2393 r2433 37 37 fwhm_resp_outer = fwhmout; 38 38 ampl_resp_outer = amplout; 39 40 cout<< "[MFadc] Setting up the MFadc with this values "<< endl ; 41 cout<< "[MFadc] - Inner pixels : "<< endl ; 42 cout<< "[MFadc] Response Are : "<<ampl<<" adc counts"<< endl ; 43 cout<< "[MFadc] Response FWHM : "<<fwhm<<" ns"<< endl ; 44 cout<< "[MFadc] - Inner pixels : "<< endl ; 45 cout<< "[MFadc] Response Are : "<<amplout<<" adc counts"<< endl ; 46 cout<< "[MFadc] Response FWHM : "<<fwhmout<<" ns"<< endl ; 39 47 40 48 // … … 101 109 pedestal[i] = 0.0 ; 102 110 } 111 112 cout<<" end of MFadc::MFadc()"<<endl; 103 113 } 104 114 … … 634 644 // computes the pedestal sigma for channel pix 635 645 636 Float_t rms=0;646 Float_t sigma=0; 637 647 UChar_t value=0; 638 648 … … 665 675 :UChar_t(Int_t(value)+digital_noise[startslice+is])); 666 676 } 667 rms+=((Float_t)value-pedestal[pix])*((Float_t)value-pedestal[pix]);668 } 669 670 rms=sqrt(rms/(SLICES_MFADC-1));671 672 return rms;677 sigma+=((Float_t)value-pedestal[pix])*((Float_t)value-pedestal[pix]); 678 } 679 680 sigma=sqrt(sigma/(SLICES_MFADC-1)); 681 682 return sigma; 673 683 } 674 684
Note:
See TracChangeset
for help on using the changeset viewer.