/[PAMELA software]/PamVMC/trk/src/PamVMCTrkDig.cxx
ViewVC logotype

Diff of /PamVMC/trk/src/PamVMCTrkDig.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by nikolas, Wed Feb 18 17:41:10 2009 UTC revision 1.5 by pam-rm2, Fri Jun 12 18:39:56 2009 UTC
# Line 319  void PamVMCTrkDig::Digitize(){ Line 319  void PamVMCTrkDig::Digitize(){
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.;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.23