Changeset 2452 for trunk/MagicSoft
- Timestamp:
- 11/03/03 12:49:42 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.cxx
r2433 r2452 42 42 cout<< "[MFadc] Response Are : "<<ampl<<" adc counts"<< endl ; 43 43 cout<< "[MFadc] Response FWHM : "<<fwhm<<" ns"<< endl ; 44 cout<< "[MFadc] - Inner pixels : "<< endl ;44 cout<< "[MFadc] - Outer pixels : "<< endl ; 45 45 cout<< "[MFadc] Response Are : "<<amplout<<" adc counts"<< endl ; 46 46 cout<< "[MFadc] Response FWHM : "<<fwhmout<<" ns"<< endl ; … … 55 55 56 56 sigma = fwhm_resp / 2.35 ; 57 x0 = 3*sigma ;57 x0 = 3*sigma; 58 58 59 59 Float_t dX, dX2 ; … … 61 61 dX = WIDTH_FADC_TIMESLICE / SUBBINS ; 62 62 dX2 = dX/2. ; 63 64 63 65 64 66 for (i=0; i< RESPONSE_SLICES_MFADC ; i++ ) { … … 74 76 75 77 } 78 76 79 77 80 sigma = fwhm_resp_outer / 2.35 ; … … 380 383 381 384 for(i=0;i<numpix;i++) 382 for(j=0;j<(Int_t)SLICES_MFADC;j++) 383 sig[i][j]+=pedestal[i]; 385 for(j=0;j<(Int_t)SLICES_MFADC;j++){ 386 if(used[i]) 387 sig[i][j]+=pedestal[i]; 388 else 389 sig[i][j]=pedestal[i]; 390 } 384 391 385 392 } … … 677 684 sigma+=((Float_t)value-pedestal[pix])*((Float_t)value-pedestal[pix]); 678 685 } 686 679 687 680 688 sigma=sqrt(sigma/(SLICES_MFADC-1)); … … 738 746 } 739 747 } 740 741 748 } 742 749 }
Note:
See TracChangeset
for help on using the changeset viewer.