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

Contents of /yoda/event/CalibCalPedEvent.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6.0 - (show annotations) (download)
Tue Feb 7 17:11:06 2006 UTC (18 years, 10 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.0: +0 -0 lines
File MIME type: text/plain
Error occurred while calculating annotation data.
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 #ifndef CALIBCALPED_EVENT_H
2 #define CALIBCALPED_EVENT_H
3
4 #include "SubPacket.h"
5
6 namespace pamela {
7 /**
8 * 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 */
15 class CalibCalPedEvent: public pamela::SubPacket {
16 private:
17
18 public:
19 CalibCalPedEvent(void);
20
21 /**
22 * A Counter.
23 */
24 int iev;
25
26 /**
27 * The Status Word of each section.
28 */
29 int cstwerr[4];
30
31 /**
32 * The Error Code for each section.
33 */
34 float cperror[4];
35
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 float calped[4][11][96];
41
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 float calgood[4][11][96];
50
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 float calthr[4][11][6];
56
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 float calrms[4][11][96];
62
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 float calbase[4][11][6];
68
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 float calvar[4][11][6];
74
75
76 //float calpuls[4][11][96];
77 UINT8 unpackError;
78
79 ClassDef(CalibCalPedEvent, 2)
80 };
81 }
82
83 #endif /* CALIBCALPED_EVENT_H */
84

  ViewVC Help
Powered by ViewVC 1.1.23