]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RAW/AliRawEvent.h
New flat raw-data event format. The details can be found at: http://indico.cern.ch...
[u/mrichter/AliRoot.git] / RAW / AliRawEvent.h
CommitLineData
c689d2f6 1#ifndef ALIRAWEVENT_H
2#define ALIRAWEVENT_H
d04aea32 3// @(#) $Id$
5ea08be4 4// Author: Fons Rademakers 26/11/99
5// Updated: Dario Favretto 15/04/2003
6
35aa01d6 7/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
8 * See cxx source for full Copyright notice */
9
10//////////////////////////////////////////////////////////////////////////
11// //
12// AliRawEvent //
13// //
14// Set of classes defining the ALICE RAW event format. The AliRawEvent //
15// class defines a RAW event. It consists of an AliEventHeader object //
16// an AliEquipmentHeader object, an AliRawData object and an array of //
17// sub-events, themselves also being AliRawEvents. The number of //
18// sub-events depends on the number of DATE LDC's. //
19// The AliRawEvent objects are written to a ROOT file using different //
20// technologies, i.e. to local disk via AliRawDB or via rfiod using //
21// AliRawRFIODB or via rootd using AliRawRootdDB or to CASTOR via //
22// rootd using AliRawCastorDB (and for performance testing there is //
23// also AliRawNullDB). //
24// The AliRunDB class provides the interface to the run and file //
25// catalogues (AliEn or plain MySQL). //
26// The AliStats class provides statics information that is added as //
27// a single keyed object to each raw file. //
28// The AliTagDB provides an interface to a TAG database. //
29// The AliMDC class is usid by the "alimdc" stand-alone program //
30// that reads data directly from DATE. //
31// //
32//////////////////////////////////////////////////////////////////////////
5ea08be4 33
34#ifndef ROOT_TObject
35#include <TObject.h>
36#endif
37
b7d09bb3 38#ifndef ROOT_TObjArray
39#include <TObjArray.h>
40#endif
41
5ea08be4 42
43// Forward class declarations
f2dc6b20 44class AliRawEventHeaderBase;
94d918a7 45class AliRawEquipment;
5ea08be4 46
33314186 47#include "AliRawVEvent.h"
5ea08be4 48
33314186 49class AliRawEvent : public AliRawVEvent {
5ea08be4 50
51public:
52 AliRawEvent();
53 virtual ~AliRawEvent();
54
33314186 55 virtual AliRawEventHeaderBase *GetHeader();
56 virtual Int_t GetNEquipments() const { return fNEquipments; }
57 virtual AliRawEquipment *GetEquipment(Int_t index) const;
58 virtual Int_t GetNSubEvents() const { return fNSubEvents; }
59 virtual AliRawEvent *GetSubEvent(Int_t index);
5ea08be4 60
c689d2f6 61private:
94d918a7 62 Int_t fNEquipments; // number of valid equipments
c689d2f6 63 Int_t fNSubEvents; // number of valid sub-events
f2dc6b20 64 AliRawEventHeaderBase *fEvtHdr; // event header object
94d918a7 65 TObjArray *fEquipments; // AliRawEquipment's
c689d2f6 66 TObjArray *fSubEvents; // sub AliRawEvent's
67
a197a4ce 68 AliRawEvent(const AliRawEvent& rawEvent);
69 AliRawEvent& operator = (const AliRawEvent& rawEvent);
edbfa2f2 70
33314186 71 ClassDef(AliRawEvent,3) // ALICE raw event object
5ea08be4 72};
73
5ea08be4 74#endif