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()
33 AliHLTOUTHomerCollection(),
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(AliRawReader* pRawreader, int event, AliHLTEsdManager* pEsdManager)
45 AliHLTOUTHomerCollection(event, pEsdManager),
46 fpRawreader(pRawreader)
48 // see header file for class documentation
50 // refer to README to build package
52 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
55 AliHLTOUTRawReader::~AliHLTOUTRawReader()
57 // see header file for class documentation
60 Bool_t AliHLTOUTRawReader::ReadNextData(UChar_t*& data)
62 // see header file for class documentation
63 if (!fpRawreader) return kFALSE;
64 return fpRawreader->ReadNextData(data);
67 int AliHLTOUTRawReader::Reset()
69 // see header file for class documentation
70 if (fpRawreader) return fpRawreader->Reset();
74 int AliHLTOUTRawReader::GetDataSize()
76 // see header file for class documentation
77 if (fpRawreader) return fpRawreader->GetDataSize();
81 const AliRawDataHeader* AliHLTOUTRawReader::GetDataHeader()
83 // see header file for class documentation
84 if (fpRawreader) return fpRawreader->GetDataHeader();
88 void AliHLTOUTRawReader::SelectEquipment(int equipmentType, int minEquipmentId, int maxEquipmentId)
90 // see header file for class documentation
91 if (fpRawreader) fpRawreader->SelectEquipment(equipmentType, minEquipmentId, maxEquipmentId);
94 int AliHLTOUTRawReader::GetEquipmentId()
96 // see header file for class documentation
97 if (fpRawreader) return fpRawreader->GetEquipmentId();