1 |
pam-fi |
1.1 |
C----------------------------------------------------------------------- |
2 |
|
|
C Common for Level2 variables |
3 |
|
|
C----------------------------------------------------------------------- |
4 |
|
|
|
5 |
|
|
C----------------------------------------------------------------------- |
6 |
|
|
C ntuples ID are set in rzfile.f into the OPENLEV2 function |
7 |
|
|
C----------------------------------------------------------------------- |
8 |
|
|
integer trkntp |
9 |
|
|
integer acntp |
10 |
|
|
integer trigntp |
11 |
|
|
integer calontp |
12 |
|
|
integer tofntp |
13 |
|
|
integer s4ntp |
14 |
|
|
integer ndntp |
15 |
|
|
integer orbntp |
16 |
|
|
integer runntp |
17 |
|
|
|
18 |
|
|
common/ntp/trkntp,acntp,trigntp,calontp,tofntp,s4ntp |
19 |
|
|
$ ,ndntp,orbntp,runntp |
20 |
|
|
save/ntp/ |
21 |
|
|
|
22 |
|
|
C----------------------------------------------------------------------- |
23 |
|
|
C Tracker variables |
24 |
|
|
C----------------------------------------------------------------------- |
25 |
|
|
|
26 |
|
|
parameter(nplanes=6) |
27 |
|
|
parameter(NTRKMAX=10) |
28 |
|
|
parameter(NSINGMAX=100) |
29 |
|
|
|
30 |
|
|
integer good2 !flag to mark good or noise events |
31 |
|
|
integer crc !DSP crc controll |
32 |
|
|
c---------------------------------------------------------------- |
33 |
|
|
integer nclsx !# unassociated clusters X views |
34 |
|
|
integer planex !plane of single x |
35 |
|
|
real xs !center coord of single x |
36 |
|
|
real sgnlxs !signal in MIP of single x |
37 |
|
|
c---------------------------------------------------------------- |
38 |
|
|
integer nclsy ! " " Y views |
39 |
|
|
integer planey !plane of single y |
40 |
|
|
real ys !center coord of single y |
41 |
|
|
real sgnlys !signal in MIP of single y |
42 |
|
|
c---------------------------------------------------------------- |
43 |
|
|
integer ntrk !# identified tracks |
44 |
|
|
integer image !flag to tag track-images |
45 |
|
|
real al_nt !track state vector |
46 |
|
|
real coval !covariance matrix |
47 |
|
|
integer xgood_nt !mask of used planes |
48 |
|
|
integer ygood_nt !* |
49 |
|
|
real xm_nt !measured points |
50 |
|
|
real ym_nt !* |
51 |
|
|
real zm_nt !* |
52 |
|
|
real resx_nt !spatial resolution |
53 |
|
|
real resy_nt !* |
54 |
|
|
real chi2_nt !chi2 |
55 |
|
|
real xv_nt !calculated points |
56 |
|
|
real yv_nt !* |
57 |
|
|
real zv_nt !* |
58 |
|
|
real axv_nt !calculated angles (deg) |
59 |
|
|
real ayv_nt !* |
60 |
|
|
real dedx_x !signal in MIP scaled to 300 micrometer |
61 |
|
|
real dedx_y !signal in MIP scaled to 300 micrometer |
62 |
|
|
real bdl |
63 |
|
|
|
64 |
|
|
|
65 |
|
|
common/tracker/ |
66 |
|
|
$ good2,crc(12) |
67 |
|
|
$ ,nclsx,planex(NSINGMAX),xs(2,NSINGMAX),sgnlxs(NSINGMAX) |
68 |
|
|
$ ,nclsy,planey(NSINGMAX),ys(2,NSINGMAX),sgnlys(NSINGMAX) |
69 |
|
|
$ ,ntrk |
70 |
|
|
$ ,image(NTRKMAX) |
71 |
|
|
$ ,xm_nt(nplanes,NTRKMAX) |
72 |
|
|
$ ,ym_nt(nplanes,NTRKMAX) |
73 |
|
|
$ ,zm_nt(nplanes,NTRKMAX) |
74 |
|
|
$ ,resx_nt(nplanes,NTRKMAX) |
75 |
|
|
$ ,resy_nt(nplanes,NTRKMAX) |
76 |
|
|
$ ,al_nt(5,NTRKMAX) |
77 |
|
|
$ ,coval(5,5,NTRKMAX) |
78 |
|
|
$ ,chi2_nt(NTRKMAX) |
79 |
|
|
$ ,xgood_nt(nplanes,NTRKMAX) |
80 |
|
|
$ ,ygood_nt(nplanes,NTRKMAX) |
81 |
|
|
$ ,xv_nt(nplanes,NTRKMAX) |
82 |
|
|
$ ,yv_nt(nplanes,NTRKMAX) |
83 |
|
|
$ ,zv_nt(nplanes,NTRKMAX) |
84 |
|
|
$ ,axv_nt(nplanes,NTRKMAX) |
85 |
|
|
$ ,ayv_nt(nplanes,NTRKMAX) |
86 |
|
|
$ ,dedx_x(nplanes,NTRKMAX) |
87 |
|
|
$ ,dedx_y(nplanes,NTRKMAX) |
88 |
|
|
$ ,bdl(NTRKMAX) |
89 |
|
|
|
90 |
|
|
SAVE/tracker/ |
91 |
|
|
C------------------------------------------------------------------------ |
92 |
|
|
|
93 |
|
|
C----------------------------------------------------------------------- |
94 |
|
|
C Anticounter variables |
95 |
|
|
C----------------------------------------------------------------------- |
96 |
|
|
|
97 |
|
|
integer status(2) |
98 |
|
|
integer hitmap(2) |
99 |
|
|
integer hitstatus(2) |
100 |
|
|
integer trigger(2) |
101 |
|
|
|
102 |
|
|
common/antic/status,hitmap,hitstatus,trigger |
103 |
|
|
save/antic/ |
104 |
|
|
C------------------------------------------------------------------------ |
105 |
|
|
|
106 |
|
|
C----------------------------------------------------------------------- |
107 |
|
|
C ToF variables |
108 |
|
|
C----------------------------------------------------------------------- |
109 |
|
|
|
110 |
|
|
|
111 |
|
|
integer tof_j_flag(6) |
112 |
|
|
c----------------------------------- |
113 |
|
|
integer ntoftrk |
114 |
|
|
integer toftrkseqno(10) |
115 |
|
|
integer npmttdc(10) |
116 |
pam-fi |
1.2 |
integer pmttdc(48,10) |
117 |
|
|
real beta(13,10) |
118 |
pam-fi |
1.1 |
|
119 |
|
|
integer npmtadc(10) |
120 |
pam-fi |
1.2 |
integer pmtadc(48,10) |
121 |
|
|
real dedx(48,10) |
122 |
pam-fi |
1.1 |
|
123 |
pam-fi |
1.2 |
real xtofpos(3,10) |
124 |
|
|
real ytofpos(3,10) |
125 |
pam-fi |
1.1 |
c----------------------------------- |
126 |
|
|
integer npmt |
127 |
|
|
integer pmt_id(48) |
128 |
|
|
real adc(48) |
129 |
|
|
real tdc_tw(48) |
130 |
|
|
|
131 |
|
|
common/tof/tof_j_flag,ntoftrk,toftrkseqno,npmttdc,pmttdc,beta |
132 |
|
|
$ ,npmtadc,pmtadc,dedx,xtofpos,ytofpos,npmt,pmt_id |
133 |
|
|
$ ,adc,tdc_tw |
134 |
|
|
save/tof/ |
135 |
|
|
C---------------------------------------------------------------------- |
136 |
|
|
|
137 |
|
|
C----------------------------------------------------------------------- |
138 |
pam-fi |
1.2 |
C Trigger variables |
139 |
pam-fi |
1.1 |
C----------------------------------------------------------------------- |
140 |
|
|
|
141 |
|
|
integer evcount |
142 |
|
|
integer pmtpl(3) |
143 |
|
|
integer trigrate(6) |
144 |
|
|
integer dltime(2) |
145 |
|
|
integer s4calcount(2) |
146 |
|
|
integer pmtcount1(24) |
147 |
|
|
integer pmtcount2(24) |
148 |
|
|
integer patternbusy(3) |
149 |
|
|
integer patterntrig(6) |
150 |
|
|
integer trigconf |
151 |
|
|
|
152 |
|
|
common/trigger/evcount,pmtpl,trigrate,dltime |
153 |
|
|
$ ,s4calcount,pmtcount1,pmtcount2,patternbusy |
154 |
|
|
$ ,patterntrig,trigconf |
155 |
|
|
save/trigger/ |
156 |
|
|
C---------------------------------------------------------------------- |
157 |
|
|
|
158 |
|
|
C----------------------------------------------------------------------- |
159 |
|
|
C S4 variables |
160 |
|
|
C----------------------------------------------------------------------- |
161 |
|
|
|
162 |
|
|
real s4calibrated; |
163 |
|
|
real s4adc; |
164 |
|
|
|
165 |
|
|
common/s4/s4calibrated,s4adc |
166 |
|
|
save/s4/ |
167 |
|
|
C---------------------------------------------------------------------- |
168 |
|
|
|
169 |
|
|
C----------------------------------------------------------------------- |
170 |
|
|
C ND variables |
171 |
|
|
C----------------------------------------------------------------------- |
172 |
|
|
|
173 |
|
|
real upperback |
174 |
|
|
real bottomback |
175 |
|
|
real trigphysics |
176 |
|
|
|
177 |
|
|
common/nd/upperback,bottomback,trigphysics |
178 |
|
|
save/nd/ |
179 |
|
|
C---------------------------------------------------------------------- |
180 |
|
|
|
181 |
|
|
C----------------------------------------------------------------------- |
182 |
|
|
C OrbitalInfo variables |
183 |
|
|
C----------------------------------------------------------------------- |
184 |
|
|
|
185 |
|
|
integer*8 abstime |
186 |
|
|
integer*8 obt |
187 |
|
|
integer*8 pkt_num |
188 |
|
|
|
189 |
|
|
common/orbinfo/abstime,obt,pkt_num |
190 |
|
|
save/orbinfo/ |
191 |
|
|
C---------------------------------------------------------------------- |
192 |
|
|
|
193 |
|
|
C----------------------------------------------------------------------- |
194 |
|
|
C RunInfo and SoftInfo variables |
195 |
|
|
C----------------------------------------------------------------------- |
196 |
|
|
|
197 |
|
|
integer*8 id |
198 |
|
|
integer*8 id_reg_run |
199 |
|
|
integer*8 id_reg_run_l2 |
200 |
|
|
integer*8 runheader_time |
201 |
|
|
integer*8 runtrailer_time |
202 |
|
|
integer ev_reg_phys_from |
203 |
|
|
integer ev_reg_phys_to |
204 |
|
|
integer ev_reg_runheader |
205 |
|
|
integer ev_reg_runtraile |
206 |
|
|
integer trk_calib_used |
207 |
|
|
integer eff_wrk_schedule |
208 |
|
|
integer prh_var_trg_mode_a |
209 |
|
|
integer prh_var_trg_mode_b |
210 |
|
|
integer acq_build_info |
211 |
|
|
integer acq_var_info |
212 |
|
|
|
213 |
|
|
common/glrun/id,id_reg_run,id_reg_run_l2 |
214 |
|
|
$ ,runheader_time,runtrailer_time |
215 |
|
|
$ ,ev_reg_phys_from,ev_reg_phys_to |
216 |
|
|
$ ,ev_reg_runheader,ev_reg_runtraile |
217 |
|
|
$ ,trk_calib_used,eff_wrk_schedule |
218 |
|
|
$ ,prh_var_trg_mode_a,prh_var_trg_mode_b |
219 |
|
|
$ ,acq_build_info,acq_var_info |
220 |
|
|
save/glrun/ |
221 |
|
|
|
222 |
|
|
|
223 |
|
|
character*8 trig_ver |
224 |
|
|
character*8 tof_ver |
225 |
|
|
character*8 ac_ver |
226 |
|
|
character*8 trk_ver |
227 |
|
|
character*8 cal_ver |
228 |
|
|
character*8 s4_ver |
229 |
|
|
character*8 nd_ver |
230 |
|
|
character*8 orb_ver |
231 |
|
|
|
232 |
|
|
common/softinfo/trig_ver,tof_ver |
233 |
|
|
$ ,ac_ver,trk_ver |
234 |
|
|
$ ,cal_ver,s4_ver |
235 |
|
|
$ ,nd_ver,orb_ver |
236 |
|
|
save/softinfo/ |
237 |
|
|
|
238 |
|
|
C----------------------------------------------------------------------------------- |
239 |
|
|
|
240 |
|
|
C----------------------------------------------------------------------- |
241 |
|
|
C Calorimeter variables |
242 |
|
|
C----------------------------------------------------------------------- |
243 |
|
|
|
244 |
pam-fi |
1.3 |
integer calntrk ![0,11] |
245 |
|
|
integer caltrkseqno (11) ![ntrk] (come il numero di tracce del tracker + 1) |
246 |
|
|
integer ncore(11) ![0,500000] |
247 |
|
|
integer noint(11) ![0,2000] |
248 |
|
|
integer ncyl(11) ![0,2000] |
249 |
|
|
integer nlast(11) ![0,2000] |
250 |
|
|
integer npre(11) ![0,2000] |
251 |
|
|
integer npresh(11) ![0,2000] |
252 |
|
|
integer ntr(11) ![0,2000] |
253 |
|
|
integer planetot(11) ![0,45] |
254 |
|
|
integer nlow(11) ![0,4225] |
255 |
|
|
real qcore(11) ![0,5*10^8] |
256 |
|
|
real qcyl(11) ![0,5*10^8] |
257 |
|
|
real qlast(11) ![0,5*10^8] |
258 |
|
|
real qpre(11) ![0,5*10^8] |
259 |
|
|
real qpresh(11) ![0,5*10^8] |
260 |
|
|
real qtr(11) ![0,5*10^8] |
261 |
|
|
real qtrack(11) ![0,5*10^8] |
262 |
|
|
real qtrackx(11) ![0,5*10^8] |
263 |
|
|
real qtracky(11) ![0,5*10^8] |
264 |
|
|
real dxtrack(11) ![0,5*10^8] |
265 |
|
|
real dytrack(11) ![0,5*10^8] |
266 |
|
|
real qmean(11) ![0,2000] |
267 |
|
|
real qlow(11) ![0,5*10^8] |
268 |
|
|
real dX0l(11) ![0,2000] |
269 |
|
|
real tbar(2,22,11) |
270 |
pam-fi |
1.1 |
c-------------------------------------------------- |
271 |
|
|
!common variables , una per evento |
272 |
|
|
|
273 |
|
|
integer good ![0,1] |
274 |
|
|
integer perr(4) ![0,500] |
275 |
|
|
integer swerr(4) ![0,65535] |
276 |
|
|
integer calcrc(4) ![0,1] |
277 |
|
|
integer selftrigger ![0,1] |
278 |
|
|
|
279 |
|
|
integer nstrip ![0,4225] |
280 |
|
|
integer nx22 ![0,97] |
281 |
|
|
integer planemax(2) ![0,45] |
282 |
|
|
real qtot ![0,5*10^8] |
283 |
|
|
real qx22 ![0,5*10^8] |
284 |
|
|
real qmax ![0,10^4] |
285 |
|
|
real qq(4) ![0,5*10^8] |
286 |
|
|
|
287 |
|
|
integer npcfit(2) ![0,45] |
288 |
|
|
real impx ![-1000,1000] |
289 |
|
|
real impy ![-1000,1000] |
290 |
|
|
real tanx ![-100,100] |
291 |
|
|
real tany ![-100,100] |
292 |
|
|
real varcfit(2) ![0,10^10] |
293 |
|
|
|
294 |
|
|
real elen ![0,10^5] |
295 |
|
|
real selen ![0,10^5] |
296 |
|
|
common/calo/calntrk,caltrkseqno,ncore,noint,ncyl,nlast,npre |
297 |
|
|
$ ,npresh,ntr,planetot,nlow,qcore,qcyl,qlast,qpre |
298 |
|
|
$ ,qpresh,qtr,qtrack,qtrackx,qtracky,dxtrack |
299 |
pam-fi |
1.3 |
$ ,dytrack,qmean,qlow,dX0l,tbar,good,perr,swerr |
300 |
pam-fi |
1.1 |
$ ,calcrc,selftrigger,nstrip,nx22,planemax,qtot |
301 |
|
|
$ ,qx22,qmax,qq,npcfit,impx,impy,tanx,tany |
302 |
|
|
$ ,varcfit,elen,selen |
303 |
|
|
save/calo/ |
304 |
|
|
C----------------------------------------------------------------------------------- |