StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AliHLTTPCCARow.cxx
1 // @(#) $Id: AliHLTTPCCARow.cxx,v 1.1 2016/02/05 23:27:28 fisyak Exp $
2 //***************************************************************************
3 // This file is property of and copyright by the ALICE HLT Project *
4 // ALICE Experiment at CERN, All rights reserved. *
5 // *
6 // Primary Authors: Sergey Gorbunov <sergey.gorbunov@kip.uni-heidelberg.de> *
7 // Ivan Kisel <kisel@kip.uni-heidelberg.de> *
8 // for The ALICE HLT Project. *
9 // *
10 // Developed by: Igor Kulakov <I.Kulakov@gsi.de> *
11 // Maksym Zyzak <M.Zyzak@gsi.de> *
12 // *
13 // Permission to use, copy, modify and distribute this software and its *
14 // documentation strictly for non-commercial purposes is hereby granted *
15 // without fee, provided that the above copyright notice appears in all *
16 // copies and that both the copyright notice and this permission notice *
17 // appear in the supporting documentation. The authors make no claims *
18 // about the suitability of this software for any purpose. It is *
19 // provided "as is" without express or implied warranty. *
20 //***************************************************************************
21 
22 #include "AliHLTTPCCARow.h"
23 
24 
25 //X AliHLTTPCCARow::AliHLTTPCCARow()
26 //X :
27 //X fFirstHit(0), fNHits(0), fX(0), fMaxY(0), fGrid(),
28 //X fHy0(0),fHz0(0), fHstepY(0),fHstepZ(0), fHstepYi(0), fHstepZi(0),
29 //X fFullSize(0), fFullOffset(0), fFullGridOffset(0),fFullLinkOffset(0)
30 //X {
31 //X // dummy constructor
32 //X }
33 
34 #include "BinaryStoreHelper.h"
35 
36 void AliHLTTPCCARow::StoreToFile( FILE *f, const char *startPointer ) const
37 {
38  BinaryStoreWrite( fGrid, f );
39  BinaryStoreWrite( fNHits, f );
40  //BinaryStoreWrite( fX, f );
41  BinaryStoreWrite( fMaxY, f );
42  BinaryStoreWrite( fHitNumberOffset, f );
43 
44  BinaryStoreWrite( fLinkUpData, startPointer, f );
45  BinaryStoreWrite( fLinkDownData, startPointer, f );
46 
47  BinaryStoreWrite( fHitDataY, startPointer, f );
48  BinaryStoreWrite( fHitDataZ, startPointer, f );
49 
50  BinaryStoreWrite( fClusterDataIndex, startPointer, f );
51 
52  BinaryStoreWrite( fHitWeights, startPointer, f );
53 
54  BinaryStoreWrite( fFirstHitInBin, startPointer, f );
55 }
56 
57 void AliHLTTPCCARow::RestoreFromFile( FILE *f, char *startPtr )
58 {
59  BinaryStoreRead( fGrid, f );
60  BinaryStoreRead( fNHits, f );
61  //BinaryStoreRead( fX, f );
62  BinaryStoreRead( fMaxY, f );
63  BinaryStoreRead( fHitNumberOffset, f );
64 
65  BinaryStoreRead( fLinkUpData, startPtr, f );
66  BinaryStoreRead( fLinkDownData, startPtr, f );
67 
68  BinaryStoreRead( fHitDataY, startPtr, f );
69  BinaryStoreRead( fHitDataZ, startPtr, f );
70 
71  BinaryStoreRead( fClusterDataIndex, startPtr, f );
72 
73  BinaryStoreRead( fHitWeights, startPtr, f );
74 
75  BinaryStoreRead( fFirstHitInBin, startPtr, f );
76 }