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