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