Parent Directory | Revision Log
Several new features in this release: 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 | 2.4 | /** @file |
2 | kusanagi | 1.2 | * $Source: /home/cvsmanager/yoda/event/EventCounter.h,v $ |
3 | kusanagi | 5.1 | * $Id: EventCounter.h,v 5.0 2005/08/29 09:45:48 Maurizio Nagni Exp $ |
4 | * $Author: Maurizio Nagni $ | ||
5 | kusanagi | 1.1 | * |
6 | * Header file for the EventCounter class. | ||
7 | */ | ||
8 | #ifndef EVENTCOUNTER_H | ||
9 | #define EVENTCOUNTER_H | ||
10 | |||
11 | #include <map> | ||
12 | kusanagi | 2.2 | #include "Exception.h" |
13 | kusanagi | 5.1 | #include "PacketType.h" |
14 | #include <TObject.h> | ||
15 | kusanagi | 1.1 | |
16 | namespace pamela { | ||
17 | /** | ||
18 | * Event counter. Contains the event numbers of the last read event of | ||
19 | * each event type. | ||
20 | */ | ||
21 | class EventCounter : public TObject { | ||
22 | private: | ||
23 | int RunNumber; /**< Run number */ | ||
24 | kusanagi | 1.5 | |
25 | kusanagi | 1.1 | int Pscu; |
26 | kusanagi | 1.5 | int PhysEndRun; |
27 | int CalibCalPulse1; | ||
28 | int CalibCalPulse2; | ||
29 | kusanagi | 1.1 | int Physics; |
30 | kusanagi | 2.5 | int CalibTrk1; |
31 | int CalibTrk2; | ||
32 | int CalibCal; | ||
33 | int CalibTof; | ||
34 | int CalibS4; | ||
35 | int CalibCalPed; | ||
36 | kusanagi | 2.4 | int Calib1_Ac1; |
37 | int Calib1_Ac2; | ||
38 | int Calib2_Ac1; | ||
39 | int Calib2_Ac2; | ||
40 | kusanagi | 2.5 | int RunHeader; |
41 | int RunTrailer; | ||
42 | kusanagi | 1.5 | int CalibHeader; |
43 | int CalibTrailer; | ||
44 | int InitHeader; | ||
45 | int InitTrailer; | ||
46 | kusanagi | 1.1 | int Log; |
47 | int VarDump; | ||
48 | int ArrDump; | ||
49 | int TabDump; | ||
50 | int Tmtc; | ||
51 | int Mcmd; | ||
52 | kusanagi | 1.5 | int ForcedFECmd; |
53 | kusanagi | 2.4 | int Ac1Init; |
54 | kusanagi | 1.5 | int CalInit; |
55 | int TrkInit; | ||
56 | int TofInit; | ||
57 | int TrgInit; | ||
58 | kusanagi | 2.1 | int NdInit; |
59 | kusanagi | 2.3 | int S4Init; |
60 | kusanagi | 2.4 | int Ac2Init; |
61 | kusanagi | 1.6 | int CalAlarm; |
62 | int AcAlarm; | ||
63 | int TrkAlarm; | ||
64 | int TrgAlarm; | ||
65 | int TofAlarm; | ||
66 | kusanagi | 2.3 | int S4Alarm; |
67 | kusanagi | 2.6 | int TsbT; |
68 | int TsbB; | ||
69 | kusanagi | 1.1 | |
70 | typedef std::map<const pamela::PacketType *, int *> CounterMap; | ||
71 | CounterMap CMap; //! | ||
72 | kusanagi | 1.6 | |
73 | kusanagi | 1.1 | public: |
74 | EventCounter(int = 0); | ||
75 | /** Get the run number for the last read event of this type. */ | ||
76 | kusanagi | 1.6 | int getPscu() const { return Pscu; }; |
77 | /** Get the run number for the last read event of this type. */ | ||
78 | kusanagi | 2.2 | int Get(pamela::PacketType const *) const throw (NotExistingCounterException); |
79 | kusanagi | 1.1 | /** Get the run number for the next event of this type. */ |
80 | kusanagi | 2.2 | int Next(pamela::PacketType const *) const throw (NotExistingCounterException); |
81 | kusanagi | 1.1 | int GetRunNumber(void) const { return RunNumber; } |
82 | kusanagi | 2.2 | void Increment(pamela::PacketType const *) throw (NotExistingCounterException); |
83 | kusanagi | 1.1 | void PrintCounters() const ; |
84 | kusanagi | 5.1 | ClassDef(EventCounter, 5) |
85 | kusanagi | 1.1 | }; |
86 | } | ||
87 | |||
88 | #endif /* EVENTCOUNTER_H */ | ||
89 | kusanagi | 2.3 | |
90 |
ViewVC Help | |
Powered by ViewVC 1.1.23 |