]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/TPCLib/AliHLTTPCDigitReader.cxx
documentation
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDigitReader.cxx
CommitLineData
a38a7850 1// $Id$
2
3/**************************************************************************
9be2600f 4 * This file is property of and copyright by the ALICE HLT Project *
5 * ALICE Experiment at CERN, All rights reserved. *
a38a7850 6 * *
9be2600f 7 * Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *
8 * Timm Steinbeck <timm@kip.uni-heidelberg.de> *
9 * Jochen Thaeder <thaeder@kip.uni-heidelberg.de> *
10 * for The ALICE HLT Project. *
a38a7850 11 * *
12 * Permission to use, copy, modify and distribute this software and its *
13 * documentation strictly for non-commercial purposes is hereby granted *
14 * without fee, provided that the above copyright notice appears in all *
15 * copies and that both the copyright notice and this permission notice *
16 * appear in the supporting documentation. The authors make no claims *
17 * about the suitability of this software for any purpose. It is *
18 * provided "as is" without express or implied warranty. *
19 **************************************************************************/
20
84645eb0 21/** @file AliHLTTPCDigitReader.cxx
27f5f8ed 22 @author Timm Steinbeck, Jochen Thaeder, Matthias Richter, Kenneth Aamodt
84645eb0 23 @date
24 @brief An abstract reader class for TPC data.
25*/
a38a7850 26
db16520a 27#if __GNUC__>= 3
a38a7850 28using namespace std;
29#endif
30
31#include "AliHLTTPCDigitReader.h"
84645eb0 32#include "AliHLTTPCTransform.h"
33#include "AliHLTStdIncludes.h"
a38a7850 34
35ClassImp(AliHLTTPCDigitReader)
36
37AliHLTTPCDigitReader::AliHLTTPCDigitReader(){
38}
39
40AliHLTTPCDigitReader::~AliHLTTPCDigitReader(){
41}
42
84645eb0 43int AliHLTTPCDigitReader::InitBlock(void* ptr,unsigned long size,Int_t firstrow,Int_t lastrow, Int_t patch, Int_t slice){
44 if (patch<0 || patch>=AliHLTTPCTransform::GetNumberOfPatches()) {
45 HLTError("invalid readout partition number %d", patch);
46 return -EINVAL;
47 }
48 if (firstrow!=AliHLTTPCTransform::GetFirstRow(patch)) {
49 HLTWarning("The firstrow parameter does not match the layout of the readout partition %d "
50 "(firstrow=%d). Parameter is ignored", patch, AliHLTTPCTransform::GetFirstRow(patch));
51 }
52 if (lastrow!=AliHLTTPCTransform::GetLastRow(patch)) {
53 HLTWarning("The lastrow parameter does not match the layout of the readout partition %d "
54 "(lastrow=%d). Parameter is ignored", patch, AliHLTTPCTransform::GetLastRow(patch));
55 }
56 return InitBlock(ptr, size, patch, slice);
57}
58
27f5f8ed 59void AliHLTTPCDigitReader::SetOldRCUFormat(Bool_t oldrcuformat){
60 if (oldrcuformat==NULL) {
61 // this is currently just to get rid of the warning "unused parameter"
62 }
63}