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

Annotation of /chewbacca/event/PacketType.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Fri Jul 24 13:53:50 2009 UTC (16 years, 4 months ago) by mocchiut
Branch: MAIN
CVS Tags: v10RED, v9r00, v9r01, HEAD
Changes since 1.1: +6 -4 lines
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.cpp,v $
3     * $Id: PacketType.cpp,v 1.1.1.1 2008/09/23 07:19:53 mocchiut Exp $
4     * $Author: mocchiut $
5 mocchiut 1.1 *
6     * Implementation of the PacketType class.
7     * modified Nagni 2004/03/01
8     */
9     #include "PacketType.h"
10    
11     using namespace pamela;
12    
13     //The Pscu packet is fake because doesn't really own to any specific PscuPacket
14     //is only a facility packet for the Header
15     const PacketType* PacketType::Pscu = new PacketType(0xaa, "Pscu");
16     const PacketType* PacketType::PhysEndRun = new PacketType(0x07, "PhysEndRun");
17     const PacketType* PacketType::CalibCalPulse1 = new PacketType(0x08, "CalibCalPulse1");
18     const PacketType* PacketType::CalibCalPulse2 = new PacketType(0x09, "CalibCalPulse2");
19     const PacketType* PacketType::Physics = new PacketType(0x10, "Physics");
20     const PacketType* PacketType::CalibTrkBoth = new PacketType(0x11, "CalibTrkBoth");
21     const PacketType* PacketType::CalibTrk1 = new PacketType(0x12, "CalibTrk1");
22     const PacketType* PacketType::CalibTrk2 = new PacketType(0x13, "CalibTrk2");
23     const PacketType* PacketType::CalibTof = new PacketType(0x16, "CalibTof");
24     const PacketType* PacketType::CalibS4 = new PacketType(0x17, "CalibS4");
25     const PacketType* PacketType::CalibCalPed = new PacketType(0x18, "CalibCalPed");
26     const PacketType* PacketType::Calib1_Ac1 = new PacketType(0x19, "Calib1_Ac1");
27     const PacketType* PacketType::Calib2_Ac1 = new PacketType(0x1A, "Calib2_Ac1");
28     const PacketType* PacketType::Calib1_Ac2 = new PacketType(0x1B, "Calib1_Ac2");
29     const PacketType* PacketType::Calib2_Ac2 = new PacketType(0x1C, "Calib2_Ac2");
30     const PacketType* PacketType::CalibCal = new PacketType(0x1D, "CalibCal");
31     const PacketType* PacketType::RunHeader = new PacketType(0x20, "RunHeader");
32     const PacketType* PacketType::RunTrailer = new PacketType(0x21, "RunTrailer");
33     const PacketType* PacketType::CalibHeader = new PacketType(0x22, "CalibHeader");
34     const PacketType* PacketType::CalibTrailer = new PacketType(0x23, "CalibTrailer");
35     const PacketType* PacketType::InitHeader = new PacketType(0x24, "InitHeader");
36     const PacketType* PacketType::InitTrailer = new PacketType(0x25, "InitTrailer");
37     const PacketType* PacketType::EventTrk = new PacketType(0x30, "EventTrk");
38     const PacketType* PacketType::Log = new PacketType(0x50, "Log");
39     const PacketType* PacketType::VarDump = new PacketType(0x51, "VarDump");
40     const PacketType* PacketType::ArrDump = new PacketType(0x52, "ArrDump");
41     const PacketType* PacketType::TabDump = new PacketType(0x53, "TabDump");
42     const PacketType* PacketType::Tmtc = new PacketType(0x54, "Tmtc");
43     const PacketType* PacketType::Mcmd = new PacketType(0x55, "Mcmd");
44     const PacketType* PacketType::ForcedFECmd = new PacketType(0x60, "ForcedFECmd");
45     const PacketType* PacketType::Ac1Init = new PacketType(0x70, "Ac1Init");
46     const PacketType* PacketType::CalInit = new PacketType(0x71, "CalInit");
47     const PacketType* PacketType::TrkInit = new PacketType(0x72, "TrkInit");
48     const PacketType* PacketType::TofInit = new PacketType(0x73, "TofInit");
49     const PacketType* PacketType::TrgInit = new PacketType(0x74, "TrgInit");
50     const PacketType* PacketType::NdInit = new PacketType(0x75, "NdInit");
51     const PacketType* PacketType::S4Init = new PacketType(0x76, "S4Init");
52     const PacketType* PacketType::Ac2Init = new PacketType(0x77, "Ac2Init");
53     const PacketType* PacketType::CalAlarm = new PacketType(0x81, "CalAlarm");
54     const PacketType* PacketType::Ac1Alarm = new PacketType(0x82, "Ac1Alarm");
55     const PacketType* PacketType::TrkAlarm = new PacketType(0x83, "TrkAlarm");
56     const PacketType* PacketType::TrgAlarm = new PacketType(0x84, "TrgAlarm");
57     const PacketType* PacketType::TofAlarm = new PacketType(0x85, "TofAlarm");
58     const PacketType* PacketType::S4Alarm = new PacketType(0x86, "S4Alarm");
59     const PacketType* PacketType::Ac2Alarm = new PacketType(0x89, "Ac2Alarm");
60     const PacketType* PacketType::TsbT = new PacketType(0xA1, "TsbT");
61     const PacketType* PacketType::TsbB = new PacketType(0xAB, "TsbB");
62    
63    
64 mocchiut 1.2 const PacketType* PacketType::Invalid = new PacketType(-1, "Invalid");
65 mocchiut 1.1
66     /**
67     * Constructor: Build a packet type with a specific magic number and name.
68     */
69     PacketType::PacketType(int m, std::string s): Magic(m), Name(s) { }
70    
71 mocchiut 1.2 PacketType::PacketType(): Magic(0x00), Name("null") { }
72    
73 mocchiut 1.1 PacketType::~PacketType() {}
74    
75     ClassImp(PacketType)

  ViewVC Help
Powered by ViewVC 1.1.23