1 |
IMPLICIT NONE |
2 |
|
3 |
INTEGER NPLANES, NTRKMAX |
4 |
|
5 |
PARAMETER (NTRKMAX=50) !ncloyz_max*ncloxz_max) |
6 |
PARAMETER (NPLANES=6) !ncloyz_max*ncloxz_max) |
7 |
|
8 |
c EVENT block: |
9 |
* ----------------------------------------------------------- |
10 |
logical good2 !flag to mark good or noise events |
11 |
integer nev2 !level2 event number |
12 |
|
13 |
c CPU block (only for ground data): |
14 |
* ----------------------------------------------------------- |
15 |
integer pkt_type !CPU packet type identifier. see http://people.roma2.infn.it/~cpu/HB_list.txt |
16 |
c 0x12 --> calibration board 0 |
17 |
c 0x13 --> calibration board 1 |
18 |
c 0x10 --> event |
19 |
c 0x30 --> full event for calib special |
20 |
c 0x83 --> tracker ALARM (control register) |
21 |
integer pkt_num !CPU packet number |
22 |
integer obt !CPU on-board time |
23 |
integer which_calib !calibration file identifier. see DW_DATE_NUM_calib.txt file |
24 |
|
25 |
|
26 |
* ----------------------------------------------------------- |
27 |
* Common to store TRACK info |
28 |
* All the variables have a dimention equal to the number of |
29 |
* found tracks |
30 |
* ----------------------------------------------------------- |
31 |
c TRACK PARAMETERS |
32 |
integer ntrk !# identified tracks |
33 |
real al !track state vector |
34 |
integer xgood !mask of used planes |
35 |
integer ygood !* |
36 |
real xm !measured points |
37 |
real ym !* |
38 |
real zm !* |
39 |
real resx !spatial resolution |
40 |
real resy !* |
41 |
real chi2 !chi2 |
42 |
real xv !calculated points |
43 |
real yv !* |
44 |
real zv !* |
45 |
real axv !calculated angles (deg) |
46 |
real ayv !* |
47 |
* ----------------------------------------------------------- |
48 |
* Common to store SINGLET info |
49 |
* (clusters not associated with any track) |
50 |
* ----------------------------------------------------------- |
51 |
integer nclsx !# unassociated clusters per plane X views |
52 |
integer nclsy ! " " " " Y views |
53 |
|
54 |
|
55 |
integer tdcid(12),evcount(12) |
56 |
integer tdcmask(12),adc(4,12),tdc(4,12) |
57 |
integer temp1(12),temp2(12) |
58 |
integer*4 trig_evcount |
59 |
integer pmtpl(3), trigrate(6), dltime(2), s4calcount(2) |
60 |
integer pmtcount1(24), pmtcount2(24) |
61 |
integer*4 patternbusy(3) |
62 |
integer patterntrig(6), trigconf |
63 |
integer iflag(6), jflag(6) |
64 |
real beta(5),xtof(3),ytof(3),adc_c(4,12) |
65 |
real xout(3), yout(3) |
66 |
|
67 |
|
68 |
common/toflev1/good2,nev2, |
69 |
$ pkt_type,pkt_num,obt,which_calib, |
70 |
$ tdcid,evcount,tdcmask,adc,tdc,temp1,temp2, |
71 |
$ beta, xtof, ytof, adc_c, iflag,jflag, |
72 |
$ xout, yout, |
73 |
$ trig_evcount, pmtpl, trigrate, dltime, |
74 |
& s4calcount, pmtcount1, pmtcount2, |
75 |
& patternbusy, patterntrig, trigconf, |
76 |
$ ntrk |
77 |
$ ,xm(nplanes,NTRKMAX) |
78 |
$ ,ym(nplanes,NTRKMAX) |
79 |
$ ,zm(nplanes,NTRKMAX) |
80 |
$ ,resx(nplanes,NTRKMAX) |
81 |
$ ,resy(nplanes,NTRKMAX) |
82 |
$ ,al(5,NTRKMAX) |
83 |
$ ,chi2(NTRKMAX) |
84 |
$ ,xgood(nplanes,NTRKMAX) |
85 |
$ ,ygood(nplanes,NTRKMAX) |
86 |
$ ,xv(nplanes,NTRKMAX) |
87 |
$ ,yv(nplanes,NTRKMAX) |
88 |
$ ,zv(nplanes,NTRKMAX) |
89 |
$ ,axv(nplanes,NTRKMAX) |
90 |
$ ,ayv(nplanes,NTRKMAX) |
91 |
$ ,nclsx(nplanes),nclsy(nplanes) |
92 |
SAVE /toflev1/ |
93 |
|