/[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.12 - (hide annotations) (download)
Thu Mar 15 12:17:10 2007 UTC (17 years, 9 months ago) by pam-fi
Branch: MAIN
Changes since 1.11: +1 -0 lines
workaround to retrieve clusters + other minor adjustments

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 pam-fi 1.10 subroutine analysisflight(fin)
10 mocchiut 1.1
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 pam-fi 1.10 * input flag
21     *
22     * 0 - PFA = ETA
23     * 1 - PFA = COG4
24     integer fin
25    
26 mocchiut 1.1 * flag to chose PFA
27     character*10 PFA
28     common/FINALPFA/PFA
29    
30     c parameter (inf=1.e8) !just a huge number...
31    
32     * external functions
33     external npl
34     external acoordsi,coordsi,nld,coord,dcoord
35    
36     ************************************************************
37     ************************************************************
38     ************************************************************
39     *
40     * track analysis
41     *
42     ************************************************************
43     ************************************************************
44     ************************************************************
45     PFA='ETA'
46 pam-fi 1.11 TRACKMODE = 0
47 pam-fi 1.10 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 pam-fi 1.12 c$$$ DEBUG=.false.
60 pam-fi 1.10
61     if(DEBUG)PRINT*,'P.F.A. --> ',fin,PFA
62 mocchiut 1.1
63     if(DEBUG)then
64     print*,'----------------------------------'
65 pam-fi 1.3 c print*,'START... ',good1,nclstr1,nclstrmax_level2
66 mocchiut 1.1 endif
67    
68     *------------------------------------------------------
69     call init_level2
70 pam-fi 1.9 call init_hough
71 mocchiut 1.1 *------------------------------------------------------
72    
73     *------------------------------------------------------
74     * cut on maximum number of clusters
75     *------------------------------------------------------
76 pam-fi 1.4 c$$$ if(nclstr1.gt.nclstrmax_level2)then
77     c$$$ goto 8800 !fill nt-uple and go to next event
78     c$$$ endif
79 mocchiut 1.1
80     do i=1,nclstr1
81     cl_used(i)=0 !init mask of clusters associated to a track
82     enddo
83    
84     if(DEBUG)then
85     print*,'----------------------------------'
86     print*,iev,' ** ',nev2
87     endif
88    
89     * ///////////////////////////////////////////////
90     * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
91    
92     iflag=0
93     call track_finding(iflag)
94     if(iflag.eq.1)then !bad event
95     goto 880 !fill ntp and go to next event
96     endif
97    
98 pam-fi 1.9 call fill_hough
99 pam-fi 1.7
100 mocchiut 1.1 iflag=0
101     call track_fitting(iflag)
102     if(iflag.eq.1)then !bad event
103     goto 880 !fill ntp and go to next event
104     endif
105    
106    
107    
108     880 continue
109    
110     * **********************************************************
111     * stores info about clusters not associated with any track
112     * **********************************************************
113    
114     call fill_level2_siglets
115    
116     if(DEBUG)then
117    
118     print*,''
119     print*,'DONE!'
120     print*,''
121     print*,'* summary *'
122     print*,'tracks ',ntrk
123     print*,'cl used ',(cl_used(i),i=1,nclstr1)
124     print*,''
125     print*,''
126     endif
127 pam-fi 1.5
128     ngood = 0
129     do iv = 1,nviews
130     ngood = ngood + good1(iv)
131     enddo
132 pam-fi 1.6 c$$$ if(ngood.ne.0)print*,'* WARNING * Event '
133     c$$$ $ ,':LEVEL2 event status: '
134     c$$$ $ ,(good2(i),i=1,nviews)
135 mocchiut 1.1
136     8800 continue
137    
138    
139     * ///////////////////////////////////////////////
140     * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
141    
142     100 continue
143    
144     return
145     end
146    
147    
148     ************************************************************
149    
150    

  ViewVC Help
Powered by ViewVC 1.1.23