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