Changeset 2291


Ignore:
Timestamp:
07/17/03 19:07:40 (21 years ago)
Author:
blanch
Message:
Header file for MFadc.cxx 1.12
File:
1 edited

Legend:

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

    r1201 r2291  
    5555
    5656  Float_t  sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; //  the analog signal for pixels
    57   UChar_t  output[CAMERA_PIXELS][FADC_SLICES];  //  the analog signal for pixels that is read after a trigger occurs.
     57  Float_t noise[CAMERA_PIXELS*(Int_t) SLICES_MFADC*101];
     58
     59  UChar_t  output[CAMERA_PIXELS][FADC_SLICES];  //  the analog signal for pixels that is read after a trigger occurs (high gain).
     60
     61  UChar_t  output_lowgain[CAMERA_PIXELS][FADC_SLICES]; //  analog signal, low gain.
    5862
    5963  //
    6064  //    first the data for the response function
    6165  //
    62   Float_t fwhm_resp ;                      // fwhm of the phe_response function
    63   Float_t ampl_resp ;                      // amplitude of the phe_response function (in mV)
     66  Float_t fwhm_resp ;                      // fwhm of the phe_response function (in ns)
     67  Float_t ampl_resp ;                      // area below curve of the phe_response function (in counts * ns)
    6468  Float_t sing_resp[ RESPONSE_SLICES_MFADC ] ;   // the shape of the phe_response function
     69
     70  //
     71  //    We may end up with a different reponse for the outer pixels
     72  //
     73  Float_t fwhm_resp_outer ;                      // fwhm of the phe_response function (in ns)
     74  Float_t ampl_resp_outer ;                      // area below curve of the phe_response function (in counts * ns)
     75  Float_t sing_resp_outer[ RESPONSE_SLICES_MFADC ] ;   // the shape of the phe_response function
    6576  //
    6677  //   RandomGenerator for the Electonic Noise
     
    7283public:
    7384
    74   MFadc(Float_t ampl=MFADC_RESPONSE_AMPLITUDE, Float_t fwhm=MFADC_RESPONSE_FWHM) ;
     85  MFadc(Float_t ampl=MFADC_RESPONSE_AMPLITUDE,
     86        Float_t fwhm=MFADC_RESPONSE_FWHM,
     87        Float_t amplout=MFADC_RESPONSE_AMPLITUDE,
     88        Float_t fwhmout=MFADC_RESPONSE_FWHM) ;
    7589 
    7690  void Reset() ;
    7791
     92  void Fill( Int_t, Float_t, Float_t, Int_t  ) ; 
     93
    7894  void Fill( Int_t, Float_t, Float_t  ) ; 
     95
     96  void FillOuter( Int_t, Float_t, Float_t  ) ; 
    7997
    8098  void Set( Int_t iPix, Float_t res[(Int_t) SLICES_MFADC]);
     
    94112  }
    95113
     114  void SetFwhmOuter( Float_t fwhm){
     115    fwhm_resp_outer=fwhm;
     116  }
     117
     118  void SetAmplOuter( Float_t ampl){
     119    ampl_resp_outer=ampl;
     120  }
     121
    96122  void Baseline();
    97123
     
    99125
    100126  void Offset( Float_t, Int_t );
     127
     128  void SetElecNoise(Float_t value=2.0);
    101129
    102130  void ElecNoise(Float_t value=2.0) ;
     
    116144  UChar_t GetFadcSignal(Int_t pixel, Int_t slice);
    117145
     146  UChar_t GetFadcLowGainSignal(Int_t pixel, Int_t slice);
     147
    118148  Float_t GetAmplitude() {
    119149    return ampl_resp ;
     
    124154  }
    125155
     156  Float_t GetAmplitudeOuter() {
     157    return ampl_resp_outer ;
     158  }
     159
     160  Float_t GetFwhmOuter() {
     161    return fwhm_resp_outer ;
     162  }
    126163 
    127164} ;
Note: See TracChangeset for help on using the changeset viewer.