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

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

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

revision 1.3 by pam-fi, Thu Sep 28 14:04:40 2006 UTC revision 1.15 by pam-fi, Mon May 14 11:03:06 2007 UTC
# Line 9  Line 9 
9        subroutine analysisflight        subroutine analysisflight
10    
11        include 'commontracker.f'        include 'commontracker.f'
12          include 'level1.f'
13        include 'common_momanhough.f'        include 'common_momanhough.f'
14        include 'common_mech.f'        include 'common_mech.f'
15        include 'common_xyzPAM.f'        include 'common_xyzPAM.f'
16        include 'common_mini_2.f'        include 'common_mini_2.f'
17        include 'calib.f'        include 'calib.f'
       include 'level1.f'  
18        include 'level2.f'        include 'level2.f'
19    
20    *     input flag
21    *
22    c      integer fin
23    
24  *     flag to chose PFA  *     flag to chose PFA
25        character*10 PFA        character*10 PFA
26        common/FINALPFA/PFA        common/FINALPFA/PFA
# Line 36  c      parameter (inf=1.e8)      !just a Line 40  c      parameter (inf=1.e8)      !just a
40  ************************************************************  ************************************************************
41  ************************************************************  ************************************************************
42  ************************************************************  ************************************************************
43        PFA='ETA'  c$$$      TRACKMODE = 0
44    c$$$      FACT = 100.
45    c$$$      ISTEPMIN = 3
46    
47          call idtoc(pfaid,PFA)
48          
49    c$$$      PFA='COG4'
50    c$$$      if(pfaid.eq.0)PFA='ETA'
51    c$$$      if(pfaid.eq.2)PFA='ETA2'
52    c$$$      if(pfaid.eq.3)PFA='ETA3'
53    c$$$      if(pfaid.eq.4)PFA='ETA4'
54    c$$$      if(pfaid.eq.10)PFA='COG'
55    c$$$      if(pfaid.eq.11)PFA='COG1'
56    c$$$      if(pfaid.eq.12)PFA='COG2'
57    c$$$      if(pfaid.eq.13)PFA='COG3'
58    c$$$      if(pfaid.eq.14)PFA='COG4'
59    ***********************************************************
60    
61    c      if(DEBUG)PRINT*,'P.F.A. --> ',fin,PFA
62    
63        if(DEBUG)then        if(DEBUG)then
64           print*,'----------------------------------'           print*,'----------------------------------'
65  c         print*,'START... ',good1,nclstr1,nclstrmax_level2           print*,'Settings: '
66             print*,'PFA                  ',pfaid,PFA
67             print*,'tracking mode        ',trackmode
68             print*,'fit-tolerance factor ',fact
69             print*,'minimum n.step       ',istepmin
70        endif        endif
71    
72  *------------------------------------------------------  *------------------------------------------------------
 *     LEVEL2 N-TUPLE INITIALIZATIONS  
73        call init_level2        call init_level2
74  c      if(.not.good1)then        call init_hough
 c      if(good1.eq.0)then  
 c         goto 8800              !fill nt-uple and go to next event  
 c      endif  
75  *------------------------------------------------------  *------------------------------------------------------
76                
77  *------------------------------------------------------  *------------------------------------------------------
78  *     cut on maximum number of clusters  *     cut on maximum number of clusters
79  *------------------------------------------------------  *------------------------------------------------------
80        if(nclstr1.gt.nclstrmax_level2)then  c$$$      if(nclstr1.gt.nclstrmax_level2)then
81           goto 8800              !fill nt-uple and go to next event  c$$$         goto 8800              !fill nt-uple and go to next event
82        endif  c$$$      endif
83                
84        do i=1,nclstr1        do i=1,nclstr1
85           cl_used(i)=0           !init mask of clusters associated to a track           cl_used(i)=0           !init mask of clusters associated to a track
# Line 77  c      endif Line 99  c      endif
99           goto 880               !fill ntp and go to next event               goto 880               !fill ntp and go to next event    
100        endif        endif
101    
102          call fill_hough
103    
104        iflag=0        iflag=0
105        call track_fitting(iflag)        call track_fitting(iflag)
106        if(iflag.eq.1)then        !bad event        if(iflag.eq.1)then        !bad event
# Line 104  c      endif Line 128  c      endif
128           print*,''           print*,''
129           print*,''           print*,''
130        endif        endif
131    
132          ngood = 0
133          do iv = 1,nviews
134             ngood = ngood + good1(iv)
135          enddo
136    c$$$      if(ngood.ne.0)print*,'* WARNING * Event '
137    c$$$     $     ,':LEVEL2 event status: '
138    c$$$     $     ,(good2(i),i=1,nviews)
139                
140   8800 continue   8800 continue
141                

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

  ViewVC Help
Powered by ViewVC 1.1.23