1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpMotifReader.h,v 1.9 2006/05/24 13:58:18 ivana Exp $
8 /// \class AliMpMotifReader
9 /// \brief Class that takes care of reading the motifs data.
11 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
13 #ifndef ALI_MP_MOTIF_READER_H
14 #define ALI_MP_MOTIF_READER_H
18 #include "AliMpContainers.h"
20 #include "AliMpStationType.h"
21 #include "AliMpStation12Type.h"
22 #include "AliMpPlaneType.h"
23 #include "AliMpIntPair.h"
24 #include "AliMpContainers.h"
31 #include <Riostream.h>
40 class AliMpMotifSpecial;
42 class AliMpDataStreams;
44 class AliMpMotifReader : public TObject
48 /// Map of int pair to string
49 typedef std::map<std::string, std::pair<Int_t,Int_t> > PadMapType;
50 /// Map of int pair to string iterator
51 typedef PadMapType::iterator PadMapTypeIterator;
54 /// Map of int pair to string
55 typedef TExMap PadMapType;
59 AliMpMotifReader(const AliMpDataStreams& dataStreams,
60 AliMp::StationType station,
61 AliMq::Station12Type station12,
62 AliMp::PlaneType plane);
63 virtual ~AliMpMotifReader();
66 AliMpMotifType* BuildMotifType(const TString& motifTypeId);
67 AliMpMotifSpecial* BuildMotifSpecial(const TString& motifID,
68 AliMpMotifType* motifType,
70 TString MotifSpecialName(const TString& motifID, Double_t scale);
76 AliMpMotifReader(const AliMpMotifReader& right);
78 AliMpMotifReader& operator = (const AliMpMotifReader& right);
81 const AliMpDataStreams& fkDataStreams;///< data streams
82 AliMp::StationType fStationType; ///< station type
83 AliMq::Station12Type fStation12Type; ///< station12 type
84 AliMp::PlaneType fPlaneType; ///< plane type
86 ClassDef(AliMpMotifReader,0) // Data reader
89 #endif //ALI_MP_MOTIF_READER_H