1 // $Id: AliRawReaderHLT.cxx,v 1.3 2007/11/15 18:12:44 szostak Exp $
3 /**************************************************************************
4 * This file is property of and copyright by the ALICE HLT Project *
5 * ALICE Experiment at CERN, All rights reserved. *
7 * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8 * for The ALICE HLT Project. *
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 /** @file AliRawReaderHLT.cxx
20 @author Matthias Richter
22 @brief AliRawReader implementation which replaces original input of
23 detectors with the appropriate HLT output. */
25 // see header file for class documentation
27 // refer to README to build package
29 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
31 #include "AliRawReaderHLT.h"
33 /** ROOT macro for the implementation of ROOT specific class methods */
34 ClassImp(AliRawReaderHLT)
36 AliRawReaderHLT::AliRawReaderHLT(AliRawReader* pRawreader, const char* options)
39 fpParentReader(pRawreader),
42 // see header file for class documentation
44 // refer to README to build package
46 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
50 AliRawReaderHLT::~AliRawReaderHLT()
52 // see header file for class documentation
55 UInt_t AliRawReaderHLT::GetType() const
57 // see header file for class documentation
58 return fpParentReader->GetType();
61 UInt_t AliRawReaderHLT::GetRunNumber() const
63 // see header file for class documentation
64 return fpParentReader->GetRunNumber();
67 const UInt_t* AliRawReaderHLT::GetEventId() const
69 // see header file for class documentation
70 return fpParentReader->GetEventId();
73 const UInt_t* AliRawReaderHLT::GetTriggerPattern() const
75 // see header file for class documentation
76 return fpParentReader->GetTriggerPattern();
79 const UInt_t* AliRawReaderHLT::GetDetectorPattern() const
81 // see header file for class documentation
82 return fpParentReader->GetDetectorPattern();
85 const UInt_t* AliRawReaderHLT::GetAttributes() const
87 // see header file for class documentation
88 return fpParentReader->GetAttributes();
91 const UInt_t* AliRawReaderHLT::GetSubEventAttributes() const
93 // see header file for class documentation
94 return fpParentReader->GetSubEventAttributes();
97 UInt_t AliRawReaderHLT::GetLDCId() const
99 // see header file for class documentation
100 return fpParentReader->GetLDCId();
103 UInt_t AliRawReaderHLT::GetGDCId() const
105 // see header file for class documentation
106 return fpParentReader->GetGDCId();
109 UInt_t AliRawReaderHLT::GetTimestamp() const
111 // see header file for class documentation
112 return fpParentReader->GetTimestamp();
115 const UInt_t* AliRawReaderHLT::GetEquipmentAttributes() const
117 // see header file for class documentation
118 return fpParentReader->GetEquipmentAttributes();
121 Int_t AliRawReaderHLT::GetEquipmentElementSize() const
123 // see header file for class documentation
124 return fpParentReader->GetEquipmentElementSize();
127 Int_t AliRawReaderHLT::GetEquipmentHeaderSize() const
129 // see header file for class documentation
130 return fpParentReader->GetEquipmentHeaderSize();
133 Int_t AliRawReaderHLT::GetEquipmentSize() const
135 // see header file for class documentation
136 return fpParentReader->GetEquipmentSize();
139 Int_t AliRawReaderHLT::GetEquipmentType() const
141 // see header file for class documentation
142 return fpParentReader->GetEquipmentType();
145 Int_t AliRawReaderHLT::GetEquipmentId() const
147 // see header file for class documentation
148 return fpParentReader->GetEquipmentId();
151 Bool_t AliRawReaderHLT::ReadHeader()
153 // see header file for class documentation
154 return fpParentReader->ReadHeader();
157 Bool_t AliRawReaderHLT::ReadNextData(UChar_t*& data)
159 // see header file for class documentation
160 return fpParentReader->ReadNextData(data);
163 Bool_t AliRawReaderHLT::ReadNextInt(UInt_t& data)
165 // see header file for class documentation
166 return fpParentReader->ReadNextInt(data);
169 Bool_t AliRawReaderHLT::ReadNextShort(UShort_t& data)
171 // see header file for class documentation
172 return fpParentReader->ReadNextShort(data);
176 Bool_t AliRawReaderHLT::ReadNextChar(UChar_t& data)
178 // see header file for class documentation
179 return fpParentReader->ReadNextChar(data);
182 Bool_t AliRawReaderHLT::ReadNext(UChar_t* data, Int_t size)
184 // see header file for class documentation
185 return fpParentReader->ReadNext(data, size);
188 Bool_t AliRawReaderHLT::Reset()
190 // see header file for class documentation
191 return fpParentReader->Reset();
194 Bool_t AliRawReaderHLT::NextEvent()
196 // see header file for class documentation
197 fpParentReader-NextEvent();
200 Bool_t AliRawReaderHLT::RewindEvents()
202 // see header file for class documentation
203 return fpParentReader->RewindEvents();
206 AliRawReader* AliRawReaderHLTCreateInstance(AliRawReader* pParentReader, const char* options)
208 // see header file for class documentation
209 return new AliRawReaderHLT(pParentReader, options);