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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Tue Nov 7 15:55:11 2006 UTC (18 years, 1 month ago) by pam-fi
Branch: MAIN
Changes since 1.4: +8 -0 lines
track fit optimized and some bugs fixed

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 include 'level1.f'
13 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 c print*,'START... ',good1,nclstr1,nclstrmax_level2
44 endif
45
46 *------------------------------------------------------
47 call init_level2
48 *------------------------------------------------------
49
50 *------------------------------------------------------
51 * cut on maximum number of clusters
52 *------------------------------------------------------
53 c$$$ if(nclstr1.gt.nclstrmax_level2)then
54 c$$$ goto 8800 !fill nt-uple and go to next event
55 c$$$ endif
56
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 ngood = 0
104 do iv = 1,nviews
105 ngood = ngood + good1(iv)
106 enddo
107 if(ngood.ne.0)print*,'* WARNING * Event '
108 $ ,':LEVEL2 event status: '
109 $ ,(good2(i),i=1,nviews)
110
111 8800 continue
112
113
114 * ///////////////////////////////////////////////
115 * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
116
117 100 continue
118
119 return
120 end
121
122
123 ************************************************************
124
125

  ViewVC Help
Powered by ViewVC 1.1.23