]>
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 | |
4e51cfd2 | 18 | #include "AliMpStation12Type.h" |
5f91c9e8 | 19 | #include "AliMpPlaneType.h" |
4139354b | 20 | #include "AliMpXDirection.h" |
5f91c9e8 | 21 | |
2a7ea2e6 | 22 | #include <TString.h> |
23 | ||
24 | #include <fstream> | |
25 | ||
5f91c9e8 | 26 | class AliMpSector; |
27 | class AliMpZone; | |
28 | class AliMpSubZone; | |
29 | class AliMpRow; | |
4139354b | 30 | class AliMpVRowSegmentSpecial; |
197883c2 | 31 | class AliMpMotifReader; |
5f91c9e8 | 32 | class AliMpVMotif; |
33 | class AliMpMotifSpecial; | |
34 | class AliMpMotifType; | |
ab167304 | 35 | class AliMpDataStreams; |
5f91c9e8 | 36 | |
197883c2 | 37 | class AliMpSectorReader : public TObject |
5f91c9e8 | 38 | { |
39 | public: | |
ab167304 | 40 | AliMpSectorReader(const AliMpDataStreams& dataStreams, |
4e51cfd2 | 41 | AliMq::Station12Type station, AliMp::PlaneType plane); |
197883c2 | 42 | virtual ~AliMpSectorReader(); |
5f91c9e8 | 43 | |
44 | // methods | |
197883c2 | 45 | AliMpSector* BuildSector(); |
5f91c9e8 | 46 | |
13e7956b | 47 | private: |
ab167304 | 48 | /// Not implemented |
49 | AliMpSectorReader(); | |
f5671fc3 | 50 | /// Not implemented |
197883c2 | 51 | AliMpSectorReader(const AliMpSectorReader& right); |
f5671fc3 | 52 | /// Not implemented |
53 | AliMpSectorReader& operator = (const AliMpSectorReader& right); | |
fb1bf5c0 | 54 | |
31edb2d7 | 55 | // static methods |
56 | static const TString& GetSectorKeyword(); | |
57 | static const TString& GetZoneKeyword(); | |
58 | static const TString& GetSubZoneKeyword(); | |
59 | static const TString& GetRowKeyword(); | |
60 | static const TString& GetSectorSpecialKeyword(); | |
61 | static const TString& GetMotifKeyword(); | |
62 | static const TString& GetRowSpecialKeyword(); | |
63 | static const TString& GetPadRowsKeyword(); | |
64 | static const TString& GetPadRowSegmentKeyword(); | |
65 | ||
66 | // methods | |
228fd720 | 67 | void ReadSectorData(istream& in); |
68 | void ReadZoneData(istream& in); | |
69 | void ReadSubZoneData(istream& in, AliMpZone* zone); | |
70 | void ReadRowSegmentsData(istream& in, | |
5f91c9e8 | 71 | AliMpZone* zone, AliMpSubZone* subZone); |
228fd720 | 72 | AliMpVMotif* ReadMotifData(istream& in, AliMpZone* zone); |
73 | void ReadSectorSpecialData(istream& in, AliMp::XDirection direction); | |
74 | void ReadMotifsSpecialData(istream& in); | |
75 | void ReadRowSpecialData(istream& in, AliMp::XDirection direction); | |
76 | void ReadRowSegmentSpecialData(istream& in, | |
4139354b | 77 | AliMpVRowSegmentSpecial* segment, |
cddd101e | 78 | AliMp::XDirection direction); |
5f91c9e8 | 79 | |
4139354b | 80 | // data members |
7d5d0cc5 | 81 | const AliMpDataStreams& fkDataStreams; ///< data streams |
4e51cfd2 | 82 | AliMq::Station12Type fStationType; ///< station type |
83 | AliMp::PlaneType fPlaneType; ///< plane type | |
84 | AliMpSector* fSector; ///< sector | |
85 | AliMpMotifReader* fMotifReader; ///< motif reader | |
5f91c9e8 | 86 | |
228fd720 | 87 | ClassDef(AliMpSectorReader,0) // Data reader |
5f91c9e8 | 88 | }; |
89 | ||
90 | #endif //ALI_MP_READER_H |