/[PAMELA software]/DarthVader/TrackerLevel2/inc/F77/common_mini_2.f
ViewVC logotype

Contents of /DarthVader/TrackerLevel2/inc/F77/common_mini_2.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Thu Nov 20 15:06:25 2008 UTC (16 years, 2 months ago) by bongi
Branch: MAIN
Changes since 1.11: +6 -2 lines
change in the fit method fot singlets

1 ***************************************************************************
2 *
3 * Common for the track analysis, performed by the routine mini.f
4 *
5 ***************************************************************************
6 c PARAMETER (PIGR=3.141592654)!???????????????????
7
8 * -------------------------------------------------------------------------
9 * A TRACK is defined by:
10 * - the measured points associated to it
11 * - their spatial resolution
12 * - the track status vector AL-pha
13 *
14 * This common must be filled when calling mini_2. After the fit,
15 * the initial values of AL-pha (initial guess, for instance from Hough)
16 * are replaced with the minimization result.
17 *
18 * About the measured points:
19 * - a COUPLE defines a point in the space; in this case you should set
20 *
21 * XGOOD = 1
22 * YGOOD = 1
23 * XM,YM,ZM = coordinates of the point in cm
24 * RESX = spatial resolution of cl-x
25 * RESY = spatial resolution of cl-y
26 *
27 * - a SINGLET (single cluster x/y) defines a segment AB, parallel to
28 * the x/y strips; in this case you should set, for example in the case
29 * of a cl-x:
30 *
31 * XGOOD = 1
32 * YGOOD = 0
33 * ZM = average z coordinate of the segment AB in cm
34 * XM_A,YM_A = coordinates of extreme point A
35 * XM_B,YM_B = coordinates of extreme point B
36 * RESX = spatial resolution of cl-x
37 *
38 * NB!!! ZM must be always initialized, at least with the mechanical positions
39 *
40 * (All the needed quantities for couples and singlets can be evaluated
41 * by means of the routine xyz_PAM)
42 * -------------------------------------------------------------------------
43
44
45 REAL*8 AL
46 REAL*8 XM,YM,ZM
47 REAL*8 XM_A,YM_A,ZM_A
48 REAL*8 XM_B,YM_B,ZM_B
49 REAL*8 RESX,RESY
50 REAL*8 TAILX,TAILY
51 REAL*8 XGOOD,YGOOD
52 REAL*8 DEDXTRK_X
53 REAL*8 DEDXTRK_Y
54 REAL*8 ZINI ! ***PP***
55 REAL*8 PFIXED ! ***PP***
56 REAL*8 CHI2
57 REAL*8 XV,YV,ZV
58 REAL*8 XV_A,YV_A,ZV_A
59 REAL*8 XV_B,YV_B,ZV_B
60 REAL*8 AXV,AYV
61 REAL*8 COV
62 REAL*8 FACT
63 INTEGER NSTEP
64 INTEGER IDCAND
65 INTEGER TRACKMODE
66 INTEGER ISTEPMIN
67 COMMON/TRACK/
68 $ AL(5) !track parameters
69 $ ,XM(NPLANES),YM(NPLANES),ZM(NPLANES) !couple => xyz point
70 $ ,XM_A(NPLANES),YM_A(NPLANES),ZM_A(NPLANES) !single cl => segment AB
71 $ ,XM_B(NPLANES),YM_B(NPLANES),ZM_B(NPLANES) !
72 $ ,RESX(NPLANES),RESY(NPLANES) !spatial resolution
73 $ ,TAILX(NPLANES),TAILY(NPLANES) !tails in the resolution
74 $ ,XGOOD(NPLANES),YGOOD(NPLANES) !mask of included views
75 c $ ,DEDXTRK(NPLANES) !energy release
76 $ ,DEDXTRK_X(NPLANES),DEDXTRK_Y(NPLANES)
77 $ ,ZINI
78 $ ,PFIXED
79 $ ,CHI2
80 $ ,XV(NPLANES),YV(NPLANES),ZV(NPLANES)
81 $ ,XV_A(NPLANES),YV_A(NPLANES),ZV_A(NPLANES) !single cl => segment AB
82 $ ,XV_B(NPLANES),YV_B(NPLANES),ZV_B(NPLANES) !
83 $ ,AXV(NPLANES),AYV(NPLANES)
84 $ ,COV(5,5)
85 $ ,FACT ! factor scale for tracking precision
86 $ ,NSTEP
87 $ ,IDCAND !(2) track-candidate ID (to relate some level1 info)
88 $ ,TRACKMODE ! tracking mode, 0=normal, 1=with bremsstrahlung
89 $ ,ISTEPMIN ! minimum number of step during tracking
90 c******************************************************
91 cccccc 06/10/2005 modified by elena vannuccini ---> (1)
92 cccccc 17/08/2006 modified by elena vannuccini ---> (2)
93 c******************************************************
94
95
96 * -------------------------------------------------------------------------
97 * The FIT info includes:
98 * - REDUCED chi2
99 * - number of d.o.f.
100 * - evaluated coordinates (track intersection with the silicon planes)
101 * - projected angles
102 * - parameter covariance matrix
103 * -------------------------------------------------------------------------
104 c$$$ REAL*8 ZINI ! ***PP***
105 c$$$ REAL*8 PFIXED ! ***PP***
106 c$$$ REAL*8 CHI2
107 c$$$ REAL*8 XV,YV,ZV
108 c$$$ REAL*8 AXV,AYV
109 c$$$ REAL*8 COV
110 c$$$ COMMON/FIT_INFO/
111 c$$$ $ ZINI
112 c$$$ $ ,PFIXED
113 c$$$ $ ,CHI2
114 c$$$ $ ,XV(NPLANES),YV(NPLANES),ZV(NPLANES)
115 c$$$ $ ,AXV(NPLANES),AYV(NPLANES)
116 c$$$ $ ,COV(5,5)
117
118
119
120 * -------------------------------------------------------------------------
121 * Other commons needed by the minimization procedures:
122 * -------------------------------------------------------------------------
123 * computation of chi^2 and its derivatives
124 REAL*8 DAL
125 REAL*8 CHI2D,CHI2DOLD,CHI2DD !first and second derivatives of chi^2
126 REAL*8 DXDAL,DYDAL !first derivatives of x and y on AL-pha
127 REAL*8 STEPAL !
128 ***PP*** REAL*8 ZINI !z coordinate of reference plane
129 COMMON/MINICOM/
130 $ DAL(5)
131 $ ,CHI2D(5),CHI2DOLD(5),CHI2DD(5,5)
132 $ ,DXDAL(NPLANES,5),DYDAL(NPLANES,5)
133 $ ,STEPAL(5)
134 ***PP*** $ ,ZINI
135
136 * -------------------------------------------------------------------------
137 * convergence conditions
138 REAL*8 ALTOL !tolerances on AL-pha parameters
139 REAL*8 ALMAX,ALMIN !maximum and minimum value for AL-pha parameters
140 INTEGER ISTEPMAX !maximum number of steps
141 COMMON/MINICON/
142 $ ALTOL(5)
143 $ ,ALMAX(5),ALMIN(5)
144 $ ,ISTEPMAX
145
146
147 * -------------------------------------------------------------------------
148 * variables for the tracking (routine posxy)
149 REAL*8 VECT,VECTINI,VOUT !vectors for Runge-Kutta method
150 REAL*8 TOLL !tolerance from plane
151 REAL*8 STEPMAX !maximum number of steps
152 REAL*8 CHARGE !sign of electric charge
153 COMMON/TRACKING/VECT(7),VECTINI(7),VOUT(7),TOLL,STEPMAX,
154 $ CHARGE
155
156 * -------------------------------------------------------------------------
157 * variables for the DeltaB coorection
158 REAL*8 DELTA0,DELTA1,DLT ! DELTA-DEF = DELTA0 + DELTA1 x Y
159 COMMON/DELTAB/DELTA0,DELTA1,DLT
160
161

  ViewVC Help
Powered by ViewVC 1.1.23