319 |
|
|
320 |
for (Int_t i=0; i<fNladder;i++) { |
for (Int_t i=0; i<fNladder;i++) { |
321 |
|
|
322 |
Float_t commonN1=gRandom->Gaus(0.,fSigmaCommon); |
Float_t commonN1=frandom->Gaus(0.,fSigmaCommon); |
323 |
Float_t commonN2=gRandom->Gaus(0.,fSigmaCommon); |
Float_t commonN2=frandom->Gaus(0.,fSigmaCommon); |
324 |
for (Int_t k=0; k<fNstrips_ladder;k++) { |
for (Int_t k=0; k<fNstrips_ladder;k++) { |
325 |
Nstrip=i*fNstrips_ladder+k; |
Nstrip=i*fNstrips_ladder+k; |
326 |
Float_t Sigma=Abs(fSigmaTrack[j][Nstrip]); |
Float_t Sigma=Abs(fSigmaTrack[j][Nstrip]); |
327 |
AdcTrack[j][Nstrip]=gRandom->Gaus(fPedeTrack[j][Nstrip],Sigma ); |
AdcTrack[j][Nstrip]=frandom->Gaus(fPedeTrack[j][Nstrip],Sigma ); |
328 |
if(k<4*128) {AdcTrack[j][Nstrip] += commonN1;} // full correlation of 4 VA1 Com. Noise |
if(k<4*128) {AdcTrack[j][Nstrip] += commonN1;} // full correlation of 4 VA1 Com. Noise |
329 |
else {AdcTrack[j][Nstrip] += commonN2;} // full correlation of 4 VA1 Com. Noise |
else {AdcTrack[j][Nstrip] += commonN2;} // full correlation of 4 VA1 Com. Noise |
330 |
if(AdcTrack[j][Nstrip] < 0. ) AdcTrack[j][Nstrip]=0.; |
if(AdcTrack[j][Nstrip] < 0. ) AdcTrack[j][Nstrip]=0.; |