1 |
/** @file |
2 |
* $Source: /repository/event/EventHeader.h,v $ |
3 |
* $Id: EventHeader.h,v 1.1 2008-01-11 17:14:19 messineo Exp $ |
4 |
* $Author: messineo $ |
5 |
* |
6 |
* Header file for the EventHeader class. |
7 |
*/ |
8 |
#ifndef EVENT_HEADER_H |
9 |
#define EVENT_HEADER_H |
10 |
#include "EventCounter.h" |
11 |
#include "PscuHeader.h" |
12 |
|
13 |
namespace pamela { |
14 |
/** |
15 |
* Common raw event header. It contains the PSCU header and the Counter. |
16 |
*/ |
17 |
class EventHeader: public pamela::SubPacket { |
18 |
private: |
19 |
/** Contains the counters of the current event number and the |
20 |
* last event numbers of the other event read before the current |
21 |
* event. */ |
22 |
pamela::EventCounter Counter; |
23 |
/** Event Information read from the Pamela CPU board. */ |
24 |
pamela::PscuHeader Pscu; |
25 |
public: |
26 |
EventHeader(int = 0); |
27 |
EventHeader(const pamela::PacketType *); |
28 |
~EventHeader(); |
29 |
/** Get the event counter. */ |
30 |
pamela::EventCounter *GetCounter() { return &Counter; } |
31 |
/** Get the PSCU header (information from the Pamela CPU board). */ |
32 |
pamela::PscuHeader *GetPscuHeader() throw (Exception) { return &Pscu; } |
33 |
ClassDef(EventHeader, 2) |
34 |
}; |
35 |
} |
36 |
|
37 |
#endif /* EVENT_HEADER_H */ |