| 1 |
/** @file |
/** @file |
| 2 |
* $Source: /home/cvsmanager/yoda/event/SubPacket.h,v $ |
* $Source: /home/cvsmanager/yoda/event/SubPacket.h,v $ |
| 3 |
* $Id: SubPacket.h,v 2.0 2004/09/21 20:49:57 kusanagi Exp $ |
* $Id: SubPacket.h,v 2.3 2005/01/13 14:43:21 kusanagi Exp $ |
| 4 |
* $Author: kusanagi $ |
* $Author: kusanagi $ |
| 5 |
* |
* |
| 6 |
* Header file for the SubPacket class. |
* Header file for the SubPacket class. |
| 8 |
#ifndef SUB_PACKET_H |
#ifndef SUB_PACKET_H |
| 9 |
#define SUB_PACKET_H |
#define SUB_PACKET_H |
| 10 |
|
|
| 11 |
#define BYTE unsigned char |
#define UINT32 unsigned int |
| 12 |
#define UINT32 unsigned int |
#define UINT16 unsigned short |
| 13 |
#define UINT16 unsigned short |
#define UINT8 unsigned char |
|
|
|
|
#include <string> |
|
|
|
|
|
// #include <root/TObject.h> |
|
|
#include <TObject.h> //Substituted by Maurizio 05 Feb 2004 |
|
|
|
|
| 14 |
#include "PacketType.h" |
#include "PacketType.h" |
| 15 |
#include "SubDetector.h" |
#include "SubDetector.h" |
| 16 |
|
#include "TObject.h" |
| 17 |
|
|
| 18 |
namespace pamela { |
namespace pamela { |
| 19 |
/** |
/** |
| 38 |
std::string SubPacketName; //! |
std::string SubPacketName; //! |
| 39 |
protected: |
protected: |
| 40 |
SubPacket(std::string, const pamela::PacketType* = 0, const pamela::SubDetector* = 0); |
SubPacket(std::string, const pamela::PacketType* = 0, const pamela::SubDetector* = 0); |
| 41 |
|
virtual const char* Print(){ return "SubType"; } |
| 42 |
|
std::stringstream oss; //! |
| 43 |
public: |
public: |
| 44 |
SubPacket(void); |
SubPacket(void); |
| 45 |
/** |
/** |
| 58 |
* Get the packet type (physics, orbital etc.) the SubPacket belongs to. |
* Get the packet type (physics, orbital etc.) the SubPacket belongs to. |
| 59 |
*/ |
*/ |
| 60 |
const pamela::PacketType* GetPacketType(void) const { return Type; } |
const pamela::PacketType* GetPacketType(void) const { return Type; } |
| 61 |
|
|
| 62 |
ClassDef(SubPacket, 1) |
ClassDef(SubPacket, 1) |
| 63 |
}; |
}; |
| 64 |
} |
} |