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