6 // Class that takes care of reading the sector data.
8 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
10 #ifndef ALI_MP_READER_H
11 #define ALI_MP_READER_H
19 #include "AliMpPlaneType.h"
25 class AliMpRowSegmentSpecial;
27 class AliMpMotifSpecial;
30 class AliMpReader : public TObject
33 AliMpReader(AliMpPlaneType plane);
35 virtual ~AliMpReader();
38 AliMpSector* BuildSector();
39 AliMpMotifType* BuildMotifType(TString motifTypeId);
40 AliMpMotifSpecial* BuildMotifSpecial(TString motifID,
41 AliMpMotifType* motifType);
44 void SetVerboseLevel(Int_t verboseLevel);
48 void ReadSectorData(ifstream& in);
49 void ReadZoneData(ifstream& in);
50 void ReadSubZoneData(ifstream& in, AliMpZone* zone);
51 void ReadRowSegmentsData(ifstream& in,
52 AliMpZone* zone, AliMpSubZone* subZone);
53 AliMpVMotif* ReadMotifData(ifstream& in, AliMpZone* zone);
54 void ReadSectorSpecialData(ifstream& in);
55 void ReadMotifsSpecialData(ifstream& in);
56 void ReadRowSpecialData(ifstream& in);
57 void ReadRowSegmentSpecialData(ifstream& in,
58 AliMpRowSegmentSpecial* segment);
60 // static data members
61 static const TString fgkSectorKeyword;
62 static const TString fgkZoneKeyword;
63 static const TString fgkSubZoneKeyword;
64 static const TString fgkRowKeyword;
65 static const TString fgkEofKeyword;
66 static const TString fgkSectorSpecialKeyword;
67 static const TString fgkMotifKeyword;
68 static const TString fgkRowSpecialKeyword;
69 static const TString fgkPadRowsKeyword;
70 static const TString fgkPadRowSegmentKeyword;
73 AliMpPlaneType fPlaneType; // plane type
74 AliMpSector* fSector; // sector
75 Int_t fVerboseLevel;// verbose level
77 ClassDef(AliMpReader,1) // Data reader
80 #endif //ALI_MP_READER_H