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

Contents of /yoda/event/EventHeader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (download) (vendor branch)
Tue Jul 6 12:20:23 2004 UTC (20 years, 5 months ago) by kusanagi
Changes since 1.1: +0 -0 lines
File MIME type: text/plain

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

  ViewVC Help
Powered by ViewVC 1.1.23