/[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.2 by pam-fi, Tue May 30 16:30:37 2006 UTC revision 1.11 by pam-fi, Mon Feb 19 16:28:39 2007 UTC
# Line 6  Line 6 
6  *     - create LEVEL2 ntuple  *     - create LEVEL2 ntuple
7  *  *
8  *************************************************************************  *************************************************************************
9        subroutine analysisflight        subroutine analysisflight(fin)
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    *     0 - PFA = ETA
23    *     1 - PFA = COG4
24          integer fin
25    
26  *     flag to chose PFA  *     flag to chose PFA
27        character*10 PFA        character*10 PFA
28        common/FINALPFA/PFA        common/FINALPFA/PFA
# Line 37  c      parameter (inf=1.e8)      !just a Line 43  c      parameter (inf=1.e8)      !just a
43  ************************************************************  ************************************************************
44  ************************************************************  ************************************************************
45        PFA='ETA'        PFA='ETA'
46          TRACKMODE = 0
47          if(fin.eq.0)PFA='ETA'
48          if(fin.eq.2)PFA='ETA2'
49          if(fin.eq.3)PFA='ETA3'
50          if(fin.eq.4)PFA='ETA4'
51          if(fin.eq.10)PFA='COG'
52          if(fin.eq.11)PFA='COG1'
53          if(fin.eq.12)PFA='COG2'
54          if(fin.eq.13)PFA='COG3'
55          if(fin.eq.14)PFA='COG4'
56    
57    c$$$      PFA='ETA'
58    c$$$      DEBUG=.true.
59    
60          if(DEBUG)PRINT*,'P.F.A. --> ',fin,PFA
61    
62        if(DEBUG)then        if(DEBUG)then
63           print*,'----------------------------------'           print*,'----------------------------------'
64           print*,'START... ',good1,nclstr1,nclstrmax_level2  c         print*,'START... ',good1,nclstr1,nclstrmax_level2
65        endif        endif
66    
67  *------------------------------------------------------  *------------------------------------------------------
 *     LEVEL2 N-TUPLE INITIALIZATIONS  
68        call init_level2        call init_level2
69  c      if(.not.good1)then        call init_hough
       if(good1.eq.0)then  
          goto 8800              !fill nt-uple and go to next event  
       endif  
70  *------------------------------------------------------  *------------------------------------------------------
71                
72  *------------------------------------------------------  *------------------------------------------------------
73  *     cut on maximum number of clusters  *     cut on maximum number of clusters
74  *------------------------------------------------------  *------------------------------------------------------
75        if(nclstr1.gt.nclstrmax_level2)then  c$$$      if(nclstr1.gt.nclstrmax_level2)then
76           goto 8800              !fill nt-uple and go to next event  c$$$         goto 8800              !fill nt-uple and go to next event
77        endif  c$$$      endif
78                
79        do i=1,nclstr1        do i=1,nclstr1
80           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      if(.not.good1)then Line 94  c      if(.not.good1)then
94           goto 880               !fill ntp and go to next event               goto 880               !fill ntp and go to next event    
95        endif        endif
96    
97          call fill_hough
98    
99        iflag=0        iflag=0
100        call track_fitting(iflag)        call track_fitting(iflag)
101        if(iflag.eq.1)then        !bad event        if(iflag.eq.1)then        !bad event
# Line 104  c      if(.not.good1)then Line 123  c      if(.not.good1)then
123           print*,''           print*,''
124           print*,''           print*,''
125        endif        endif
126    
127          ngood = 0
128          do iv = 1,nviews
129             ngood = ngood + good1(iv)
130          enddo
131    c$$$      if(ngood.ne.0)print*,'* WARNING * Event '
132    c$$$     $     ,':LEVEL2 event status: '
133    c$$$     $     ,(good2(i),i=1,nviews)
134                
135   8800 continue   8800 continue
136                

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.23