1 |
/** @file |
2 |
* $Source: /home/cvspamela/yoda/event/EventHeader.h,v $ |
3 |
* $Id: EventHeader.h,v 1.6 2004/03/16 10:18:28 nagni Exp $ |
4 |
* $Author: nagni $ |
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 <root/TROOT.h> |
13 |
// #include <root/TTree.h> |
14 |
#include <TROOT.h> //Substituted by Maurizio 05 Feb 2004 |
15 |
#include <TTree.h> //Substituted by Maurizio 05 Feb 2004 |
16 |
|
17 |
|
18 |
#include "SubPacket.h" |
19 |
#include "PscuHeader.h" |
20 |
#include "EventCounter.h" |
21 |
|
22 |
namespace pamela { |
23 |
/** |
24 |
* Common raw event header. It contains the PSCU header and the Counter. |
25 |
*/ |
26 |
class EventHeader: public pamela::SubPacket { |
27 |
private: |
28 |
/** Contains the counters of the current event number and the |
29 |
* last event numbers of the other event read before the current |
30 |
* event. */ |
31 |
pamela::EventCounter Counter; |
32 |
/** Event Information read from the Pamela CPU board. */ |
33 |
pamela::PscuHeader Pscu; |
34 |
public: |
35 |
EventHeader(int = 0); |
36 |
EventHeader(const pamela::PacketType *); |
37 |
~EventHeader(); |
38 |
/** Get the event counter. */ |
39 |
pamela::EventCounter *GetCounter() { return &Counter; } |
40 |
/** Get the PSCU header (information from the Pamela CPU board). */ |
41 |
pamela::PscuHeader *GetPscuHeader() { return &Pscu; } |
42 |
ClassDef(EventHeader, 1) |
43 |
}; |
44 |
} |
45 |
|
46 |
#endif /* EVENT_HEADER_H */ |