Ignore:
Timestamp:
10/26/03 20:18:58 (21 years ago)
Author:
blanch
Message:
Now it writes in the screen its cahracteristiques while the constructor
is called.
File:
1 edited

Legend:

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

    r2393 r2433  
    3737  fwhm_resp_outer = fwhmout;
    3838  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 ;
    3947 
    4048  //
     
    101109    pedestal[i] = 0.0 ;
    102110  }
     111
     112  cout<<" end of MFadc::MFadc()"<<endl;
    103113}
    104114 
     
    634644  //    computes the pedestal sigma for channel pix
    635645
    636   Float_t rms=0;
     646  Float_t sigma=0;
    637647  UChar_t value=0;
    638648 
     
    665675               :UChar_t(Int_t(value)+digital_noise[startslice+is]));
    666676    }
    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;
    673683}
    674684
Note: See TracChangeset for help on using the changeset viewer.