Changeset 2291 for trunk/MagicSoft/Simulation/Detector
- Timestamp:
- 07/17/03 19:07:40 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx
r1201 r2291 55 55 56 56 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. 58 62 59 63 // 60 64 // first the data for the response function 61 65 // 62 Float_t fwhm_resp ; // fwhm of the phe_response function 63 Float_t ampl_resp ; // a mplitude 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) 64 68 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 65 76 // 66 77 // RandomGenerator for the Electonic Noise … … 72 83 public: 73 84 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) ; 75 89 76 90 void Reset() ; 77 91 92 void Fill( Int_t, Float_t, Float_t, Int_t ) ; 93 78 94 void Fill( Int_t, Float_t, Float_t ) ; 95 96 void FillOuter( Int_t, Float_t, Float_t ) ; 79 97 80 98 void Set( Int_t iPix, Float_t res[(Int_t) SLICES_MFADC]); … … 94 112 } 95 113 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 96 122 void Baseline(); 97 123 … … 99 125 100 126 void Offset( Float_t, Int_t ); 127 128 void SetElecNoise(Float_t value=2.0); 101 129 102 130 void ElecNoise(Float_t value=2.0) ; … … 116 144 UChar_t GetFadcSignal(Int_t pixel, Int_t slice); 117 145 146 UChar_t GetFadcLowGainSignal(Int_t pixel, Int_t slice); 147 118 148 Float_t GetAmplitude() { 119 149 return ampl_resp ; … … 124 154 } 125 155 156 Float_t GetAmplitudeOuter() { 157 return ampl_resp_outer ; 158 } 159 160 Float_t GetFwhmOuter() { 161 return fwhm_resp_outer ; 162 } 126 163 127 164 } ;
Note:
See TracChangeset
for help on using the changeset viewer.