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

Contents of /chewbacca/event/EventHeader.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jan 19 12:34:18 2015 UTC (9 years, 10 months ago) by mocchiut
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +5 -5 lines
File MIME type: text/plain
Memory leak fixed in pamela::mapval, pamela::mappa, pamela::EventCounter, new IGRF12 parameters added in DB

1 /** @file
2 * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventHeader.h,v $
3 * $Id: EventHeader.h,v 1.1.1.1 2008/09/23 07:19:57 mocchiut Exp $
4 * $Author: mocchiut $
5 *
6 * Header file for the EventHeader class.
7 */
8 #ifndef EVENT_HEADER_H
9 #define EVENT_HEADER_H
10 #include "EventCounter.h"
11 #include "PscuHeader.h"
12
13 namespace pamela {
14 /**
15 * Common raw event header. It contains the PSCU header and the Counter.
16 */
17 class EventHeader: public pamela::SubPacket {
18 private:
19 /** Contains the counters of the current event number and the
20 * last event numbers of the other event read before the current
21 * event. */
22 pamela::EventCounter Counter;
23 /** Event Information read from the Pamela CPU board. */
24 pamela::PscuHeader Pscu;
25 public:
26 EventHeader(int = 0);
27 EventHeader(const pamela::PacketType *);
28 ~EventHeader(){Counter.Clear();};
29 /** Get the event counter. */
30 pamela::EventCounter *GetCounter() { return &Counter; }
31 /** Get the PSCU header (information from the Pamela CPU board). */
32 pamela::PscuHeader *GetPscuHeader() throw (Exception) { return &Pscu; }
33 ClassDef(EventHeader, 3)
34 };
35 }
36
37 #endif /* EVENT_HEADER_H */

  ViewVC Help
Powered by ViewVC 1.1.23