/[PAMELA software]/yoda/event/mcmd/McmdRecord.h
ViewVC logotype

Annotation of /yoda/event/mcmd/McmdRecord.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6.0 - (hide annotations) (download)
Tue Feb 7 17:11:08 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 kusanagi 1.1 /** @file
2 kusanagi 1.2 * $Source: /home/cvsmanager/yoda/event/mcmd/McmdRecord.h,v $
3 kusanagi 6.0 * $Id: McmdRecord.h,v 5.2 2006/02/04 12:37:44 kusanagi Exp $
4     * $Author: kusanagi $
5 kusanagi 1.1 *
6     * Header file for the McmdRecord class.
7     */
8     #ifndef MCMD_RECORD_H
9     #define MCMD_RECORD_H
10    
11 kusanagi 1.2 #include <TArrayC.h>
12 kusanagi 5.1 #include "../SubPacket.h"
13 kusanagi 1.1 namespace pamela {
14     /**
15     * McmdRecord data Wrapper
16 kusanagi 4.1 *
17     *
18     * PAMELA CPU software collect several pamela::McmdRecord(s) writing
19     * them on the MassMemory as a unique packet.
20 kusanagi 1.1 */
21     class McmdRecord: public TObject {
22    
23     public:
24     /**
25 kusanagi 4.1 * The On-Board-Time of the Record.
26 kusanagi 1.1 */
27     UINT32 MCMD_RECORD_OBT;
28 kusanagi 4.1
29     /**
30     * The Mcmd crc result.
31     *
32     * It specifies if the Mcmd was transmitted correctly: <br>
33     * 0 = Mcmd correctly transmitted <br>
34     * 1 = Mcmd not correctly transmitted
35     */
36 kusanagi 1.1 int Mcmd_Block_crc_ok;
37 kusanagi 4.1
38     /**
39     * The Sequential ID of the MCMD.
40     */
41 kusanagi 1.1 UINT16 SeqID;
42 kusanagi 4.1
43     /**
44     * Identify if the Mcmd is a Tagged one or not.
45     */
46 kusanagi 2.2 UINT8 Tbit;
47 kusanagi 4.1
48     /**
49     * The MCMD identifier.
50     */
51 kusanagi 2.2 UINT8 ID1;
52 kusanagi 4.1
53     /**
54     * The Mcmd length.
55     */
56 kusanagi 1.1 UINT16 McmdLength;
57 kusanagi 4.1
58     /**
59     * The On-Board-Time for start the Mcmd if it is TimeTagged.
60     */
61 kusanagi 1.1 UINT32 TimeTag;
62 kusanagi 4.1
63     /**
64     * An array of chars containing the Mcmd data area.
65     */
66 kusanagi 1.2 TArrayC *McmdData;
67 kusanagi 4.1
68     /**
69     * Modulo 256 sum of all bytes except the endID
70     */
71 kusanagi 2.2 UINT8 endID;
72 kusanagi 1.1
73    
74     McmdRecord(void);
75    
76 kusanagi 1.2 /*void setMcmdData(const BYTE val[]) {
77 kusanagi 1.1 if (McmdLength > 0){
78     McmdData = new BYTE[McmdLength];
79     memcpy(McmdData, val, McmdLength);
80     }
81 kusanagi 1.2 };*/
82 kusanagi 1.1
83     ClassDef(McmdRecord, 1)
84     };
85     }
86    
87     #endif /* MCMD_RECORD_H */
88    

  ViewVC Help
Powered by ViewVC 1.1.23