1 |
************************************************************************* |
2 |
* |
3 |
* Common calib.f |
4 |
* |
5 |
* contains CALIB variables definitions |
6 |
* |
7 |
* |
8 |
************************************************************************* |
9 |
|
10 |
c------------------------------------------------------------------------ |
11 |
c |
12 |
c pedestal, sigma and badstrip variables |
13 |
c |
14 |
c------------------------------------------------------------------------ |
15 |
|
16 |
parameter (id_hi_bad=100) !badstrip histo identifier |
17 |
parameter (id_hi_ped=200) !pedestal histo identifier |
18 |
parameter (id_hi_sig=300) !sigma histo identifier |
19 |
|
20 |
real pedestal(nviews,nva1_view,nstrips_va1) !pedestal value |
21 |
real pedestal_t(nviews,nva1_view,nstrips_va1) !pedestal truncated value |
22 |
|
23 |
real sigma(nviews,nva1_view,nstrips_va1) !sigma value |
24 |
real sigma_t(nviews,nva1_view,nstrips_va1) !sigma truncated value |
25 |
|
26 |
integer bad(nviews,nva1_view,nstrips_va1) !bad strip flag matrix |
27 |
! (bad=0 --> good strip, bad=1 --> bad strip) |
28 |
! NB this is different in 2003 test with respect |
29 |
! to previous analysis |
30 |
|
31 |
common/pedsigbad/pedestal,pedestal_t,sigma,sigma_t,bad |
32 |
save/pedsigbad/ |
33 |
|
34 |
|
35 |
parameter (clcutx=7.) !cluster seed cut |
36 |
parameter (clcuty=7.) |
37 |
parameter (incutx=4.) !cut to include strips in cluster definition |
38 |
parameter (incuty=4.) |
39 |
|
40 |
|
41 |
parameter (id_hi_mask=400) !mask histo identifier |
42 |
|
43 |
integer mask(nviews,nva1_view,nstrips_va1) |
44 |
integer mask_vk(nviews,nva1_view) |
45 |
|
46 |
common/mask/mask,mask_vk |
47 |
save/mask/ |
48 |
|
49 |
c------------------------------------------------------------------------ |
50 |
c |
51 |
c eta2, eta3, eta4 pfa correction parameters |
52 |
c |
53 |
c------------------------------------------------------------------------ |
54 |
* angular binning |
55 |
* NB the angular binning is defined in common_preanalysis.f |
56 |
* here are defined variables to retrieve calibration info |
57 |
* (for processing levels next to 1) |
58 |
parameter (nangmax=21) !maximum number of angular bins |
59 |
integer nangbin |
60 |
real angL(nangmax),angR(nangmax) !Left and Right bin limits |
61 |
|
62 |
parameter (netavalmax=150) !eta2 points |
63 |
integer netaval |
64 |
real eta2(netavalmax,nangmax) |
65 |
real feta2(netavalmax,nviews,nladders_view,nangmax) |
66 |
real eta3(netavalmax,nangmax) |
67 |
real feta3(netavalmax,nviews,nladders_view,nangmax) |
68 |
real eta4(netavalmax,nangmax) |
69 |
real feta4(netavalmax,nviews,nladders_view,nangmax) |
70 |
|
71 |
common/angbinning/nangbin,angL,angR |
72 |
save/angbinning/ |
73 |
common/pfa/netaval,eta2,feta2,eta3,feta3,eta4,feta4 |
74 |
save/pfa/ |
75 |
c------------------------------------------------------------------------ |
76 |
c |
77 |
c CHARGE CORRELATION |
78 |
c |
79 |
c------------------------------------------------------------------------ |
80 |
|
81 |
c parameter (chcut=3.) !cut to associate two clusters |
82 |
c parameter (chcut=4.) !cut to associate two clusters |
83 |
parameter (chcut=10.) !cut to associate two clusters |
84 |
parameter (chsatx=2500.) !saturation limit |
85 |
parameter (chsaty=2500.) !saturation limit |
86 |
* above saturation limit correlation conditions are not applied |
87 |
real kch(nplanes,nladders_view) !angular coeff |
88 |
real cch(nplanes,nladders_view) !const |
89 |
real sch(nplanes,nladders_view) !sigma |
90 |
common/chargeco/kch,cch,sch |
91 |
save/chargeco/ |
92 |
c------------------------------------------------------------------------ |
93 |
c |
94 |
c MIP |
95 |
c |
96 |
c (mip signal, scaled to 300 micron, in ADC channels) |
97 |
c |
98 |
c------------------------------------------------------------------------ |
99 |
real mip(nviews,nladders_view) |
100 |
common/adc2mip/mip |
101 |
save/adc2mip/ |