/[PAMELA software]/chewbacca/event/PacketType.h
ViewVC logotype

Annotation of /chewbacca/event/PacketType.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Jul 24 13:53:51 2009 UTC (16 years, 4 months ago) by mocchiut
Branch: MAIN
Changes since 1.1: +11 -7 lines
File MIME type: text/plain
Runtime error with ROOT 5.24 fixed, many small changes and warnings fixing

1 mocchiut 1.1 /** @file
2 mocchiut 1.2 * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/PacketType.h,v $
3     * $Id: PacketType.h,v 1.1.1.1 2008/09/23 07:19:52 mocchiut Exp $
4     * $Author: mocchiut $
5 mocchiut 1.1 *
6     * Header file for the PacketType class.
7     */
8     #ifndef PACKETTYPE_H
9     #define PACKETTYPE_H
10     #include <string>
11     #include <sstream>
12 mocchiut 1.2 #include <TObject.h>
13 mocchiut 1.1 #include <Rtypes.h> //Substituted by Maurizio 05 Feb 2004
14    
15     namespace pamela {
16     /**
17     * The type of a packet type.
18     */
19 mocchiut 1.2 class PacketType: public TObject{
20 mocchiut 1.1 private:
21     /**
22     * A magic number to distinguish between the Packets. A "packet
23     * type" is central for the whole YODA analysis package. The data
24     * flow within YODA is organized within different streams which
25     * are distinguished by their "packet type". The main data stream
26     * has the package type "Physics" that handles all physics
27     * events. Other important types are "Housekeeping" and
28     * "Calibration". The different package type originate in the
29     * differnet package types in the raw data file and correspond to
30     * them.
31     */
32     int Magic;
33     /**
34     * The name of the packet type.
35     */
36     std::string Name;
37     protected:
38     PacketType(int, std::string);
39 mocchiut 1.2 virtual const char* PrintName(void) const { return "Packet Type"; }
40 mocchiut 1.1 virtual ~PacketType();
41     public:
42     /**
43     * Get the name of the packet type
44     */
45 mocchiut 1.2 // const std::string GetName(void) const { return Name; }
46     const char* GetName(void) const { return Name.c_str(); }
47 mocchiut 1.1 /**
48     * Get the magic number of the packet type
49     */
50     const int GetMagic(void) const { return Magic; }
51 mocchiut 1.2
52     PacketType();
53 mocchiut 1.1
54     static const PacketType* Pscu; /**< Pscu event packets */
55     static const PacketType* PhysEndRun;
56     static const PacketType* CalibCalPulse1;
57     static const PacketType* CalibCalPulse2;
58     static const PacketType* Physics;
59     static const PacketType* CalibTrkBoth;
60     static const PacketType* CalibTrk1;
61     static const PacketType* CalibTrk2;
62     static const PacketType* CalibTof;
63     static const PacketType* CalibS4;
64     static const PacketType* CalibCalPed;
65     static const PacketType* Calib1_Ac1;
66     static const PacketType* Calib2_Ac1;
67     static const PacketType* Calib1_Ac2;
68     static const PacketType* Calib2_Ac2;
69     static const PacketType* CalibCal;
70     static const PacketType* RunHeader;
71     static const PacketType* RunTrailer;
72     static const PacketType* CalibHeader;
73     static const PacketType* CalibTrailer;
74     static const PacketType* InitHeader;
75     static const PacketType* InitTrailer;
76     static const PacketType* EventTrk;
77     static const PacketType* Log;
78     static const PacketType* VarDump;
79     static const PacketType* ArrDump;
80     static const PacketType* TabDump;
81     static const PacketType* Tmtc;
82     static const PacketType* Mcmd;
83     static const PacketType* ForcedFECmd;
84     static const PacketType* Ac1Init;
85     static const PacketType* CalInit;
86     static const PacketType* TrkInit;
87     static const PacketType* TofInit;
88     static const PacketType* TrgInit;
89     static const PacketType* NdInit;
90     static const PacketType* S4Init;
91     static const PacketType* Ac2Init;
92     static const PacketType* CalAlarm;
93     static const PacketType* Ac1Alarm;
94     static const PacketType* TrkAlarm;
95     static const PacketType* TrgAlarm;
96     static const PacketType* TofAlarm;
97     static const PacketType* S4Alarm;
98     static const PacketType* Ac2Alarm;
99     static const PacketType* TsbT;
100     static const PacketType* TsbB;
101     static const PacketType* Invalid;
102    
103 mocchiut 1.2 ClassDef(PacketType, 7)
104 mocchiut 1.1 };
105     }
106    
107     #endif /* PACKETTYPE_H */

  ViewVC Help
Powered by ViewVC 1.1.23