1 |
/** @file |
/** @file |
2 |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/SubPacket.h,v $ |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/SubPacket.h,v $ |
3 |
* $Id: SubPacket.h,v 1.1.1.1 2008/09/23 07:19:54 mocchiut Exp $ |
* $Id: SubPacket.h,v 1.3 2009/07/29 15:47:24 mocchiut Exp $ |
4 |
* $Author: mocchiut $ |
* $Author: mocchiut $ |
5 |
* |
* |
6 |
* Header file for the SubPacket class. |
* Header file for the SubPacket class. |
24 |
class SubPacket: public TObject { |
class SubPacket: public TObject { |
25 |
private: |
private: |
26 |
/** |
/** |
|
* The name of the subpacket. |
|
|
*/ |
|
|
std::string SubPacketName; //! |
|
|
/** |
|
27 |
* The packet type of the sub packet. |
* The packet type of the sub packet. |
28 |
*/ |
*/ |
29 |
const pamela::PacketType* Type; //! |
const pamela::PacketType* Type; //! |
32 |
* any subdetector. |
* any subdetector. |
33 |
*/ |
*/ |
34 |
const pamela::SubDetector* Detector; //! |
const pamela::SubDetector* Detector; //! |
35 |
|
/** |
36 |
|
* The name of the subpacket. |
37 |
|
*/ |
38 |
|
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 |
|
virtual const char* Print() const { return "SubType"; } |
43 |
|
virtual void Print(Option_t *option="") const { option="";}; |
44 |
|
// virtual const char* Print(){ return "SubType"; } |
45 |
|
// void Print(Option_t *option){Print();}; |
46 |
std::stringstream oss; //! |
std::stringstream oss; //! |
47 |
public: |
public: |
48 |
SubPacket(void); |
SubPacket(void); |
63 |
*/ |
*/ |
64 |
const pamela::PacketType* GetPacketType(void) const { return Type; } |
const pamela::PacketType* GetPacketType(void) const { return Type; } |
65 |
|
|
66 |
ClassDef(SubPacket, 1) |
ClassDef(SubPacket, 2) |
67 |
}; |
}; |
68 |
} |
} |
69 |
|
|