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

Annotation of /DarthVader/TrackerLevel2/inc/F77/common_mini_ext.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Wed Jun 4 10:27:21 2014 UTC (10 years, 6 months ago) by pam-ts
Branch: MAIN
CVS Tags: v10REDr01, v10RED, HEAD
Some missing routines added

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

  ViewVC Help
Powered by ViewVC 1.1.23