]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/rec/AliHLTOUTRawReader.cxx
adding availability check for a list of OCDB objects, code cleanup and updated docume...
[u/mrichter/AliRoot.git] / HLT / rec / AliHLTOUTRawReader.cxx
1 // $Id$
2
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 //**************************************************************************
18
19 /** @file   AliHLTOUTRawReader.cxx
20     @author Matthias Richter
21     @date   
22     @brief  HLTOUT data wrapper for AliRawReader.                         
23 */
24
25 #include "AliHLTOUTRawReader.h"
26 #include "AliRawReader.h"
27
28 /** ROOT macro for the implementation of ROOT specific class methods */
29 ClassImp(AliHLTOUTRawReader)
30
31 AliHLTOUTRawReader::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
43 AliHLTOUTRawReader::AliHLTOUTRawReader(AliRawReader* pRawreader, int event, AliHLTEsdManager* pEsdManager)
44   :
45   AliHLTOUTHomerCollection(event, pEsdManager),
46   fpRawreader(pRawreader)
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
55 AliHLTOUTRawReader::~AliHLTOUTRawReader()
56 {
57   // see header file for class documentation
58 }
59
60 Bool_t AliHLTOUTRawReader::ReadNextData(UChar_t*& data)
61 {
62   // see header file for class documentation
63   if (!fpRawreader) return kFALSE;
64   return fpRawreader->ReadNextData(data);
65 }
66
67 int AliHLTOUTRawReader::Reset()
68 {
69   // see header file for class documentation
70   if (fpRawreader) return fpRawreader->Reset();
71   return 0;
72 }
73
74 int AliHLTOUTRawReader::GetDataSize()
75 {
76   // see header file for class documentation
77   if (fpRawreader) return fpRawreader->GetDataSize();
78   return 0;
79 }
80
81 const AliRawDataHeader* AliHLTOUTRawReader::GetDataHeader()
82 {
83   // see header file for class documentation
84   if (fpRawreader) return fpRawreader->GetDataHeader();
85   return NULL;
86 }
87
88 void 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 }
93
94 int AliHLTOUTRawReader::GetEquipmentId()
95 {
96   // see header file for class documentation
97   if (fpRawreader) return fpRawreader->GetEquipmentId();
98   return -1;
99 }