1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpSectorReader.h,v 1.3 2005/08/26 15:43:36 ivana Exp $
8 /// \class AliMpSectorReader
9 /// \brief Class that takes care of reading the sector data.
11 /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
13 #ifndef ALI_MP_SECTOR_READER_H
14 #define ALI_MP_SECTOR_READER_H
21 #include "AliMpStationType.h"
22 #include "AliMpPlaneType.h"
23 #include "AliMpXDirection.h"
24 #include "AliMpIntPair.h"
30 class AliMpVRowSegmentSpecial;
31 class AliMpMotifReader;
33 class AliMpMotifSpecial;
36 class AliMpSectorReader : public TObject
39 AliMpSectorReader(AliMpStationType station, AliMpPlaneType plane);
41 virtual ~AliMpSectorReader();
44 AliMpSector* BuildSector();
47 void SetVerboseLevel(Int_t verboseLevel);
50 AliMpSectorReader(const AliMpSectorReader& right);
51 AliMpSectorReader& operator = (const AliMpSectorReader& right);
55 void ReadSectorData(ifstream& in);
56 void ReadZoneData(ifstream& in);
57 void ReadSubZoneData(ifstream& in, AliMpZone* zone);
58 void ReadRowSegmentsData(ifstream& in,
59 AliMpZone* zone, AliMpSubZone* subZone);
60 AliMpVMotif* ReadMotifData(ifstream& in, AliMpZone* zone);
61 void ReadSectorSpecialData(ifstream& in, AliMpXDirection direction);
62 void ReadMotifsSpecialData(ifstream& in);
63 void ReadRowSpecialData(ifstream& in, AliMpXDirection direction);
64 void ReadRowSegmentSpecialData(ifstream& in,
65 AliMpVRowSegmentSpecial* segment,
66 AliMpXDirection direction);
68 // static data members
69 static const TString fgkSectorKeyword; // sector keyword
70 static const TString fgkZoneKeyword; // zone keyword
71 static const TString fgkSubZoneKeyword; // subzone keyword
72 static const TString fgkRowKeyword; // row keyword
73 static const TString fgkEofKeyword; // eof keyword
74 static const TString fgkSectorSpecialKeyword; // sector special keyword
75 static const TString fgkMotifKeyword; // motif keyword
76 static const TString fgkRowSpecialKeyword; // row special keyword
77 static const TString fgkPadRowsKeyword; // pad rows keyword
78 static const TString fgkPadRowSegmentKeyword; // pad row segment keyword
81 AliMpStationType fStationType; // station type
82 AliMpPlaneType fPlaneType; // plane type
83 AliMpSector* fSector; // sector
84 AliMpMotifReader* fMotifReader; // motif reader
85 Int_t fVerboseLevel;// verbose level
87 ClassDef(AliMpSectorReader,1) // Data reader
90 #endif //ALI_MP_READER_H