/[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.2 - (hide annotations) (download)
Tue May 30 16:30:37 2006 UTC (18 years, 6 months ago) by pam-fi
Branch: MAIN
CVS Tags: v0r02, v1r01beta, v1r00, v1r01, v2r00BETA
Changes since 1.1: +0 -10 lines
Error handling from F77 routine / Fixed some bugs with default calibration

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     include 'common_momanhough.f'
13     include 'common_mech.f'
14     include 'common_xyzPAM.f'
15     include 'common_mini_2.f'
16     include 'calib.f'
17     include 'level1.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     print*,'START... ',good1,nclstr1,nclstrmax_level2
44     endif
45    
46     *------------------------------------------------------
47     * LEVEL2 N-TUPLE INITIALIZATIONS
48     call init_level2
49     c if(.not.good1)then
50     if(good1.eq.0)then
51     goto 8800 !fill nt-uple and go to next event
52     endif
53     *------------------------------------------------------
54    
55     *------------------------------------------------------
56     * cut on maximum number of clusters
57     *------------------------------------------------------
58     if(nclstr1.gt.nclstrmax_level2)then
59     goto 8800 !fill nt-uple and go to next event
60     endif
61    
62     do i=1,nclstr1
63     cl_used(i)=0 !init mask of clusters associated to a track
64     enddo
65    
66     if(DEBUG)then
67     print*,'----------------------------------'
68     print*,iev,' ** ',nev2
69     endif
70    
71     * ///////////////////////////////////////////////
72     * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
73    
74     iflag=0
75     call track_finding(iflag)
76     if(iflag.eq.1)then !bad event
77     goto 880 !fill ntp and go to next event
78     endif
79    
80     iflag=0
81     call track_fitting(iflag)
82     if(iflag.eq.1)then !bad event
83     goto 880 !fill ntp and go to next event
84     endif
85    
86    
87    
88     880 continue
89    
90     * **********************************************************
91     * stores info about clusters not associated with any track
92     * **********************************************************
93    
94     call fill_level2_siglets
95    
96     if(DEBUG)then
97    
98     print*,''
99     print*,'DONE!'
100     print*,''
101     print*,'* summary *'
102     print*,'tracks ',ntrk
103     print*,'cl used ',(cl_used(i),i=1,nclstr1)
104     print*,''
105     print*,''
106     endif
107    
108     8800 continue
109    
110    
111     * ///////////////////////////////////////////////
112     * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
113    
114     100 continue
115    
116     return
117     end
118    
119    
120     ************************************************************
121    
122    

  ViewVC Help
Powered by ViewVC 1.1.23