1 // @(#)alimdc:$Name$:$Id$
2 // Author: Fons Rademakers 26/11/99
4 /**************************************************************************
5 * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
7 * Author: The ALICE Off-line Project. *
8 * Contributors are mentioned in the code where appropriate. *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
19 //////////////////////////////////////////////////////////////////////////
23 // Set of classes defining the ALICE RAW event format. The AliRawEvent //
24 // class defines a RAW event. It consists of an AliEventHeader object //
25 // an AliEquipmentHeader object, an AliRawData object and an array of //
26 // sub-events, themselves also being AliRawEvents. The number of //
27 // sub-events depends on the number of DATE LDC's. //
28 // The AliRawEvent objects are written to a ROOT file using different //
29 // technologies, i.e. to local disk via AliRawDB or via rfiod using //
30 // AliRawRFIODB or via rootd using AliRawRootdDB or to CASTOR via //
31 // rootd using AliRawCastorDB (and for performance testing there is //
32 // also AliRawNullDB). //
33 // The AliRunDB class provides the interface to the run and file //
34 // catalogues (AliEn or plain MySQL). //
35 // The AliStats class provides statics information that is added as //
36 // a single keyed object to each raw file. //
37 // The AliTagDB provides an interface to a TAG database. //
38 // The AliMDC class is usid by the "alimdc" stand-alone program //
39 // that reads data directly from DATE. //
41 //////////////////////////////////////////////////////////////////////////
43 #include "AliRawEquipmentHeader.h"
44 #include "AliRawData.h"
46 #include "AliRawEquipment.h"
49 ClassImp(AliRawEquipment)
52 //______________________________________________________________________________
53 AliRawEquipment::AliRawEquipment()
55 // Create ALICE equipment object.
61 //______________________________________________________________________________
62 AliRawEquipment::AliRawEquipment(const AliRawEquipment& rawEquipment): TObject(rawEquipment)
66 Fatal("AliRawEquipment", "copy constructor not implemented");
69 //______________________________________________________________________________
70 AliRawEquipment& AliRawEquipment::operator = (const AliRawEquipment& /*rawEquipment*/)
72 // assignment operator
74 Fatal("operator =", "assignment operator not implemented");
78 //______________________________________________________________________________
79 AliRawEquipmentHeader *AliRawEquipment::GetEquipmentHeader()
81 // Get equipment header part of AliRawEquipment.
84 fEqpHdr = new AliRawEquipmentHeader;
89 //______________________________________________________________________________
90 AliRawData *AliRawEquipment::GetRawData()
92 // Get raw data part of AliRawEquipment.
95 fRawData = new AliRawData;
100 //______________________________________________________________________________
101 void AliRawEquipment::Reset()
103 // Reset the equipment in case it needs to be re-used (avoiding costly
104 // new/delete cycle). We reset the size marker for the AliRawData
107 GetRawData()->SetSize(0);
110 //______________________________________________________________________________
111 AliRawEquipment::~AliRawEquipment()
113 // Clean up event object. Delete also, possible, private raw data.