]>
Commit | Line | Data |
---|---|---|
c689d2f6 | 1 | #ifndef ALIRAWEVENT_H |
2 | #define ALIRAWEVENT_H | |
5ea08be4 | 3 | // @(#)alimdc:$Name$:$Id$ |
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 | ||
5ea08be4 | 38 | |
39 | // Forward class declarations | |
a197a4ce | 40 | class AliRawEventHeader; |
94d918a7 | 41 | class AliRawEquipment; |
5ea08be4 | 42 | |
5ea08be4 | 43 | |
c689d2f6 | 44 | class AliRawEvent : public TObject { |
5ea08be4 | 45 | |
46 | public: | |
47 | AliRawEvent(); | |
48 | virtual ~AliRawEvent(); | |
49 | ||
c51de60d | 50 | AliRawEventHeader *GetHeader(); |
94d918a7 | 51 | Int_t GetNEquipments() const { return fNEquipments; } |
52 | AliRawEquipment *NextEquipment(); | |
53 | AliRawEquipment *GetEquipment(Int_t index) const; | |
5ea08be4 | 54 | Int_t GetNSubEvents() const { return fNSubEvents; } |
55 | AliRawEvent *NextSubEvent(); | |
5459c838 | 56 | AliRawEvent *GetSubEvent(Int_t index) const; |
5ea08be4 | 57 | void Reset(); |
58 | ||
c689d2f6 | 59 | private: |
94d918a7 | 60 | Int_t fNEquipments; // number of valid equipments |
c689d2f6 | 61 | Int_t fNSubEvents; // number of valid sub-events |
62 | AliRawEventHeader *fEvtHdr; // event header object | |
94d918a7 | 63 | TObjArray *fEquipments; // AliRawEquipment's |
c689d2f6 | 64 | TObjArray *fSubEvents; // sub AliRawEvent's |
65 | ||
a197a4ce | 66 | AliRawEvent(const AliRawEvent& rawEvent); |
67 | AliRawEvent& operator = (const AliRawEvent& rawEvent); | |
edbfa2f2 | 68 | |
94d918a7 | 69 | ClassDef(AliRawEvent,2) // ALICE raw event object |
5ea08be4 | 70 | }; |
71 | ||
5ea08be4 | 72 | #endif |