]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpMotifReader.h
Bug coreected in PTM gain array indexes
[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 <Riostream.h>
25
26 #include <fstream>
27
28 class AliMpMotifMap;
29 class AliMpVMotif;
30 class AliMpMotifSpecial;
31 class AliMpMotifType;
32 class AliMpDataStreams;
33
34 class AliMpMotifReader : public TObject
35 {
36   public:
37     AliMpMotifReader(const AliMpDataStreams& dataStreams,
38                      AliMp::StationType station, 
39                      AliMq::Station12Type station12,
40                      AliMp::PlaneType plane);
41     virtual ~AliMpMotifReader();
42   
43     // methods   
44     AliMpMotifType*     BuildMotifType(const TString& motifTypeId);
45     AliMpMotifSpecial*  BuildMotifSpecial(const TString& motifID,
46                                           AliMpMotifType* motifType,
47                                           Double_t scale=1.0);
48     TString MotifSpecialName(const TString& motifID, Double_t scale);
49     
50   private:
51     /// Not implemented
52     AliMpMotifReader();
53     /// Not implemented
54     AliMpMotifReader(const AliMpMotifReader& right);
55     /// Not implemented
56     AliMpMotifReader&  operator = (const AliMpMotifReader& right);
57
58     // data members  
59     const AliMpDataStreams& fkDataStreams;///< data streams
60     AliMp::StationType    fStationType;   ///< station type 
61     AliMq::Station12Type  fStation12Type; ///< station12 type 
62     AliMp::PlaneType      fPlaneType;     ///< plane type 
63
64   ClassDef(AliMpMotifReader,0)  // Data reader
65 };
66
67 #endif //ALI_MP_MOTIF_READER_H