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

Annotation of /yoda/event/EventHeader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4.0 - (hide annotations) (download)
Sun Mar 6 04:33:01 2005 UTC (19 years, 8 months ago) by kusanagi
Branch: MAIN
CVS Tags: yodaPreTermistors2_1/00, YODA4_1/00, YODA4_0/04, YODA4_0/03, YODA4_0/02, YODA4_0/01, YODA4_3/02, YODA4_3/00, YODA4_3/01, YODA4_2/01, YODA4_2/00, YODA4_2/03, yodaPreTermistores2_0/00
Branch point for: PreThermistores2
Changes since 3.0: +1 -1 lines
File MIME type: text/plain
Stable version 4.0 - 6 March 2005 - Maurizio Nagni

1 kusanagi 1.1 /** @file
2 kusanagi 1.2 * $Source: /home/cvsmanager/yoda/event/EventHeader.h,v $
3 kusanagi 4.0 * $Id: EventHeader.h,v 3.0 2005/03/04 15:54:11 kusanagi Exp $
4 kusanagi 1.2 * $Author: kusanagi $
5 kusanagi 1.1 *
6     * Header file for the EventHeader class.
7     */
8     #ifndef EVENT_HEADER_H
9     #define EVENT_HEADER_H
10    
11     #include <iostream>
12 kusanagi 1.2 #include <TROOT.h>
13     #include <TTree.h>
14 kusanagi 1.1
15    
16     #include "SubPacket.h"
17     #include "PscuHeader.h"
18     #include "EventCounter.h"
19    
20 kusanagi 2.1
21 kusanagi 1.1 namespace pamela {
22     /**
23     * Common raw event header. It contains the PSCU header and the Counter.
24     */
25     class EventHeader: public pamela::SubPacket {
26     private:
27     /** Contains the counters of the current event number and the
28     * last event numbers of the other event read before the current
29     * event. */
30     pamela::EventCounter Counter;
31     /** Event Information read from the Pamela CPU board. */
32     pamela::PscuHeader Pscu;
33     public:
34     EventHeader(int = 0);
35     EventHeader(const pamela::PacketType *);
36     ~EventHeader();
37     /** Get the event counter. */
38     pamela::EventCounter *GetCounter() { return &Counter; }
39     /** Get the PSCU header (information from the Pamela CPU board). */
40 kusanagi 2.1 pamela::PscuHeader *GetPscuHeader() throw (Exception) { return &Pscu; }
41 kusanagi 2.2 ClassDef(EventHeader, 2)
42 kusanagi 1.1 };
43     }
44    
45     #endif /* EVENT_HEADER_H */

  ViewVC Help
Powered by ViewVC 1.1.23