1 |
************************************************************************* |
2 |
* |
3 |
* Common level1.f |
4 |
* |
5 |
* contains LEVEL1 ntuple variables definitions |
6 |
* |
7 |
* to be included in: |
8 |
* - ../reduction/reduction.f |
9 |
* - ../analysis/analysis.f |
10 |
* - !??? |
11 |
* |
12 |
* parameters: |
13 |
* - nclstrmax |
14 |
* - nclstrp |
15 |
* |
16 |
* 11/9/2005 modified by david fedele to include general variables |
17 |
************************************************************************* |
18 |
|
19 |
|
20 |
c***************************************************** |
21 |
cccccc 11/9/2005 modified by david fedele |
22 |
ccc EVENT block********* |
23 |
c GENERAL block: |
24 |
c*************************************************** |
25 |
logical good1 !flag to mark good or noise events |
26 |
integer nev1 !level1 event number |
27 |
c***************************************************** |
28 |
cccccc 11/9/2005 modified by david fedele |
29 |
integer which_calib1 !calibration file identifier. see DW_DATE_NUM_calib.txt file |
30 |
integer swcode1 !version of the software |
31 |
c***************************************************** |
32 |
|
33 |
c CPU block (only for ground data): |
34 |
integer pkt_type1 !CPU packet type identifier. see http://people.roma2.infn.it/~cpu/HB_list.txt |
35 |
c 0x12 --> calibration board 0 |
36 |
c 0x13 --> calibration board 1 |
37 |
c 0x10 --> event |
38 |
c 0x30 --> full event for calib special |
39 |
c 0x83 --> tracker ALARM (control register) |
40 |
integer pkt_num1 !CPU packet number |
41 |
integer obt1 !CPU on-board time |
42 |
c***************************************************** |
43 |
cccccc 11/9/2005 modified by david fedele |
44 |
c integer which_calib1 !calibration file identifier. see DW_DATE_NUM_calib.txt file |
45 |
logical cpu_crc1 !CPU crc controll |
46 |
c***************************************************** |
47 |
|
48 |
c CLUSTER block: |
49 |
integer nclstr1 !cluster number |
50 |
integer view(nclstrmax) !view the cluster belongs to |
51 |
integer ladder(nclstrmax) !ladder the strip carrying the largest signal |
52 |
! value belongs to |
53 |
integer maxs(nclstrmax) !cluster strip carrying the largest signal value |
54 |
integer mult(nclstrmax) !cluster multiplicity |
55 |
real dedx(nclstrmax) !cluster multiplicity |
56 |
integer indstart(nclstrmax) !cluster starting point index in clsignal array |
57 |
integer indmax(nclstrmax) !cluster maximum point index in clsignal array |
58 |
integer totCLlength !sum of all clusters length (to assign |
59 |
! dimension to clsignal array) |
60 |
real clsignal(maxlength) !signal values of all strips belonging to clusters |
61 |
c***************************************************** |
62 |
cccccc 11/9/2005 modified by david fedele |
63 |
c integer which_calib1 !calibration file identifier. see DW_DATE_NUM_calib.txt file |
64 |
logical crc1(12) !DSP crc controll |
65 |
c***************************************************** |
66 |
|
67 |
c CNOISE block: |
68 |
real cnev(nviews,nva1_view) !common noise of the event for a certain view and |
69 |
! VA1 |
70 |
c***************************************************** |
71 |
cccccc 11/9/2005 modified by david fedele |
72 |
c common/level1_general/good1,nev1 |
73 |
c common/level1_cpu/pkt_type1,pkt_num1,obt1,which_calib1 |
74 |
c common/level1_cluster/nclstr1,view,ladder,maxs,mult,dedx,indstart |
75 |
c $ ,indmax,totCLlength,clsignal,cnev |
76 |
common/level1_general/good1,nev1,which_calib1,swcode1,crc1 |
77 |
common/level1_cpu/pkt_type1,pkt_num1,obt1,cpu_crc1 |
78 |
common/level1_cluster/nclstr1,view,ladder,maxs,mult,dedx,indstart |
79 |
$ ,indmax,totCLlength,clsignal,cnev |
80 |
c********************************************************** |