]>
Commit | Line | Data |
---|---|---|
197883c2 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
5f91c9e8 | 4 | // $Id$ |
13985652 | 5 | // $MpId: AliMpSectorReader.h,v 1.7 2006/05/24 13:58:21 ivana Exp $ |
197883c2 | 6 | |
7 | /// \ingroup sector | |
8 | /// \class AliMpSectorReader | |
9 | /// \brief Class that takes care of reading the sector data. | |
10 | /// | |
13985652 | 11 | /// \author David Guez, Ivana Hrivnacova; IPN Orsay |
5f91c9e8 | 12 | |
197883c2 | 13 | #ifndef ALI_MP_SECTOR_READER_H |
14 | #define ALI_MP_SECTOR_READER_H | |
5f91c9e8 | 15 | |
5f91c9e8 | 16 | #include <TObject.h> |
5f91c9e8 | 17 | |
4139354b | 18 | #include "AliMpStationType.h" |
5f91c9e8 | 19 | #include "AliMpPlaneType.h" |
4139354b | 20 | #include "AliMpXDirection.h" |
f79c58a5 | 21 | #include "AliMpIntPair.h" |
5f91c9e8 | 22 | |
2a7ea2e6 | 23 | #include <TString.h> |
24 | ||
25 | #include <fstream> | |
26 | ||
5f91c9e8 | 27 | class AliMpSector; |
28 | class AliMpZone; | |
29 | class AliMpSubZone; | |
30 | class AliMpRow; | |
4139354b | 31 | class AliMpVRowSegmentSpecial; |
197883c2 | 32 | class AliMpMotifReader; |
5f91c9e8 | 33 | class AliMpVMotif; |
34 | class AliMpMotifSpecial; | |
35 | class AliMpMotifType; | |
36 | ||
197883c2 | 37 | class AliMpSectorReader : public TObject |
5f91c9e8 | 38 | { |
39 | public: | |
cddd101e | 40 | AliMpSectorReader(AliMp::StationType station, AliMp::PlaneType plane); |
197883c2 | 41 | AliMpSectorReader(); |
42 | virtual ~AliMpSectorReader(); | |
5f91c9e8 | 43 | |
44 | // methods | |
197883c2 | 45 | AliMpSector* BuildSector(); |
5f91c9e8 | 46 | |
13e7956b | 47 | private: |
f5671fc3 | 48 | /// Not implemented |
197883c2 | 49 | AliMpSectorReader(const AliMpSectorReader& right); |
f5671fc3 | 50 | /// Not implemented |
51 | AliMpSectorReader& operator = (const AliMpSectorReader& right); | |
fb1bf5c0 | 52 | |
5f91c9e8 | 53 | // methods |
54 | void ReadSectorData(ifstream& in); | |
55 | void ReadZoneData(ifstream& in); | |
56 | void ReadSubZoneData(ifstream& in, AliMpZone* zone); | |
57 | void ReadRowSegmentsData(ifstream& in, | |
58 | AliMpZone* zone, AliMpSubZone* subZone); | |
59 | AliMpVMotif* ReadMotifData(ifstream& in, AliMpZone* zone); | |
cddd101e | 60 | void ReadSectorSpecialData(ifstream& in, AliMp::XDirection direction); |
5f91c9e8 | 61 | void ReadMotifsSpecialData(ifstream& in); |
cddd101e | 62 | void ReadRowSpecialData(ifstream& in, AliMp::XDirection direction); |
5f91c9e8 | 63 | void ReadRowSegmentSpecialData(ifstream& in, |
4139354b | 64 | AliMpVRowSegmentSpecial* segment, |
cddd101e | 65 | AliMp::XDirection direction); |
5f91c9e8 | 66 | |
67 | // static data members | |
829425a5 | 68 | static const TString fgkSectorKeyword; ///< sector keyword |
69 | static const TString fgkZoneKeyword; ///< zone keyword | |
70 | static const TString fgkSubZoneKeyword; ///< subzone keyword | |
71 | static const TString fgkRowKeyword; ///< row keyword | |
72 | static const TString fgkEofKeyword; ///< eof keyword | |
73 | static const TString fgkSectorSpecialKeyword; ///< sector special keyword | |
74 | static const TString fgkMotifKeyword; ///< motif keyword | |
75 | static const TString fgkRowSpecialKeyword; ///< row special keyword | |
76 | static const TString fgkPadRowsKeyword; ///< pad rows keyword | |
77 | static const TString fgkPadRowSegmentKeyword; ///< pad row segment keyword | |
5f91c9e8 | 78 | |
4139354b | 79 | // data members |
cddd101e | 80 | AliMp::StationType fStationType; ///< station type |
81 | AliMp::PlaneType fPlaneType; ///< plane type | |
82 | AliMpSector* fSector; ///< sector | |
83 | AliMpMotifReader* fMotifReader; ///< motif reader | |
5f91c9e8 | 84 | |
197883c2 | 85 | ClassDef(AliMpSectorReader,1) // Data reader |
5f91c9e8 | 86 | }; |
87 | ||
88 | #endif //ALI_MP_READER_H |