/[PAMELA software]/DarthVader/TrackerLevel2/src/F77/cncomp.f
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/src/F77/cncomp.f

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

revision 1.3 by pam-fi, Fri Aug 4 08:18:06 2006 UTC revision 1.4 by pam-fi, Tue Sep 5 12:52:20 2006 UTC
# Line 10  Line 10 
10        subroutine cncomp(i,j,errflag)    !(view, VA1)        subroutine cncomp(i,j,errflag)    !(view, VA1)
11    
12        include 'commontracker.f'        include 'commontracker.f'
13          include 'level1.f'
14        include 'common_reduction.f'        include 'common_reduction.f'
15        include 'calib.f'        include 'calib.f'
16    
# Line 146  c--------------------------------------- Line 147  c---------------------------------------
147        subroutine cnoise(i,j,gulp) !(view, VA1)        subroutine cnoise(i,j,gulp) !(view, VA1)
148    
149        include 'commontracker.f'        include 'commontracker.f'
150          include 'level0.f'
151          include 'level1.f'
152        include 'common_reduction.f'        include 'common_reduction.f'
153        include 'calib.f'        include 'calib.f'
154                
# Line 154  c--------------------------------------- Line 157  c---------------------------------------
157                
158        ncn=0                     !number of strips in cn computation        ncn=0                     !number of strips in cn computation
159        cn(i,j)=0                 !initializes cn variable        cn(i,j)=0                 !initializes cn variable
160        cnflag(i,j)=0            !initialize cn flag OK        cnn(i,j)=0                !initialize cn flag
161    
162        do k=1,nstrips_va1        !loops on strips        do k=1,nstrips_va1        !loops on strips
163  *        tags strange, bad or signal-affected strips  *        tags strange, bad or signal-affected strips
# Line 175  c--------------------------------------- Line 178  c---------------------------------------
178       $        ', VIEW ',i,'  >>> FAILED '       $        ', VIEW ',i,'  >>> FAILED '
179           endif           endif
180           gulp=1           gulp=1
181           cnflag(i,j) = -1           cnn(i,j) = 0
182        else        else
183           cn(i,j)=cn(i,j)/DBLE(ncn) !<<<< computes common noise           cn(i,j)=cn(i,j)/DBLE(ncn) !<<<< computes common noise
184           if(ncn.lt.NSTRIPWARNING) then           cnn(i,j) = ncn
             if(debug)print*,' WARNING - cnoise: ',  
      $        'less than ',NSTRIPWARNING  
      $           ,' strips for CN computation on VA1 ',j,  
      $        ', VIEW ',i              
             cnflag(i,j) = 1  
          endif  
185           gulp=0                           gulp=0                
186             if(verbose.and.ABS(cn(i,j)).gt.1000)
187         $        print*,'Event ',eventn(1)
188         $        ,': cn(',i,',',j,')= ',cn(i,j),' ncn ',ncn
189        endif        endif
190    
191        return        return
# Line 212  c--------------------------------------- Line 212  c---------------------------------------
212        subroutine cutcn(i,j)     !(view, VA1)        subroutine cutcn(i,j)     !(view, VA1)
213    
214        include 'commontracker.f'        include 'commontracker.f'
215          include 'level1.f'
216        include 'common_reduction.f'        include 'common_reduction.f'
217        include 'calib.f'        include 'calib.f'
218    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23