1 |
mocchiut |
1.1 |
/** @file |
2 |
mocchiut |
1.2 |
* $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventHeader.cpp,v $ |
3 |
|
|
* $Id: EventHeader.cpp,v 1.1.1.1 2008/09/23 07:19:52 mocchiut Exp $ |
4 |
|
|
* $Author: mocchiut $ |
5 |
mocchiut |
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 |
|
|
/** |
22 |
|
|
* Create a new event header object. |
23 |
|
|
* @param type Packet type the header event belongs to. |
24 |
|
|
*/ |
25 |
|
|
EventHeader::EventHeader(const PacketType* t): |
26 |
|
|
SubPacket("Header", t), Counter(0) { |
27 |
|
|
} |
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
/** |
32 |
|
|
* Destroy the event header object. |
33 |
|
|
*/ |
34 |
mocchiut |
1.2 |
// EventHeader::~EventHeader() { } |
35 |
mocchiut |
1.1 |
|
36 |
|
|
ClassImp(EventHeader) |