/[PAMELA software]/yoda/event/EventHeader.h
ViewVC logotype

Contents of /yoda/event/EventHeader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Sep 21 20:23:37 2004 UTC (20 years, 2 months ago) by kusanagi
Branch: MAIN
Changes since 1.1: +5 -7 lines
File MIME type: text/plain
Commit toward log4cxx plus new packets types

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 */

  ViewVC Help
Powered by ViewVC 1.1.23