5 |
|
|
6 |
namespace pamela { |
namespace pamela { |
7 |
/** |
/** |
8 |
* Information events about the CalibTrk2. |
* CalibTrk2 data Wrapper. |
9 |
|
* |
10 |
|
* The pamela::CalibTrk2 packet is the answer to a calibration session of half-sight of Tracker. |
11 |
|
* The pedestal for each ladder is calculated dividing the 1024 strips composing each ladder in |
12 |
|
* blocks of 128 strips each. The mean of the sum of the blocks divided by 4 give the ped_lX value |
13 |
|
* for each ladder. |
14 |
*/ |
*/ |
15 |
class CalibTrk2Event: public pamela::SubPacket { |
class CalibTrk2Event: public pamela::SubPacket { |
16 |
private: |
private: |
17 |
|
|
18 |
public: |
public: |
19 |
CalibTrk2Event(void); |
CalibTrk2Event(void); |
20 |
int DAQmode[6]; |
int good0; |
21 |
int DSPnumber[6]; |
|
22 |
int calibnumber[6]; |
/** |
23 |
int ncalib_event[6]; |
* The acquisition mode of the Tracker; each element concerns a different plane. |
24 |
int ped_l1[6]; |
*/ |
25 |
int ped_l2[6]; |
int DAQmode[6]; |
26 |
int ped_l3[6]; |
|
27 |
int sig_l1[6]; |
/** |
28 |
int sig_l2[6]; |
* The DSP number of the Tracker; each element concerns a different plane. |
29 |
int sig_l3[6]; |
* If the element is 0 the DSP is not working. |
30 |
int nbad_l1[6]; |
*/ |
31 |
int nbad_l2[6]; |
int DSPnumber[6]; |
32 |
int nbad_l3[6]; |
|
33 |
int cal_flag[6]; |
/** |
34 |
int checksum[6]; |
* The Calibration number; each element concerns a different plane. |
35 |
int DSPbad_par[6][3072]; |
*/ |
36 |
float DSPped_par[6][3072]; |
int calibnumber[6]; |
37 |
float DSPsig_par[6][3072]; |
|
38 |
ClassDef(CalibTrk2Event, 1) |
/** |
39 |
|
* Counter of event?s number used for calibration; each element concerns a different plane. |
40 |
|
*/ |
41 |
|
int ncalib_event[6]; |
42 |
|
|
43 |
|
/** |
44 |
|
* Pedestal values for Ladder1; each element concerns a different plane. |
45 |
|
*/ |
46 |
|
int ped_l1[6]; |
47 |
|
|
48 |
|
/** |
49 |
|
* Pedestal values for Ladder2; each element concerns a different plane. |
50 |
|
*/ |
51 |
|
int ped_l2[6]; |
52 |
|
|
53 |
|
/** |
54 |
|
* Pedestal values for Ladder3; each element concerns a different plane. |
55 |
|
*/ |
56 |
|
int ped_l3[6]; |
57 |
|
|
58 |
|
/** |
59 |
|
* The Sigma values for the ped_l1 values; each element concerns a different plane. |
60 |
|
*/ |
61 |
|
int sig_l1[6]; |
62 |
|
|
63 |
|
/** |
64 |
|
* The Sigma values for the ped_l2 values; each element concerns a different plane. |
65 |
|
*/ |
66 |
|
int sig_l2[6]; |
67 |
|
|
68 |
|
/** |
69 |
|
* The Sigma values for the ped_l3 values; each element concerns a different plane. |
70 |
|
*/ |
71 |
|
int sig_l3[6]; |
72 |
|
|
73 |
|
/** |
74 |
|
* The number of bad strips for the ped_l1 values; each element concerns a different plane. |
75 |
|
*/ |
76 |
|
int nbad_l1[6]; |
77 |
|
|
78 |
|
/** |
79 |
|
* The number of bad strips for the ped_l2 values; each element concerns a different plane. |
80 |
|
*/ |
81 |
|
int nbad_l2[6]; |
82 |
|
|
83 |
|
/** |
84 |
|
* The number of bad strips for the ped_l3 values; each element concerns a different plane. |
85 |
|
*/ |
86 |
|
int nbad_l3[6]; |
87 |
|
|
88 |
|
/** |
89 |
|
* Calibration validity check; each element concerns a different plane. |
90 |
|
* Description: <BR> |
91 |
|
* 1: The calibration is bad. <BR> |
92 |
|
* 0: The calibration is ok. <BR> |
93 |
|
*/ |
94 |
|
int cal_flag[6]; |
95 |
|
|
96 |
|
/** |
97 |
|
* The value of the pedestal for each strip (3072 strips in 6 planes). |
98 |
|
*/ |
99 |
|
float DSPped_par[6][3072]; |
100 |
|
|
101 |
|
/** |
102 |
|
* The value of the Sigma for each strip (3072 strips in 6 planes). |
103 |
|
*/ |
104 |
|
float DSPsig_par[6][3072]; |
105 |
|
|
106 |
|
/** |
107 |
|
* Identify which strip is bad (3072 strips in 6 planes). |
108 |
|
*/ |
109 |
|
int DSPbad_par[6][3072]; |
110 |
|
int crc_cal[6][3]; |
111 |
|
int crc_hcal[6]; |
112 |
|
UINT8 unpackError; |
113 |
|
ClassDef(CalibTrk2Event, 5) |
114 |
}; |
}; |
115 |
} |
} |
116 |
|
|