- Timestamp:
- 09/16/04 16:56:48 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Simulation/Detector/include-MFadc/MFadc.hxx
r2986 r5079 49 49 private: 50 50 Int_t numpix; 51 Int_t fInnerPixelsNum; // number of inner (small) pixels. 51 52 // 52 53 // then for all pixels the shape of all the analog signals … … 55 56 Float_t pedestal[CAMERA_PIXELS] ; // Pedestal of FADCs 56 57 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. 58 61 Float_t noise[((Int_t) SLICES_MFADC)*1001]; 62 Float_t noise_outer[((Int_t) SLICES_MFADC)*1001]; 59 63 Int_t digital_noise[((Int_t) SLICES_MFADC)*1001]; 60 64 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 64 70 Float_t high2low_gain; 65 71 // 66 72 // first the data for the response function 67 73 // 74 Int_t shape_resp ; // index shape of the phe_response function 75 // = 0 --> Gaussian 76 // = 1 --> Pulpo set-up 68 77 Float_t fwhm_resp ; // fwhm of the phe_response function (in ns) 69 78 Float_t integ_resp ; // area below curve of the phe_response function (in counts * ns) … … 73 82 // We may end up with a different reponse for the outer pixels 74 83 // 84 Int_t shape_resp_outer ; // index shape of the phe_response function 85 // = 0 --> Gaussian 86 // = 1 --> Pulpo set-up 75 87 Float_t fwhm_resp_outer ; // fwhm of the phe_response function (in ns) 76 88 Float_t integ_resp_outer ; // area below curve of the phe_response function (in counts * ns) … … 90 102 91 103 MFadc(Int_t pix=577, 104 Int_t shape=0, 92 105 Float_t ampl=MFADC_RESPONSE_INTEGRAL, 93 106 Float_t fwhm=MFADC_RESPONSE_FWHM, 107 Int_t shapeout=0, 94 108 Float_t amplout=MFADC_RESPONSE_INTEGRAL, 95 109 Float_t fwhmout=MFADC_RESPONSE_FWHM, … … 114 128 void SetPedestals( Float_t *ped); 115 129 130 void SetShape( Int_t inner, Int_t outer){ 131 shape_resp=inner; 132 shape_resp_outer=outer; 133 } 134 116 135 void SetFwhm( Float_t fwhm){ 117 136 fwhm_resp=fwhm; … … 136 155 void Offset( Float_t, Int_t ); 137 156 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(); 141 160 142 161 void SetDigitalNoise(Float_t value=2.0); … … 154 173 Float_t GetPedestalNoise (Int_t pix, Int_t ishigh); 155 174 175 Float_t AddNoiseInSlices( Int_t pix, Int_t ishigh, Int_t n_slices); 176 156 177 void TriggeredFadc(Float_t time); 157 178 … … 163 184 164 185 void SetHigh2LowGain(Float_t h2l) {high2low_gain=h2l;} 186 187 Float_t GetShape() { 188 return shape_resp; 189 } 165 190 166 191 Float_t GetIntegral() {
Note:
See TracChangeset
for help on using the changeset viewer.