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 |
43 |
************************************************************ |
************************************************************ |
44 |
************************************************************ |
************************************************************ |
45 |
PFA='ETA' |
PFA='ETA' |
46 |
|
TRACKMODE = 0 |
47 |
|
FACT = 100. |
48 |
|
ISTEPMIN = 3 |
49 |
|
if(fin.eq.0)PFA='ETA' |
50 |
|
if(fin.eq.2)PFA='ETA2' |
51 |
|
if(fin.eq.3)PFA='ETA3' |
52 |
|
if(fin.eq.4)PFA='ETA4' |
53 |
|
if(fin.eq.10)PFA='COG' |
54 |
|
if(fin.eq.11)PFA='COG1' |
55 |
|
if(fin.eq.12)PFA='COG2' |
56 |
|
if(fin.eq.13)PFA='COG3' |
57 |
|
if(fin.eq.14)PFA='COG4' |
58 |
|
|
59 |
|
c$$$ PFA='ETA' |
60 |
|
c$$$ DEBUG=.true. |
61 |
|
c$$$ DEBUG=.false. |
62 |
|
|
63 |
|
if(DEBUG)PRINT*,'P.F.A. --> ',fin,PFA |
64 |
|
|
65 |
if(DEBUG)then |
if(DEBUG)then |
66 |
print*,'----------------------------------' |
print*,'----------------------------------' |
68 |
endif |
endif |
69 |
|
|
70 |
*------------------------------------------------------ |
*------------------------------------------------------ |
|
* LEVEL2 N-TUPLE INITIALIZATIONS |
|
71 |
call init_level2 |
call init_level2 |
72 |
c if(.not.good1)then |
call init_hough |
|
c if(good1.eq.0)then |
|
|
c goto 8800 !fill nt-uple and go to next event |
|
|
c endif |
|
73 |
*------------------------------------------------------ |
*------------------------------------------------------ |
74 |
|
|
75 |
*------------------------------------------------------ |
*------------------------------------------------------ |
76 |
* cut on maximum number of clusters |
* cut on maximum number of clusters |
77 |
*------------------------------------------------------ |
*------------------------------------------------------ |
78 |
if(nclstr1.gt.nclstrmax_level2)then |
c$$$ if(nclstr1.gt.nclstrmax_level2)then |
79 |
goto 8800 !fill nt-uple and go to next event |
c$$$ goto 8800 !fill nt-uple and go to next event |
80 |
endif |
c$$$ endif |
81 |
|
|
82 |
do i=1,nclstr1 |
do i=1,nclstr1 |
83 |
cl_used(i)=0 !init mask of clusters associated to a track |
cl_used(i)=0 !init mask of clusters associated to a track |
97 |
goto 880 !fill ntp and go to next event |
goto 880 !fill ntp and go to next event |
98 |
endif |
endif |
99 |
|
|
100 |
|
call fill_hough |
101 |
|
|
102 |
iflag=0 |
iflag=0 |
103 |
call track_fitting(iflag) |
call track_fitting(iflag) |
104 |
if(iflag.eq.1)then !bad event |
if(iflag.eq.1)then !bad event |
126 |
print*,'' |
print*,'' |
127 |
print*,'' |
print*,'' |
128 |
endif |
endif |
129 |
|
|
130 |
|
ngood = 0 |
131 |
|
do iv = 1,nviews |
132 |
|
ngood = ngood + good1(iv) |
133 |
|
enddo |
134 |
|
c$$$ if(ngood.ne.0)print*,'* WARNING * Event ' |
135 |
|
c$$$ $ ,':LEVEL2 event status: ' |
136 |
|
c$$$ $ ,(good2(i),i=1,nviews) |
137 |
|
|
138 |
8800 continue |
8800 continue |
139 |
|
|