Ignore:
Timestamp:
09/16/04 16:56:48 (20 years ago)
Author:
moralejo
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2986 r5079  
    4949 private:
    5050  Int_t numpix;
     51  Int_t fInnerPixelsNum; // number of inner (small) pixels.
    5152  //
    5253  //    then for all pixels the shape of all the analog signals
     
    5556  Float_t  pedestal[CAMERA_PIXELS] ;  //  Pedestal of FADCs
    5657
    57   Float_t  sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; //  the analog signal for pixels
     58  Float_t  sig[CAMERA_PIXELS][(Int_t) SLICES_MFADC] ; //  the analog signal for pixels, in bins of width
     59                                                      //  equal to the FADC slice: 50/15 ns, but with a
     60                                                      //  total of SLICES_MFADC (=48 now) bins.
    5861  Float_t noise[((Int_t) SLICES_MFADC)*1001];
     62  Float_t noise_outer[((Int_t) SLICES_MFADC)*1001];
    5963  Int_t digital_noise[((Int_t) SLICES_MFADC)*1001];
    6064
    61   UChar_t  output[CAMERA_PIXELS][FADC_SLICES];  //  the analog signal for pixels that is read after a trigger occurs (high gain).
    62 
    63   UChar_t  output_lowgain[CAMERA_PIXELS][FADC_SLICES]; //  analog signal, low gain.
     65  Float_t  output[CAMERA_PIXELS][FADC_SLICES];  //  the analog signal for pixels that is read after a trigger
     66                                                //  occurs (high gain). Only 15 (=FADC_SLICES) bins
     67
     68  Float_t  output_lowgain[CAMERA_PIXELS][FADC_SLICES]; //  analog signal, low gain.
     69
    6470  Float_t high2low_gain;
    6571  //
    6672  //    first the data for the response function
    6773  //
     74  Int_t shape_resp ;                      // index shape of the phe_response function
     75                                          // = 0 --> Gaussian
     76                                          // = 1 --> Pulpo set-up
    6877  Float_t fwhm_resp ;                      // fwhm of the phe_response function (in ns)
    6978  Float_t integ_resp ;                      // area below curve of the phe_response function (in counts * ns)
     
    7382  //    We may end up with a different reponse for the outer pixels
    7483  //
     84  Int_t shape_resp_outer ;                      // index shape of the phe_response function
     85                                          // = 0 --> Gaussian
     86                                          // = 1 --> Pulpo set-up
    7587  Float_t fwhm_resp_outer ;                      // fwhm of the phe_response function (in ns)
    7688  Float_t integ_resp_outer ;                      // area below curve of the phe_response function (in counts * ns)
     
    90102
    91103  MFadc(Int_t pix=577,
     104        Int_t shape=0,
    92105        Float_t ampl=MFADC_RESPONSE_INTEGRAL,
    93106        Float_t fwhm=MFADC_RESPONSE_FWHM,
     107        Int_t shapeout=0,
    94108        Float_t amplout=MFADC_RESPONSE_INTEGRAL,
    95109        Float_t fwhmout=MFADC_RESPONSE_FWHM,
     
    114128  void SetPedestals( Float_t *ped);
    115129
     130  void SetShape( Int_t inner, Int_t outer){
     131    shape_resp=inner;
     132    shape_resp_outer=outer;
     133  }
     134
    116135  void SetFwhm( Float_t fwhm){
    117136    fwhm_resp=fwhm;
     
    136155  void Offset( Float_t, Int_t );
    137156
    138   void SetElecNoise(Float_t value=2.0);
    139 
    140   void ElecNoise(Float_t value=2.0) ;
     157  void SetElecNoise(Float_t value1=2.0, Float_t value2=2.0, UInt_t ninpix=CAMERA_PIXELS);
     158
     159  void ElecNoise();
    141160
    142161  void SetDigitalNoise(Float_t value=2.0);
     
    154173  Float_t GetPedestalNoise (Int_t pix, Int_t ishigh);
    155174
     175  Float_t AddNoiseInSlices( Int_t pix, Int_t ishigh, Int_t n_slices);
     176
    156177  void TriggeredFadc(Float_t time);
    157178
     
    163184
    164185  void SetHigh2LowGain(Float_t h2l) {high2low_gain=h2l;}
     186
     187  Float_t GetShape() {
     188    return shape_resp;
     189  }
    165190
    166191  Float_t GetIntegral() {
Note: See TracChangeset for help on using the changeset viewer.