1 |
kusanagi |
1.1 |
#ifndef CALIBCALPED_EVENT_H |
2 |
|
|
#define CALIBCALPED_EVENT_H |
3 |
|
|
|
4 |
|
|
#include "SubPacket.h" |
5 |
|
|
|
6 |
|
|
namespace pamela { |
7 |
|
|
/** |
8 |
kusanagi |
4.1 |
* CalibCalPed data Wrapper. |
9 |
|
|
* |
10 |
|
|
* The pamela::CalibCalPed packet is the answer to a calibration session of the Tracker. |
11 |
|
|
* It is the result of the mean over ~1000 events without particles (how this is done, is out of the |
12 |
|
|
* scope of the document, but mostly should be executed at an high rate while PAMELA is passing over |
13 |
|
|
* the Earth Equator). |
14 |
kusanagi |
1.1 |
*/ |
15 |
|
|
class CalibCalPedEvent: public pamela::SubPacket { |
16 |
|
|
private: |
17 |
|
|
|
18 |
|
|
public: |
19 |
|
|
CalibCalPedEvent(void); |
20 |
|
|
|
21 |
kusanagi |
4.1 |
/** |
22 |
|
|
* A Counter. |
23 |
|
|
*/ |
24 |
kusanagi |
2.1 |
int iev; |
25 |
kusanagi |
4.1 |
|
26 |
|
|
/** |
27 |
|
|
* The Status Word of each section. |
28 |
|
|
*/ |
29 |
kusanagi |
2.1 |
int cstwerr[4]; |
30 |
kusanagi |
4.1 |
|
31 |
|
|
/** |
32 |
|
|
* The Error Code for each section. |
33 |
|
|
*/ |
34 |
kusanagi |
2.1 |
float cperror[4]; |
35 |
kusanagi |
4.1 |
|
36 |
|
|
/** |
37 |
|
|
* The pedestal value (ADC) for each strip in the calorimeter. |
38 |
|
|
* The array represent the 4 sections x 11 layers x 96 strips composing the calorimeter. |
39 |
|
|
*/ |
40 |
kusanagi |
2.1 |
float calped[4][11][96]; |
41 |
kusanagi |
4.1 |
|
42 |
|
|
/** |
43 |
|
|
* Define if the strip is used or not in the baseline calculation. |
44 |
|
|
* The array represent the 4 sections x 11 layers x 96 strips composing the calorimeter. |
45 |
|
|
* Description: <BR> |
46 |
|
|
* 0x00: The strip was used. <BR> |
47 |
|
|
* 0xFF: The strip was NOT used. <BR> |
48 |
|
|
*/ |
49 |
kusanagi |
2.1 |
float calgood[4][11][96]; |
50 |
kusanagi |
4.1 |
|
51 |
|
|
/** |
52 |
|
|
* The hardware ADC thresholds for the preamplifiers. |
53 |
|
|
* The array represent the 4 sections x 11 layers x 6 amplifiers composing the calorimeter. |
54 |
|
|
*/ |
55 |
kusanagi |
2.1 |
float calthr[4][11][6]; |
56 |
kusanagi |
4.1 |
|
57 |
|
|
/** |
58 |
|
|
* The pedestal RMS value for each strip in the calorimeter. |
59 |
|
|
* The array represent the 4 sections x 11 layers x 96 strips composing the calorimeter. |
60 |
|
|
*/ |
61 |
kusanagi |
2.1 |
float calrms[4][11][96]; |
62 |
kusanagi |
4.1 |
|
63 |
|
|
/** |
64 |
|
|
* The hardware ADC baseline for the preamplifiers. |
65 |
|
|
* The array represent the 4 sections x 11 layers x 6 amplifiers composing the calorimeter. |
66 |
|
|
*/ |
67 |
kusanagi |
2.1 |
float calbase[4][11][6]; |
68 |
kusanagi |
4.1 |
|
69 |
|
|
/** |
70 |
|
|
* The variance of the baselines for the preamplifiers. |
71 |
|
|
* The array represent the 4 sections x 11 layers x 6 amplifiers composing the calorimeter. |
72 |
|
|
*/ |
73 |
kusanagi |
2.1 |
float calvar[4][11][6]; |
74 |
kusanagi |
4.1 |
|
75 |
|
|
|
76 |
kusanagi |
4.2 |
//float calpuls[4][11][96]; |
77 |
kusanagi |
2.2 |
UINT8 unpackError; |
78 |
kusanagi |
1.2 |
|
79 |
kusanagi |
2.3 |
ClassDef(CalibCalPedEvent, 2) |
80 |
kusanagi |
1.1 |
}; |
81 |
|
|
} |
82 |
|
|
|
83 |
|
|
#endif /* CALIBCALPED_EVENT_H */ |
84 |
|
|
|