1 |
kusanagi |
1.1 |
/** @file |
2 |
kusanagi |
2.0 |
* $Source: /home/cvsmanager/yoda/event/EventHeader.cpp,v $ |
3 |
kusanagi |
4.0 |
* $Id: EventHeader.cpp,v 3.0 2005/03/04 15:54:11 kusanagi Exp $ |
4 |
kusanagi |
2.0 |
* $Author: kusanagi $ |
5 |
kusanagi |
1.1 |
* |
6 |
|
|
* Implementation of the EventHeader class. |
7 |
|
|
*/ |
8 |
|
|
#include "EventHeader.h" |
9 |
|
|
|
10 |
|
|
using namespace pamela; |
11 |
|
|
|
12 |
|
|
/** |
13 |
|
|
* Create a new event header object which belongs to all packet types |
14 |
|
|
* @param run Run number |
15 |
|
|
*/ |
16 |
|
|
EventHeader::EventHeader(int run): |
17 |
|
|
SubPacket("Header"), Counter(run) { |
18 |
|
|
} |
19 |
|
|
|
20 |
|
|
/** |
21 |
|
|
* Create a new event header object. |
22 |
|
|
* @param type Packet type the header event belongs to. |
23 |
|
|
*/ |
24 |
|
|
EventHeader::EventHeader(const PacketType* t): |
25 |
|
|
SubPacket("Header", t), Counter(0) { |
26 |
|
|
} |
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
/** |
31 |
|
|
* Destroy the event header object. |
32 |
|
|
*/ |
33 |
|
|
EventHeader::~EventHeader() { } |
34 |
|
|
|
35 |
|
|
ClassImp(EventHeader) |