303 |
* 1st) decreasing n.points |
* 1st) decreasing n.points |
304 |
* 2nd) increasing chi**2 |
* 2nd) increasing chi**2 |
305 |
* ------------------------------------------------------- |
* ------------------------------------------------------- |
306 |
rchi2best=1000000000. |
rchi2best=1000000000. |
307 |
ndofbest=0 |
ndofbest=0 |
308 |
do i=1,ntracks |
do i=1,ntracks |
309 |
ndof=0 |
ndof=0 |
528 |
|
|
529 |
|
|
530 |
* --- and store the results -------------------------------- |
* --- and store the results -------------------------------- |
|
ntrk = ntrk + 1 !counter of found tracks |
|
|
if(.not.FIMAGE |
|
|
$ .and.iimage.eq.0) image(ntrk)= 0 |
|
|
if(.not.FIMAGE |
|
|
$ .and.iimage.ne.0)image(ntrk)=ntrk+1 !this is the image of the next |
|
|
if(FIMAGE) image(ntrk)=ntrk-1 !this is the image of the previous |
|
|
call fill_level2_tracks(ntrk) !==> good2=.true. |
|
|
|
|
531 |
if(ntrk.eq.NTRKMAX)then |
if(ntrk.eq.NTRKMAX)then |
532 |
if(verbose.eq.1) |
if(verbose.eq.1) |
533 |
$ print*, |
$ print*, |
537 |
cc good2=.false. |
cc good2=.false. |
538 |
goto 880 !fill ntp and go to next event |
goto 880 !fill ntp and go to next event |
539 |
endif |
endif |
540 |
|
|
541 |
|
ntrk = ntrk + 1 !counter of found tracks |
542 |
|
if(.not.FIMAGE |
543 |
|
$ .and.iimage.eq.0) image(ntrk)= 0 |
544 |
|
if(.not.FIMAGE |
545 |
|
$ .and.iimage.ne.0)image(ntrk)=ntrk+1 !this is the image of the next |
546 |
|
if(FIMAGE) image(ntrk)=ntrk-1 !this is the image of the previous |
547 |
|
call fill_level2_tracks(ntrk) !==> good2=.true. |
548 |
|
|
549 |
|
c$$$ if(ntrk.eq.NTRKMAX)then |
550 |
|
c$$$ if(verbose.eq.1) |
551 |
|
c$$$ $ print*, |
552 |
|
c$$$ $ '** warning ** number of identified '// |
553 |
|
c$$$ $ 'tracks exceeds vector dimension ' |
554 |
|
c$$$ $ ,'( ',NTRKMAX,' )' |
555 |
|
c$$$cc good2=.false. |
556 |
|
c$$$ goto 880 !fill ntp and go to next event |
557 |
|
c$$$ endif |
558 |
if(iimage.ne.0)then |
if(iimage.ne.0)then |
559 |
FIMAGE=.true. ! |
FIMAGE=.true. ! |
560 |
goto 1212 !>>> fit image-track |
goto 1212 !>>> fit image-track |
716 |
stripx = stripx + corr |
stripx = stripx + corr |
717 |
resxPAM = res |
resxPAM = res |
718 |
|
|
719 |
10 endif |
10 continue |
720 |
|
endif |
721 |
|
|
722 |
* ----------------- |
* ----------------- |
723 |
* CLUSTER Y |
* CLUSTER Y |
763 |
stripy = stripy + corr |
stripy = stripy + corr |
764 |
resyPAM = res |
resyPAM = res |
765 |
|
|
766 |
20 endif |
20 continue |
767 |
|
endif |
768 |
|
|
769 |
|
|
770 |
c=========================================================== |
c=========================================================== |
3894 |
if(ip.eq.6.and.ssensor.ne.0)ssensor = 3 - ssensor !notazione paolo x align |
if(ip.eq.6.and.ssensor.ne.0)ssensor = 3 - ssensor !notazione paolo x align |
3895 |
LS(IP,ntr) = ssensor+10*sladder |
LS(IP,ntr) = ssensor+10*sladder |
3896 |
|
|
3897 |
if(id.ne.0)then |
c if(id.ne.0)then |
3898 |
|
CCCCCC(10 novembre 2009) PATCH X NUCLEI |
3899 |
|
C non ho capito perche', ma durante il ritracciamento dei nuclei |
3900 |
|
C (quando una traccia viene trovata ma non e' buona) c'e' qualche variabile |
3901 |
|
C che non viene reinizializzata correttamente e i cluster esclusi |
3902 |
|
C dal fit risultano ancora inclusi... |
3903 |
|
C |
3904 |
|
cltrx(ip,ntr) = 0 |
3905 |
|
cltry(ip,ntr) = 0 |
3906 |
|
if( |
3907 |
|
$ xgood_nt(ip,ntr).eq.1.and.ygood_nt(ip,ntr).eq.1 |
3908 |
|
$ .and. |
3909 |
|
$ id.ne.0)then |
3910 |
|
|
3911 |
c >>> is a couple |
c >>> is a couple |
3912 |
cltrx(ip,ntr) = clx(nplanes-ip+1,icp_cp(id)) |
cltrx(ip,ntr) = clx(nplanes-ip+1,icp_cp(id)) |
3913 |
cltry(ip,ntr) = cly(nplanes-ip+1,icp_cp(id)) |
cltry(ip,ntr) = cly(nplanes-ip+1,icp_cp(id)) |