713 |
xPAM_B = 0.D0 |
xPAM_B = 0.D0 |
714 |
yPAM_B = 0.D0 |
yPAM_B = 0.D0 |
715 |
zPAM_B = 0.D0 |
zPAM_B = 0.D0 |
716 |
c print*,'## xyz_PAM: ',icx,icy,sensor,PFAx,PFAy,angx,angy |
cc print*,'## xyz_PAM: ',icx,icy,sensor,PFAx,PFAy,angx,angy |
717 |
|
|
718 |
if(sensor.lt.1.or.sensor.gt.2)then |
if(sensor.lt.1.or.sensor.gt.2)then |
719 |
print*,'xyz_PAM ***ERROR*** wrong input ' |
print*,'xyz_PAM ***ERROR*** wrong input ' |
805 |
|
|
806 |
20 endif |
20 endif |
807 |
|
|
808 |
c$$$ print*,'## stripx,stripy ',stripx,stripy |
cc print*,'## stripx,stripy ',stripx,stripy |
809 |
|
|
810 |
c=========================================================== |
c=========================================================== |
811 |
C COUPLE |
C COUPLE |
3052 |
call track_init |
call track_init |
3053 |
do ip=1,nplanes !loop on planes |
do ip=1,nplanes !loop on planes |
3054 |
|
|
3055 |
|
if(DEBUG.EQ.1)print*,' ........... plane ',ip,' ........... ' |
3056 |
|
|
3057 |
xP=XV_STORE(nplanes-ip+1,ibest) |
xP=XV_STORE(nplanes-ip+1,ibest) |
3058 |
yP=YV_STORE(nplanes-ip+1,ibest) |
yP=YV_STORE(nplanes-ip+1,ibest) |
3059 |
zP=ZV_STORE(nplanes-ip+1,ibest) |
zP=ZV_STORE(nplanes-ip+1,ibest) |
3302 |
*----- single clusters ----------------------------------------------- |
*----- single clusters ----------------------------------------------- |
3303 |
c print*,'## ncls(',ip,') ',ncls(ip) |
c print*,'## ncls(',ip,') ',ncls(ip) |
3304 |
do ic=1,ncls(ip) !loop on single clusters |
do ic=1,ncls(ip) !loop on single clusters |
3305 |
|
c print*,'-',ic,'-' |
3306 |
icl=cls(ip,ic) |
icl=cls(ip,ic) |
3307 |
c if(cl_used(icl).eq.1.or. !if the cluster is already used |
c if(cl_used(icl).eq.1.or. !if the cluster is already used |
3308 |
if(cl_used(icl).ne.0.or. !if the cluster is already used !(3) |
if(cl_used(icl).ne.0.or. !if the cluster is already used !(3) |
3562 |
ys(1,ip)=0 |
ys(1,ip)=0 |
3563 |
ys(2,ip)=0 |
ys(2,ip)=0 |
3564 |
sgnlys(ip)=0 |
sgnlys(ip)=0 |
3565 |
|
sxbad(ip)=0 |
3566 |
|
sybad(ip)=0 |
3567 |
|
multmaxsx(ip)=0 |
3568 |
|
multmaxsy(ip)=0 |
3569 |
enddo |
enddo |
3570 |
end |
end |
3571 |
|
|
3879 |
ip=nplanes-npl(VIEW(icl))+1 |
ip=nplanes-npl(VIEW(icl))+1 |
3880 |
|
|
3881 |
if(cl_used(icl).eq.0)then !cluster not included in any track |
if(cl_used(icl).eq.0)then !cluster not included in any track |
3882 |
|
|
3883 |
if(mod(VIEW(icl),2).eq.0)then !=== X views |
if(mod(VIEW(icl),2).eq.0)then !=== X views |
3884 |
|
|
3885 |
nclsx = nclsx + 1 |
nclsx = nclsx + 1 |
3886 |
planex(nclsx) = ip |
planex(nclsx) = ip |
3887 |
sgnlxs(nclsx) = sgnl(icl)/mip(VIEW(icl),LADDER(icl)) |
sgnlxs(nclsx) = sgnl(icl)/mip(VIEW(icl),LADDER(icl)) |
3888 |
if(nsatstrips(icl).gt.0)sgnlxs(nclsx)=-sgnlxs(nclsx) |
if(nsatstrips(icl).gt.0)sgnlxs(nclsx)=-sgnlxs(nclsx) |
3889 |
clsx(nclsx) = icl |
clsx(nclsx) = icl |
3890 |
|
sxbad(nclsx) = nbadstrips(1,icl) |
3891 |
|
multmaxsx(nclsx) = maxs(icl)+10000*mult(icl) |
3892 |
|
|
3893 |
|
cc print*,icl,' >>>> ',sxbad(nclsx) |
3894 |
|
|
3895 |
do is=1,2 |
do is=1,2 |
3896 |
c call xyz_PAM(icl,0,is,'COG1',' ',0.,0.) |
c call xyz_PAM(icl,0,is,'COG1',' ',0.,0.) |
3897 |
c call xyz_PAM(icl,0,is,PFAdef,' ',0.,0.) |
c call xyz_PAM(icl,0,is,PFAdef,' ',0.,0.) |
3909 |
sgnlys(nclsy) = sgnl(icl)/mip(VIEW(icl),LADDER(icl)) |
sgnlys(nclsy) = sgnl(icl)/mip(VIEW(icl),LADDER(icl)) |
3910 |
if(nsatstrips(icl).gt.0)sgnlys(nclsy)=-sgnlys(nclsy) |
if(nsatstrips(icl).gt.0)sgnlys(nclsy)=-sgnlys(nclsy) |
3911 |
clsy(nclsy) = icl |
clsy(nclsy) = icl |
3912 |
|
sybad(nclsy) = nbadstrips(1,icl) |
3913 |
|
multmaxsy(nclsy) = maxs(icl)+10000*mult(icl) |
3914 |
|
|
3915 |
|
cc print*,icl,' >>>> ',sybad(nclsy) |
3916 |
|
|
3917 |
do is=1,2 |
do is=1,2 |
3918 |
c call xyz_PAM(0,icl,is,' ','COG1',0.,0.) |
c call xyz_PAM(0,icl,is,' ','COG1',0.,0.) |
3919 |
c call xyz_PAM(0,icl,is,' ',PFAdef,0.,0.) |
c call xyz_PAM(0,icl,is,' ',PFAdef,0.,0.) |