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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue May 15 14:31:38 2012 UTC (12 years, 7 months ago) by mocchiut
Branch: MAIN
CVS Tags: v10RED, v10REDr01, HEAD
Changes since 1.11: +2 -0 lines
Reprocessing bugs fixed, ToF bugs fixed, new software versions, new quaternions, IGRF bug fixed, code cleanup

1 *************************************************************************
2 *
3 * Common calib.f
4 *
5 * contains CALIB variables definitions
6 *
7 *
8 *************************************************************************
9
10 real incutx !cut to include strips in cluster definition
11 real incuty
12 parameter (clcutx=7.) !cluster seed cut
13 parameter (clcuty=6.)
14 parameter (incutx=4.) !cut to include strips in cluster definition
15 parameter (incuty=4.)
16
17 c------------------------------------------------------------------------
18 c
19 c some parameters to configure data reduction
20 c
21 c------------------------------------------------------------------------
22 c$$$ real clcutx !cluster seed cut
23 c$$$ real clcuty
24 c$$$ real incutx !cut to include strips in cluster definition
25 c$$$ real incuty
26 integer pfaid !if of PFA
27 common/sw/
28 $ pfaid
29 c$$$ $ ,clcutx,clcuty
30 c$$$ $ ,incutx,incuty
31
32 save/sw/
33
34 c------------------------------------------------------------------------
35 c
36 c pedestal, sigma and badstrip variables
37 c
38 c------------------------------------------------------------------------
39
40 real pedestal(nviews,nva1_view,nstrips_va1) !pedestal value
41 real pedestal_t(nviews,nva1_view,nstrips_va1) !pedestal truncated value
42
43 real sigma(nviews,nva1_view,nstrips_va1) !sigma value
44 real sigma_t(nviews,nva1_view,nstrips_va1) !sigma truncated value
45
46 integer bad(nviews,nva1_view,nstrips_va1) !bad strip flag matrix
47 ! (bad=0 --> good strip, bad=1 --> bad strip)
48 ! NB this is different in 2003 test with respect
49 ! to previous analysis
50
51 common/pedsigbad/pedestal,pedestal_t,sigma,sigma_t,bad
52 save/pedsigbad/
53
54
55
56 c------------------------------------------------------------------------
57 c
58 c VA1-mask
59 c
60 c------------------------------------------------------------------------
61 c VA1 mask, from the DB
62 c 0 = force mask
63 c 1 = ---> run-by-run mask ---> event-by-event mask
64 c -1 = ---> event-by-event mask
65 c -------------------------------------
66 integer mask_vk(nviews,nva1_view)
67 c -------------------------------------
68 c VA1 mask run-by-run (set to 0 if <SIG> < SIG_min)
69 c 0 = force mask
70 c 1 = ---> event-by-event mask
71 c -------------------------------------
72 integer mask_vk_run(nviews,nva1_view)
73 c -------------------------------------
74 c VA1 mask event-by-event (set to 0 if CN computation fails)
75 c 0 = force mask
76 c 1 = search clusters
77 c -------------------------------------
78 integer mask_vk_ev(nviews,nva1_view)
79
80 integer mask(nviews,nva1_view,nstrips_va1) !effective mask
81
82 * set from outside F77 routines
83 common/mask/mask_vk,mask_vk_run
84 save/mask/
85 * set event-by-event
86 common/maskev/mask_vk_ev,mask
87
88 c------------------------------------------------------------------------
89 c
90 c eta2, eta3, eta4 pfa correction parameters
91 c
92 c------------------------------------------------------------------------
93 * angular binning
94 parameter (nangmax=21) !maximum number of angular bins
95 integer nangbin
96 real angL(nangmax),angR(nangmax) !Left and Right bin limits
97
98 parameter (netavalmax=500) !eta2 points
99 integer netaval
100 real eta2(netavalmax,nangmax)
101 real feta2(netavalmax,nviews,nladders_view,nangmax)
102 real eta3(netavalmax,nangmax)
103 real feta3(netavalmax,nviews,nladders_view,nangmax)
104 real eta4(netavalmax,nangmax)
105 real feta4(netavalmax,nviews,nladders_view,nangmax)
106 real fcorr(nviews,nladders_view,nangmax)
107 * limit of application of pfa
108 real e2fax,e2tax,e3fax,e3tax,e4fax,e4tax
109 real e2fay,e2tay,e3fay,e3tay,e4fay,e4tay
110
111
112 c$$$ common/angbinning/nangbin,angL,angR
113 c$$$ save/angbinning/
114 c$$$ common/pfa/netaval,eta2,feta2,eta3,feta3,eta4,feta4
115 c$$$ save/pfa/
116
117 common/pfa/nangbin,angL,angR
118 $ ,netaval,eta2,feta2,eta3,feta3,eta4,feta4
119 $ ,fcorr
120 $ ,e2fax,e2tax,e3fax,e3tax,e4fax,e4tax
121 $ ,e2fay,e2tay,e3fay,e3tay,e4fay,e4tay
122 save/pfa/
123
124 c$$$* limit of application of pfa
125 c$$$ parameter (e2fax=0.)
126 c$$$ parameter (e2tax=10.)
127 c$$$ parameter (e3fax=10.)
128 c$$$ parameter (e3tax=15.)
129 c$$$ parameter (e4fax=90.)
130 c$$$ parameter (e4tax=90.)
131 c$$$
132 c$$$ parameter (e2fay=0.)
133 c$$$ parameter (e2tay=20.)
134 c$$$ parameter (e3fay=90.)
135 c$$$ parameter (e3tay=90.)
136 c$$$ parameter (e4fay=90.)
137 c$$$ parameter (e4tay=90.)
138
139 c------------------------------------------------------------------------
140 c
141 c CHARGE CORRELATION
142 c
143 c------------------------------------------------------------------------
144
145 c parameter (chcut=3.) !cut to associate two clusters
146 c parameter (chcut=4.) !cut to associate two clusters
147 parameter (chcut=50.) !cut to associate two clusters
148 parameter (chsatx=1700.) !saturation limit
149 parameter (chsaty=2500.) !saturation limit
150 parameter (chmipx=200.) !mip limit
151 parameter (chmipy=200.) !mip limit
152 * above saturation limit correlation conditions are not applied
153 real kch(nplanes,nladders_view) !angular coeff
154 real cch(nplanes,nladders_view) !const
155 real sch(nplanes,nladders_view) !sigma
156 common/chargeco/kch,cch,sch
157 save/chargeco/
158 c------------------------------------------------------------------------
159 c
160 c MIP
161 c
162 c (mip signal, scaled to 300 micron, in ADC channels)
163 c
164 c------------------------------------------------------------------------
165 real mip(nviews,nladders_view)
166 common/adc2mip/mip
167 save/adc2mip/

  ViewVC Help
Powered by ViewVC 1.1.23