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 AliHLTOUTRawReader.cxx
20 @author Matthias Richter
22 @brief HLTOUT data wrapper for AliRawReader.
25 #include "AliHLTOUTRawReader.h"
26 #include "AliRawReader.h"
28 /** ROOT macro for the implementation of ROOT specific class methods */
29 ClassImp(AliHLTOUTRawReader)
31 AliHLTOUTRawReader::AliHLTOUTRawReader(AliRawReader* pRawreader, int event, AliHLTEsdManager* pEsdManager)
33 AliHLTOUTHomerCollection(event, pEsdManager),
34 fpRawreader(pRawreader)
36 // see header file for class documentation
38 // refer to README to build package
40 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
43 AliHLTOUTRawReader::~AliHLTOUTRawReader()
45 // see header file for class documentation
48 Bool_t AliHLTOUTRawReader::ReadNextData(UChar_t*& data)
50 // see header file for class documentation
51 if (!fpRawreader) return kFALSE;
52 return fpRawreader->ReadNextData(data);
55 int AliHLTOUTRawReader::Reset()
57 // see header file for class documentation
58 if (fpRawreader) return fpRawreader->Reset();
62 int AliHLTOUTRawReader::GetDataSize()
64 // see header file for class documentation
65 if (fpRawreader) return fpRawreader->GetDataSize();
69 const AliRawDataHeader* AliHLTOUTRawReader::GetDataHeader()
71 // see header file for class documentation
72 if (fpRawreader) return fpRawreader->GetDataHeader();
76 void AliHLTOUTRawReader::SelectEquipment(int equipmentType, int minEquipmentId, int maxEquipmentId)
78 // see header file for class documentation
79 if (fpRawreader) fpRawreader->SelectEquipment(equipmentType, minEquipmentId, maxEquipmentId);
82 int AliHLTOUTRawReader::GetEquipmentId()
84 // see header file for class documentation
85 if (fpRawreader) return fpRawreader->GetEquipmentId();