AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpSectorReader.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 // $MpId: AliMpSectorReader.h,v 1.7 2006/05/24 13:58:21 ivana Exp $
6 
12 
13 #ifndef ALI_MP_SECTOR_READER_H
14 #define ALI_MP_SECTOR_READER_H
15 
16 #include <TObject.h>
17 
18 #include "AliMpStation12Type.h"
19 #include "AliMpPlaneType.h"
20 #include "AliMpXDirection.h"
21 
22 #include <TString.h>
23 
24 #include <fstream>
25 
26 class AliMpSector;
27 class AliMpZone;
28 class AliMpSubZone;
29 class AliMpRow;
31 class AliMpMotifReader;
32 class AliMpVMotif;
33 class AliMpMotifSpecial;
34 class AliMpMotifType;
35 class AliMpDataStreams;
36 
37 using std::istream;
38 
39 class AliMpSectorReader : public TObject
40 {
41  public:
43  virtual ~AliMpSectorReader();
44 
45  // methods
46  AliMpSector* BuildSector(const AliMpDataStreams& dataStreams);
47 
48  private:
55 
56  // static methods
57  static const TString& GetSectorKeyword();
58  static const TString& GetZoneKeyword();
59  static const TString& GetSubZoneKeyword();
60  static const TString& GetRowKeyword();
61  static const TString& GetSectorSpecialKeyword();
62  static const TString& GetMotifKeyword();
63  static const TString& GetRowSpecialKeyword();
64  static const TString& GetPadRowsKeyword();
65  static const TString& GetPadRowSegmentKeyword();
66 
67  // methods
68  void ReadSectorData(const AliMpDataStreams& dataStreams,
69  istream& in);
70  void ReadZoneData(const AliMpDataStreams& dataStreams,
71  istream& in);
72  void ReadSubZoneData(const AliMpDataStreams& dataStreams,
73  istream& in, AliMpZone* zone);
74  void ReadRowSegmentsData(const AliMpDataStreams& dataStreams,
75  istream& in,
76  AliMpZone* zone, AliMpSubZone* subZone);
77 
78  AliMpVMotif* ReadMotifData(const AliMpDataStreams& dataStreams,
79  istream& in, AliMpZone* zone);
80  void ReadSectorSpecialData(const AliMpDataStreams& dataStreams,
81  istream& in, AliMp::XDirection direction);
82  void ReadMotifsSpecialData(const AliMpDataStreams& dataStreams,
83  istream& in);
84  void ReadRowSpecialData(const AliMpDataStreams& dataStreams,
85  istream& in, AliMp::XDirection direction);
86  void ReadRowSegmentSpecialData(const AliMpDataStreams& dataStreams,
87  istream& in,
88  AliMpVRowSegmentSpecial* segment,
89  AliMp::XDirection direction);
90 
91  // data members
96 
97  ClassDef(AliMpSectorReader,0) // Data reader
98 };
99 
100 #endif //ALI_MP_READER_H
static const TString & GetSectorSpecialKeyword()
AliMq::Station12Type fStationType
station type
AliMpSectorReader & operator=(const AliMpSectorReader &right)
Not implemented.
AliMpMotifReader * fMotifReader
motif reader
void ReadRowSegmentSpecialData(const AliMpDataStreams &dataStreams, istream &in, AliMpVRowSegmentSpecial *segment, AliMp::XDirection direction)
A special motif with varying pad dimensions.
AliMp::PlaneType fPlaneType
plane type
static const TString & GetZoneKeyword()
static const TString & GetPadRowSegmentKeyword()
Class that takes care of reading the sector data.
void ReadMotifsSpecialData(const AliMpDataStreams &dataStreams, istream &in)
AliMpVMotif * ReadMotifData(const AliMpDataStreams &dataStreams, istream &in, AliMpZone *zone)
AliMpSector * BuildSector(const AliMpDataStreams &dataStreams)
void ReadSectorSpecialData(const AliMpDataStreams &dataStreams, istream &in, AliMp::XDirection direction)
void ReadRowSegmentsData(const AliMpDataStreams &dataStreams, istream &in, AliMpZone *zone, AliMpSubZone *subZone)
void ReadZoneData(const AliMpDataStreams &dataStreams, istream &in)
AliMpSector * fSector
sector
A region of pads of the same dimensions composed of subzones.
Definition: AliMpZone.h:25
static const TString & GetPadRowsKeyword()
static const TString & GetSubZoneKeyword()
void ReadSubZoneData(const AliMpDataStreams &dataStreams, istream &in, AliMpZone *zone)
static const TString & GetSectorKeyword()
A row composed of the row segments.
Definition: AliMpRow.h:26
A sector (quadrant) of the MUON chamber of stations 1 and 2.
Definition: AliMpSector.h:34
static const TString & GetMotifKeyword()
Abstract base class for a special row segment composed of the pad rows.
AliMpSectorReader()
Not implemented.
Abstract base class for a motif with its unique ID and the motif type.
Definition: AliMpVMotif.h:24
Class that takes care of reading the motifs data.
void ReadSectorData(const AliMpDataStreams &dataStreams, istream &in)
static const TString & GetRowKeyword()
static const TString & GetRowSpecialKeyword()
void ReadRowSpecialData(const AliMpDataStreams &dataStreams, istream &in, AliMp::XDirection direction)
Class that defines the motif properties.
Mapping data streams provider.
A region in zone composed of the row segments with the same motif type.
Definition: AliMpSubZone.h:23