]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpMotifReader.h
Replacement of AliMpIntPair object with algoritmic
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpMotifReader.h
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: AliMpMotifReader.h,v 1.9 2006/05/24 13:58:18 ivana Exp $
6
7 /// \ingroup motif
8 /// \class AliMpMotifReader
9 /// \brief Class that takes care of reading the motifs data.
10 ///
11 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
12
13 #ifndef ALI_MP_MOTIF_READER_H
14 #define ALI_MP_MOTIF_READER_H
15
16 #include <TObject.h>
17
18 #include "AliMpStationType.h"
19 #include "AliMpStation12Type.h"
20 #include "AliMpPlaneType.h"
21
22 #include <TExMap.h>
23 #include <TString.h>
24 #include <TVector2.h>
25 #include <Riostream.h>
26
27 #include <fstream>
28
29 class AliMpMotifMap;
30 class AliMpVMotif;
31 class AliMpMotifSpecial;
32 class AliMpMotifType;
33 class AliMpDataStreams;
34
35 class AliMpMotifReader : public TObject
36 {
37   public:
38     AliMpMotifReader(const AliMpDataStreams& dataStreams,
39                      AliMp::StationType station, 
40                      AliMq::Station12Type station12,
41                      AliMp::PlaneType plane);
42     virtual ~AliMpMotifReader();
43   
44     // methods   
45     AliMpMotifType*     BuildMotifType(const TString& motifTypeId);
46     AliMpMotifSpecial*  BuildMotifSpecial(const TString& motifID,
47                                           AliMpMotifType* motifType,
48                                           Double_t scale=1.0);
49     TString MotifSpecialName(const TString& motifID, Double_t scale);
50     
51   private:
52     /// Not implemented
53     AliMpMotifReader();
54     /// Not implemented
55     AliMpMotifReader(const AliMpMotifReader& right);
56     /// Not implemented
57     AliMpMotifReader&  operator = (const AliMpMotifReader& right);
58
59     // data members  
60     const AliMpDataStreams& fkDataStreams;///< data streams
61     AliMp::StationType    fStationType;   ///< station type 
62     AliMq::Station12Type  fStation12Type; ///< station12 type 
63     AliMp::PlaneType      fPlaneType;     ///< plane type 
64
65   ClassDef(AliMpMotifReader,0)  // Data reader
66 };
67
68 #endif //ALI_MP_MOTIF_READER_H