]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/rec/AliHLTOUTRawReader.cxx
bugfix: instead of unloading from the cache, retrieve the latest version and subversi...
[u/mrichter/AliRoot.git] / HLT / rec / AliHLTOUTRawReader.cxx
CommitLineData
176d8684 1// $Id$
2
c5123824 3//**************************************************************************
4//* This file is property of and copyright by the ALICE HLT Project *
5//* ALICE Experiment at CERN, All rights reserved. *
6//* *
7//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8//* for The ALICE HLT Project. *
9//* *
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//**************************************************************************
176d8684 18
19/** @file AliHLTOUTRawReader.cxx
20 @author Matthias Richter
21 @date
c5123824 22 @brief HLTOUT data wrapper for AliRawReader.
23*/
176d8684 24
25#include "AliHLTOUTRawReader.h"
176d8684 26#include "AliRawReader.h"
176d8684 27
28/** ROOT macro for the implementation of ROOT specific class methods */
29ClassImp(AliHLTOUTRawReader)
30
c1292031 31AliHLTOUTRawReader::AliHLTOUTRawReader()
32 :
33 AliHLTOUTHomerCollection(),
34 fpRawreader(NULL)
35{
36 // see header file for class documentation
37 // or
38 // refer to README to build package
39 // or
40 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
41}
42
c5123824 43AliHLTOUTRawReader::AliHLTOUTRawReader(AliRawReader* pRawreader, int event, AliHLTEsdManager* pEsdManager)
176d8684 44 :
c5123824 45 AliHLTOUTHomerCollection(event, pEsdManager),
46 fpRawreader(pRawreader)
176d8684 47{
48 // see header file for class documentation
49 // or
50 // refer to README to build package
51 // or
52 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
53}
54
176d8684 55AliHLTOUTRawReader::~AliHLTOUTRawReader()
56{
57 // see header file for class documentation
176d8684 58}
59
c5123824 60Bool_t AliHLTOUTRawReader::ReadNextData(UChar_t*& data)
176d8684 61{
62 // see header file for class documentation
c5123824 63 if (!fpRawreader) return kFALSE;
64 return fpRawreader->ReadNextData(data);
176d8684 65}
66
c5123824 67int AliHLTOUTRawReader::Reset()
176d8684 68{
69 // see header file for class documentation
c5123824 70 if (fpRawreader) return fpRawreader->Reset();
71 return 0;
176d8684 72}
44dc7683 73
c5123824 74int AliHLTOUTRawReader::GetDataSize()
44dc7683 75{
76 // see header file for class documentation
c5123824 77 if (fpRawreader) return fpRawreader->GetDataSize();
78 return 0;
79}
44dc7683 80
c5123824 81const AliRawDataHeader* AliHLTOUTRawReader::GetDataHeader()
82{
83 // see header file for class documentation
84 if (fpRawreader) return fpRawreader->GetDataHeader();
85 return NULL;
86}
44dc7683 87
c5123824 88void AliHLTOUTRawReader::SelectEquipment(int equipmentType, int minEquipmentId, int maxEquipmentId)
89{
90 // see header file for class documentation
91 if (fpRawreader) fpRawreader->SelectEquipment(equipmentType, minEquipmentId, maxEquipmentId);
92}
44dc7683 93
c5123824 94int AliHLTOUTRawReader::GetEquipmentId()
95{
96 // see header file for class documentation
97 if (fpRawreader) return fpRawreader->GetEquipmentId();
98 return -1;
44dc7683 99}