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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Fri Oct 27 16:08:19 2006 UTC (18 years, 1 month ago) by pam-fi
Branch: MAIN
Changes since 1.3: +4 -9 lines
new version of the Hough transform

1 mocchiut 1.1 *************************************************************************
2     * Program analysis.f
3     *
4     * - reads cluster information (LEVEL1, reduction.f output ntuple)
5     * - perform track identification and fit
6     * - create LEVEL2 ntuple
7     *
8     *************************************************************************
9     subroutine analysisflight
10    
11     include 'commontracker.f'
12 pam-fi 1.4 include 'level1.f'
13 mocchiut 1.1 include 'common_momanhough.f'
14     include 'common_mech.f'
15     include 'common_xyzPAM.f'
16     include 'common_mini_2.f'
17     include 'calib.f'
18     include 'level2.f'
19    
20     * flag to chose PFA
21     character*10 PFA
22     common/FINALPFA/PFA
23    
24     c parameter (inf=1.e8) !just a huge number...
25    
26     * external functions
27     external npl
28     external acoordsi,coordsi,nld,coord,dcoord
29    
30     ************************************************************
31     ************************************************************
32     ************************************************************
33     *
34     * track analysis
35     *
36     ************************************************************
37     ************************************************************
38     ************************************************************
39     PFA='ETA'
40    
41     if(DEBUG)then
42     print*,'----------------------------------'
43 pam-fi 1.3 c print*,'START... ',good1,nclstr1,nclstrmax_level2
44 mocchiut 1.1 endif
45    
46     *------------------------------------------------------
47     call init_level2
48     *------------------------------------------------------
49    
50     *------------------------------------------------------
51     * cut on maximum number of clusters
52     *------------------------------------------------------
53 pam-fi 1.4 c$$$ if(nclstr1.gt.nclstrmax_level2)then
54     c$$$ goto 8800 !fill nt-uple and go to next event
55     c$$$ endif
56 mocchiut 1.1
57     do i=1,nclstr1
58     cl_used(i)=0 !init mask of clusters associated to a track
59     enddo
60    
61     if(DEBUG)then
62     print*,'----------------------------------'
63     print*,iev,' ** ',nev2
64     endif
65    
66     * ///////////////////////////////////////////////
67     * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
68    
69     iflag=0
70     call track_finding(iflag)
71     if(iflag.eq.1)then !bad event
72     goto 880 !fill ntp and go to next event
73     endif
74    
75     iflag=0
76     call track_fitting(iflag)
77     if(iflag.eq.1)then !bad event
78     goto 880 !fill ntp and go to next event
79     endif
80    
81    
82    
83     880 continue
84    
85     * **********************************************************
86     * stores info about clusters not associated with any track
87     * **********************************************************
88    
89     call fill_level2_siglets
90    
91     if(DEBUG)then
92    
93     print*,''
94     print*,'DONE!'
95     print*,''
96     print*,'* summary *'
97     print*,'tracks ',ntrk
98     print*,'cl used ',(cl_used(i),i=1,nclstr1)
99     print*,''
100     print*,''
101     endif
102    
103     8800 continue
104    
105    
106     * ///////////////////////////////////////////////
107     * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
108    
109     100 continue
110    
111     return
112     end
113    
114    
115     ************************************************************
116    
117    

  ViewVC Help
Powered by ViewVC 1.1.23