| 1 |
|
|
| 2 |
|
|
| 3 |
|
subroutine idtoc(ipfa,cpfa) |
| 4 |
|
|
| 5 |
|
integer ipfa |
| 6 |
|
character*4 cpfa |
| 7 |
|
|
| 8 |
|
CPFA='COG4' |
| 9 |
|
if(ipfa.eq.0)CPFA='ETA' |
| 10 |
|
if(ipfa.eq.2)CPFA='ETA2' |
| 11 |
|
if(ipfa.eq.3)CPFA='ETA3' |
| 12 |
|
if(ipfa.eq.4)CPFA='ETA4' |
| 13 |
|
if(ipfa.eq.10)CPFA='COG' |
| 14 |
|
if(ipfa.eq.11)CPFA='COG1' |
| 15 |
|
if(ipfa.eq.12)CPFA='COG2' |
| 16 |
|
if(ipfa.eq.13)CPFA='COG3' |
| 17 |
|
if(ipfa.eq.14)CPFA='COG4' |
| 18 |
|
|
| 19 |
|
end |
| 20 |
|
|
| 21 |
*** * * * *** * * * *** * * * *** * * * *** * * * *** * * * *** |
*** * * * *** * * * *** * * * *** * * * *** * * * *** * * * *** |
| 22 |
* this file contains all subroutines and functions |
* this file contains all subroutines and functions |
| 23 |
* that are needed for position finding algorithms |
* that are needed for position finding algorithms |
| 164 |
end |
end |
| 165 |
|
|
| 166 |
*** * * * *** * * * *** * * * *** * * * *** * * * *** * * * *** |
*** * * * *** * * * *** * * * *** * * * *** * * * *** * * * *** |
| 167 |
real function ris_eta(ic,angle) |
c real function riseta(ic,angle) |
| 168 |
|
real function riseta(iview,angle) |
| 169 |
*-------------------------------------------------------------- |
*-------------------------------------------------------------- |
| 170 |
* this function returns the average spatial resolution |
* this function returns the average spatial resolution |
| 171 |
* (in cm) for the ETA algorithm (function pfaeta(ic,angle)) |
* (in cm) for the ETA algorithm (function pfaeta(ic,angle)) |
| 180 |
include 'level1.f' |
include 'level1.f' |
| 181 |
include 'calib.f' |
include 'calib.f' |
| 182 |
|
|
| 183 |
ris_eta = 0 |
riseta = 0 |
| 184 |
|
|
| 185 |
if(mod(int(VIEW(ic)),2).eq.1)then !Y-view |
c if(mod(int(VIEW(ic)),2).eq.1)then !Y-view |
| 186 |
|
if(mod(iview,2).eq.1)then !Y-view |
| 187 |
|
|
| 188 |
|
|
| 189 |
if( abs(angle).ge.e2fay.and.abs(angle).le.e2tay )then |
if( abs(angle).ge.e2fay.and.abs(angle).le.e2tay )then |
| 190 |
ris_eta = risy_eta2(angle) |
riseta = risy_eta2(angle) |
| 191 |
elseif( abs(angle).ge.e3fay.and.abs(angle).le.e3tay )then |
elseif( abs(angle).ge.e3fay.and.abs(angle).le.e3tay )then |
| 192 |
ris_eta = risy_cog(angle) !ATTENZIONE!! |
riseta = risy_cog(angle) !ATTENZIONE!! |
| 193 |
elseif( abs(angle).ge.e4fay.and.abs(angle).le.e4tay )then |
elseif( abs(angle).ge.e4fay.and.abs(angle).le.e4tay )then |
| 194 |
ris_eta = risy_cog(angle) !ATTENZIONE!! |
riseta = risy_cog(angle) !ATTENZIONE!! |
| 195 |
else |
else |
| 196 |
ris_eta = risy_cog(angle) |
riseta = risy_cog(angle) |
| 197 |
endif |
endif |
| 198 |
|
|
| 199 |
else !X-view |
else !X-view |
| 200 |
|
|
| 201 |
if( abs(angle).ge.e2fax.and.abs(angle).le.e2tax )then |
if( abs(angle).ge.e2fax.and.abs(angle).le.e2tax )then |
| 202 |
ris_eta = risx_eta2(angle) |
riseta = risx_eta2(angle) |
| 203 |
elseif( abs(angle).ge.e3fax.and.abs(angle).le.e3tax )then |
elseif( abs(angle).ge.e3fax.and.abs(angle).le.e3tax )then |
| 204 |
ris_eta = risx_eta3(angle) |
riseta = risx_eta3(angle) |
| 205 |
elseif( abs(angle).ge.e4fax.and.abs(angle).le.e4tax )then |
elseif( abs(angle).ge.e4fax.and.abs(angle).le.e4tax )then |
| 206 |
ris_eta = risx_eta4(angle) |
riseta = risx_eta4(angle) |
| 207 |
else |
else |
| 208 |
ris_eta = risx_cog(angle) |
riseta = risx_cog(angle) |
| 209 |
endif |
endif |
| 210 |
|
|
| 211 |
endif |
endif |
| 212 |
|
|
| 213 |
|
print*,'---- ',riseta,iview,angle |
| 214 |
|
|
| 215 |
100 return |
100 return |
| 216 |
end |
end |
| 217 |
|
|