/[PAMELA software]/yoda/event/tmtc/TmtcRecord.h
ViewVC logotype

Contents of /yoda/event/tmtc/TmtcRecord.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6.0 - (show annotations) (download)
Tue Feb 7 17:11:09 2006 UTC (18 years, 9 months ago) by kusanagi
Branch: MAIN
CVS Tags: 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.2: +2 -2 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 /** @file
2 * $Source: /home/cvsmanager/yoda/event/tmtc/TmtcRecord.h,v $
3 * $Id: TmtcRecord.h,v 5.2 2006/02/04 12:37:44 kusanagi Exp $
4 * $Author: kusanagi $
5 *
6 * 16 May 2005 - added 4 more TM_TH_ANA. Updated the ClassDef to 2
7 *
8 * Header file for the TmtcRecord class.
9 */
10 #ifndef TMTC_RECORD_H
11 #define TMTC_RECORD_H
12 #include "../SubPacket.h"
13 namespace pamela {
14 /**
15 * TmtcRecord data Wrapper
16 */
17 class TmtcRecord: public TObject {
18 private:
19
20 public:
21 /**
22 * The On-Board-Time of the Record.
23 */
24 UINT32 TM_RECORD_OBT;
25
26 /**
27 * Conctac closure and bi-livel single ended digital acquisitions data from the TMTC board.
28 *
29 * From MSB to LSB: (significant IDs is the last one) <br>
30 * TMTC_PACK_BIT(tm_val,TM_KRB_IPM1);<br>
31 * TMTC_PACK_BIT(tm_val,TM_KRB_IPM2);<br>
32 * TMTC_PACK_BIT(tm_val,TM_KRB_IPM3);<br>
33 * TMTC_PACK_BIT(tm_val,TM_KRB_IPM4);<br>
34 * TMTC_PACK_BIT(tm_val,TM_KRB_IPM5);<br>
35 * TMTC_PACK_BIT(tm_val,TM_KRB_IPM6);<br>
36 * <br>
37 * TMTC_PACK_BIT(tm_val,TM_KHB_HOT_LATCHUP);<br>
38 * TMTC_PACK_BIT(tm_val,TM_KHB_COLD_LATCHUP);<br>
39 * <br>
40 * TMTC_PACK_BIT(tm_val,TM_IDAQ_HOT_ALARM);<br>
41 * TMTC_PACK_BIT(tm_val,TM_IDAQ_COLD_ALARM);<br>
42 * <br>
43 * TMTC_PACK_BIT(tm_val,TM_VCB_STANDBY);<br>
44 * <br>
45 * TMTC_PACK_BIT(tm_val,TM_VRL_HOT);<br>
46 * TMTC_PACK_BIT(tm_val,TM_VRL_COLD);<br>
47 * <br>
48 * TMTC_PACK_BIT(tm_val,TM_PSB_ALARM);<br>
49 * <br>
50 * TMTC_PACK_BIT(tm_val,TM_TOFHV_HOT_ALARM);<br>
51 * TMTC_PACK_BIT(tm_val,TM_TOFHV_COLD_ALARM);<br>
52 */
53 UINT16 TM_DIAG_AND_BILEVEL_ACQ;
54
55 /**
56 * Thermistor analogue acquisition data from the TMTC board.
57 *
58 * The order from 0 to 11 is the following: (significant name are inside brackets)<br>
59 * <br>
60 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_IPM_TH]);<br>
61 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_S1_TH]);<br>
62 * <br>
63 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_S4_TH]);<br>
64 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_S4_ND_PLATE_TH]);<br>
65 * <br>
66 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_TRK_TH1]);<br>
67 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_TRK_TH2]);<br>
68 * <br>
69 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_FLUID_IN_TH]);<br>
70 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_FLUID_OUT_TH]);<br>
71 * <br>
72 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_VME_TH]);<br>
73 * <br>
74 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_DCDC_TH]);<br>
75 * <br>
76 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_CPU_TH1]);<br>
77 * HB_WRITE_UINT16(HB_TMTC,tmtc_tmp_array[TM_CPU_TH2]);<br>
78 * <br>
79 * HB_WRITE_UINT16(unknow 1);<br>
80 * HB_WRITE_UINT16(unknow 2);<br>
81 * HB_WRITE_UINT16(unknow 3);<br>
82 * HB_WRITE_UINT16(unknow 4);<br>
83 */
84 UINT16 TM_TH_ANA[16];
85
86
87 /**
88 * Digital data from the TMTC board.
89 *
90 * The order from 0 to 5 is the following: (significant name are inside brackets)<br>
91 * <br>
92 * HB_WRITE_UINT8(HB_TMTC,tmtc_tmp_array[TM_IPM_MOV_IPM1]);<br>
93 * HB_WRITE_UINT8(HB_TMTC,tmtc_tmp_array[TM_IPM_MOV_IPM2]);<br>
94 * HB_WRITE_UINT8(HB_TMTC,tmtc_tmp_array[TM_IPM_MOV_IPM3]);<br>
95 * HB_WRITE_UINT8(HB_TMTC,tmtc_tmp_array[TM_IPM_MOV_IPM4]);<br>
96 * HB_WRITE_UINT8(HB_TMTC,tmtc_tmp_array[TM_IPM_MOV_IPM5]);<br>
97 * HB_WRITE_UINT8(HB_TMTC,tmtc_tmp_array[TM_IPM_MOV_IPM6]);<br>
98 */
99 UINT8 TM_DEA_ANA[6];
100
101 TmtcRecord(void);
102 ~TmtcRecord(void){};
103 ClassDef(TmtcRecord, 2)
104 };
105 }
106
107 #endif /* TMTC_RECORD_H */
108

  ViewVC Help
Powered by ViewVC 1.1.23