/[PAMELA software]/yoda/event/CalibTrk2Event.h
ViewVC logotype

Annotation of /yoda/event/CalibTrk2Event.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6.0 - (hide annotations) (download)
Tue Feb 7 17:11:07 2006 UTC (18 years, 9 months ago) by kusanagi
Branch: MAIN
CVS Tags: yodaPreTermistors2_1/00, YODA6_2/01, YODA6_2/00, YODA6_3/19, YODA6_3/18, YODA6_3/13, YODA6_3/12, YODA6_3/11, YODA6_3/10, YODA6_3/17, YODA6_3/16, YODA6_3/15, YODA6_3/14, YODA6_3/06, YODA6_1/00, YODA6_0/00, YODA6_3/04, YODA6_3/05, YODA6_3/20, YODA6_3/07, YODA6_3/00, YODA6_3/01, YODA6_3/02, YODA6_3/03, YODA6_3/08, YODA6_3/09, HEAD
Changes since 5.1: +0 -0 lines
File MIME type: text/plain
Several new features in this revision:
a) all the packets are conform to the Mass Memory Format specifications (http://people.roma2.infn.it/~cpu/Mass_Memory_Format.html)
b) unpacking either using the old files structure OR the new one file unpacking.
c) parametrized root files compression factor
d) deleting of the following packet: TofTest, TrkTest, TrkEvent.
e) the Tracker routines now work without the use of temp files.

The point a) allow Yoda to unpack in the root file all the packets generated by the CPU. According to the MassMemoryFormat; that is three possible data are available:

1) almost explicit structure of the packet (like for Log, Tracker, Mcmd, etc....);
2) dummy data collection structure (InitHeader, InitTrailer, CalibHeader, CalibTrailer);
3) just the data of the packet (almost all Alarm and Init procedures). The class regarding this packets have only one parameters, a TArrayC class, which contain the data-block included in the packet (tat is the data below the packet Header).

The point b) has been implemented as a consequence of an agreement about a more compact structure of the unpacked data. Up to now the structure of each unpacked data consisted of a folder, named after the packet type, and three files: xxx.Header.root, xxx.NamePacket.root, xxx.Registry.root.
Starting from this release YODA, by default will unpack the data in a unique root file. The structure of this file will consist of:
- several TTree(s) named after the packet type;
- into each TTree are foreseen three TBranche(s):
    - 'Header'  (the old xxx.Header.root file)
    - 'NameOfThePacket' (the old xxx.Event.root file or the xxx.Event.DETECTOR.root)
    - 'Registry' (the old xxx.Registry.root file)

Anyway is still possible, but deprecated, to unpack using the old structure, passing to the "yoda" command the optional parameter "-multifile"

The point c) has been implemented because is well know that writing time in a TTree is as much fast as much lower is the compression factor for the root file; anyway for a PAMELA dat file, a compression equal to 0 will generate a root file which will be more than two times the original size. To modify the compression parameter just add the optional parameter "-c [0-9]" to the yoda command line.

1 kusanagi 1.2 #ifndef CALIBTRK2_EVENT_H
2     #define CALIBTRK2_EVENT_H
3 kusanagi 1.1
4     #include "SubPacket.h"
5    
6     namespace pamela {
7     /**
8 kusanagi 4.2 * 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 kusanagi 1.1 */
15 kusanagi 1.2 class CalibTrk2Event: public pamela::SubPacket {
16 kusanagi 1.1 private:
17    
18     public:
19 kusanagi 1.2 CalibTrk2Event(void);
20 kusanagi 5.1 int good0;
21 kusanagi 4.2
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 kusanagi 5.1 */
99 kusanagi 4.2 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 kusanagi 5.1 int crc_cal[6][3];
111     int crc_hcal[6];
112 kusanagi 4.2 UINT8 unpackError;
113 kusanagi 5.1 ClassDef(CalibTrk2Event, 5)
114 kusanagi 1.1 };
115     }
116    
117 kusanagi 1.2 #endif /* CALIBTRK2_EVENT_H */
118 kusanagi 1.1

  ViewVC Help
Powered by ViewVC 1.1.23