1 |
#ifndef CALIBTRK1_EVENT_H |
2 |
#define CALIBTRK1_EVENT_H |
3 |
|
4 |
#include "SubPacket.h" |
5 |
|
6 |
namespace pamela { |
7 |
/** |
8 |
* 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 { |
16 |
private: |
17 |
|
18 |
public: |
19 |
CalibTrk1Event(void); |
20 |
int good0; |
21 |
|
22 |
/** |
23 |
* The acquisition mode of the Tracker; each element concerns a different plane. |
24 |
*/ |
25 |
int DAQmode[6]; |
26 |
|
27 |
/** |
28 |
* The DSP number of the Tracker; each element concerns a different plane. |
29 |
* If the element is 0 the DSP is not working. |
30 |
*/ |
31 |
int DSPnumber[6]; |
32 |
|
33 |
/** |
34 |
* The Calibration number; each element concerns a different plane. |
35 |
*/ |
36 |
int calibnumber[6]; |
37 |
|
38 |
/** |
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(CalibTrk1Event, 5) |
114 |
}; |
115 |
} |
116 |
|
117 |
#endif /* CALIBTRK1_EVENT_H */ |
118 |
|