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 * Timm Steinbeck <timm@kip.uni-heidelberg.de> *
9 * Jochen Thaeder <thaeder@kip.uni-heidelberg.de> *
10 * for The ALICE HLT Project. *
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 **************************************************************************/
21 /** @file AliHLTTPCDigitReader.cxx
22 @author Timm Steinbeck, Jochen Thaeder, Matthias Richter, Kenneth Aamodt
24 @brief An abstract reader class for TPC data.
31 #include "AliHLTTPCDigitReader.h"
32 #include "AliHLTTPCTransform.h"
33 #include "AliHLTStdIncludes.h"
35 ClassImp(AliHLTTPCDigitReader)
37 AliHLTTPCDigitReader::AliHLTTPCDigitReader(){
40 AliHLTTPCDigitReader::~AliHLTTPCDigitReader(){
43 int 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);
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));
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));
56 return InitBlock(ptr, size, patch, slice);
59 void AliHLTTPCDigitReader::SetOldRCUFormat(Bool_t oldrcuformat){
60 if (oldrcuformat==NULL) {
61 // this is currently just to get rid of the warning "unused parameter"