3 //**************************************************************************
4 //* This file is property of and copyright by the *
5 //* ALICE Experiment at CERN, All rights reserved. *
7 //* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
9 //* Permission to use, copy, modify and distribute this software and its *
10 //* documentation strictly for non-commercial purposes is hereby granted *
11 //* without fee, provided that the above copyright notice appears in all *
12 //* copies and that both the copyright notice and this permission notice *
13 //* appear in the supporting documentation. The authors make no claims *
14 //* about the suitability of this software for any purpose. It is *
15 //* provided "as is" without express or implied warranty. *
16 //**************************************************************************
18 /// @file AliHLTOUTRawReader.cxx
19 /// @author Matthias Richter
21 /// @brief HLTOUT data wrapper for AliRawReader.
24 #include "AliHLTOUTRawReader.h"
25 #include "AliRawReader.h"
27 /** ROOT macro for the implementation of ROOT specific class methods */
28 ClassImp(AliHLTOUTRawReader)
30 AliHLTOUTRawReader::AliHLTOUTRawReader()
32 AliHLTOUTHomerCollection(),
37 // HLTOUT data wrapper for AliRawReader
39 // see header file for class documentation
42 AliHLTOUTRawReader::AliHLTOUTRawReader(AliRawReader* pRawreader, int event, AliHLTEsdManager* pEsdManager)
44 AliHLTOUTHomerCollection(event, pEsdManager),
45 fpRawreader(pRawreader)
47 // see header file for class documentation
49 // refer to README to build package
51 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
54 AliHLTOUTRawReader::~AliHLTOUTRawReader()
59 Bool_t AliHLTOUTRawReader::ReadNextData(UChar_t*& data)
61 // overloaded from AliHLTOUTHomerCollection: switch to next DDL
62 if (!fpRawreader) return kFALSE;
63 return fpRawreader->ReadNextData(data);
66 int AliHLTOUTRawReader::Reset()
68 // overloaded from AliHLTOUTHomerCollection: reset DDL position
69 if (fpRawreader) return fpRawreader->Reset();
73 int AliHLTOUTRawReader::GetDataSize()
75 // overloaded from AliHLTOUTHomerCollection: get size of current DDL
76 if (fpRawreader) return fpRawreader->GetDataSize();
80 AliHLTCDHWrapper AliHLTOUTRawReader::GetDataHeader()
82 // overloaded from AliHLTOUTHomerCollection: get data header of current DDL
84 if(fpRawreader->GetDataHeader())
85 return fpRawreader->GetDataHeader();
86 if(fpRawreader->GetDataHeaderV3())
87 return fpRawreader->GetDataHeaderV3();
92 void AliHLTOUTRawReader::SelectEquipment(int equipmentType, int minEquipmentId, int maxEquipmentId)
94 // overloaded from AliHLTOUTHomerCollection: select equipment range
95 if (fpRawreader) fpRawreader->SelectEquipment(equipmentType, minEquipmentId, maxEquipmentId);
98 int AliHLTOUTRawReader::GetEquipmentId()
100 // overloaded from AliHLTOUTHomerCollection: get id of current DDL
101 if (fpRawreader) return fpRawreader->GetEquipmentId();