]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/AliHLTTPCDigitReader.cxx
TPC cluster finder speeded up, can process unsorted data (Kenneth); not yet enabled...
[u/mrichter/AliRoot.git] / HLT / TPCLib / AliHLTTPCDigitReader.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  *                  Timm Steinbeck <timm@kip.uni-heidelberg.de>           *
9  *                  Jochen Thaeder <thaeder@kip.uni-heidelberg.de>        *
10  *                  for The ALICE HLT Project.                            *
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
21 /** @file   AliHLTTPCDigitReader.cxx
22     @author Timm Steinbeck, Jochen Thaeder, Matthias Richter, Kenneth Aamodt
23     @date   
24     @brief  An abstract reader class for TPC data.
25 */
26
27 #if __GNUC__>= 3
28 using namespace std;
29 #endif
30
31 #include "AliHLTTPCDigitReader.h"
32 #include "AliHLTTPCTransform.h"
33 #include "AliHLTStdIncludes.h"
34
35 ClassImp(AliHLTTPCDigitReader)
36
37 AliHLTTPCDigitReader::AliHLTTPCDigitReader(){
38 }
39
40 AliHLTTPCDigitReader::~AliHLTTPCDigitReader(){
41 }
42
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);
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
59 void AliHLTTPCDigitReader::SetOldRCUFormat(Bool_t /*oldrcuformat*/)
60 {
61 }
62 void AliHLTTPCDigitReader::SetUnsorted(Bool_t /*unsorted*/){
63 }