]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpSectorReader.h
Main changes:
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpSectorReader.h
CommitLineData
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 26class AliMpSector;
27class AliMpZone;
28class AliMpSubZone;
29class AliMpRow;
4139354b 30class AliMpVRowSegmentSpecial;
197883c2 31class AliMpMotifReader;
5f91c9e8 32class AliMpVMotif;
33class AliMpMotifSpecial;
34class AliMpMotifType;
ab167304 35class AliMpDataStreams;
5f91c9e8 36
197883c2 37class 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
5f91c9e8 55 // methods
228fd720 56 void ReadSectorData(istream& in);
57 void ReadZoneData(istream& in);
58 void ReadSubZoneData(istream& in, AliMpZone* zone);
59 void ReadRowSegmentsData(istream& in,
5f91c9e8 60 AliMpZone* zone, AliMpSubZone* subZone);
228fd720 61 AliMpVMotif* ReadMotifData(istream& in, AliMpZone* zone);
62 void ReadSectorSpecialData(istream& in, AliMp::XDirection direction);
63 void ReadMotifsSpecialData(istream& in);
64 void ReadRowSpecialData(istream& in, AliMp::XDirection direction);
65 void ReadRowSegmentSpecialData(istream& in,
4139354b 66 AliMpVRowSegmentSpecial* segment,
cddd101e 67 AliMp::XDirection direction);
5f91c9e8 68
69 // static data members
829425a5 70 static const TString fgkSectorKeyword; ///< sector keyword
71 static const TString fgkZoneKeyword; ///< zone keyword
72 static const TString fgkSubZoneKeyword; ///< subzone keyword
73 static const TString fgkRowKeyword; ///< row keyword
74 static const TString fgkEofKeyword; ///< eof keyword
75 static const TString fgkSectorSpecialKeyword; ///< sector special keyword
76 static const TString fgkMotifKeyword; ///< motif keyword
77 static const TString fgkRowSpecialKeyword; ///< row special keyword
78 static const TString fgkPadRowsKeyword; ///< pad rows keyword
79 static const TString fgkPadRowSegmentKeyword; ///< pad row segment keyword
5f91c9e8 80
4139354b 81 // data members
7d5d0cc5 82 const AliMpDataStreams& fkDataStreams; ///< data streams
4e51cfd2 83 AliMq::Station12Type fStationType; ///< station type
84 AliMp::PlaneType fPlaneType; ///< plane type
85 AliMpSector* fSector; ///< sector
86 AliMpMotifReader* fMotifReader; ///< motif reader
5f91c9e8 87
228fd720 88 ClassDef(AliMpSectorReader,0) // Data reader
5f91c9e8 89};
90
91#endif //ALI_MP_READER_H