/[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.9 - (show annotations) (download)
Fri Aug 17 14:36:05 2007 UTC (17 years, 3 months ago) by pam-fi
Branch: MAIN
Changes since 1.8: +2 -0 lines
mplemented Landi correction

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

  ViewVC Help
Powered by ViewVC 1.1.23