| 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 |
|
|
| 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 |
|
|
| 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 |
| 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 |
| 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 |
|
|