]>
Commit | Line | Data |
---|---|---|
197883c2 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
4 | // $Id$ | |
13985652 | 5 | // $MpId: AliMpMotifReader.h,v 1.9 2006/05/24 13:58:18 ivana Exp $ |
197883c2 | 6 | |
7 | /// \ingroup motif | |
8 | /// \class AliMpMotifReader | |
9 | /// \brief Class that takes care of reading the motifs data. | |
10 | /// | |
13985652 | 11 | /// \author David Guez, Ivana Hrivnacova; IPN Orsay |
197883c2 | 12 | |
13 | #ifndef ALI_MP_MOTIF_READER_H | |
14 | #define ALI_MP_MOTIF_READER_H | |
15 | ||
2a7ea2e6 | 16 | #include <TObject.h> |
17 | ||
5006ec94 | 18 | #include "AliMpContainers.h" |
19 | ||
2a7ea2e6 | 20 | #include "AliMpStationType.h" |
21 | #include "AliMpPlaneType.h" | |
22 | #include "AliMpIntPair.h" | |
23 | #include "AliMpContainers.h" | |
5006ec94 | 24 | |
25 | #ifdef WITH_ROOT | |
26 | #include <TExMap.h> | |
27 | #endif | |
197883c2 | 28 | #include <TString.h> |
29 | #include <TVector2.h> | |
30 | #include <Riostream.h> | |
31 | ||
2a7ea2e6 | 32 | #include <fstream> |
33 | #ifdef WITH_STL | |
34 | #include <map> | |
35 | #endif | |
197883c2 | 36 | |
37 | class AliMpMotifMap; | |
38 | class AliMpVMotif; | |
39 | class AliMpMotifSpecial; | |
40 | class AliMpMotifType; | |
41 | ||
42 | class AliMpMotifReader : public TObject | |
43 | { | |
5006ec94 | 44 | public: |
45 | #ifdef WITH_STL | |
46 | typedef std::map<std::string, std::pair<Int_t,Int_t> > PadMapType; | |
47 | typedef PadMapType::iterator PadMapTypeIterator; | |
48 | #endif | |
49 | #ifdef WITH_ROOT | |
50 | typedef TExMap PadMapType; | |
51 | #endif | |
52 | ||
197883c2 | 53 | public: |
54 | AliMpMotifReader(AliMpStationType station, AliMpPlaneType plane); | |
55 | AliMpMotifReader(); | |
56 | virtual ~AliMpMotifReader(); | |
57 | ||
58 | // methods | |
59 | AliMpMotifType* BuildMotifType(const TString& motifTypeId); | |
60 | AliMpMotifSpecial* BuildMotifSpecial(const TString& motifID, | |
d1c53ece | 61 | AliMpMotifType* motifType, |
62 | Double_t scale=1.0); | |
197883c2 | 63 | |
13e7956b | 64 | private: |
197883c2 | 65 | AliMpMotifReader(const AliMpMotifReader& right); |
66 | AliMpMotifReader& operator = (const AliMpMotifReader& right); | |
67 | ||
197883c2 | 68 | // data members |
829425a5 | 69 | AliMpStationType fStationType; ///< station type |
70 | AliMpPlaneType fPlaneType; ///< plane type | |
197883c2 | 71 | |
72 | ClassDef(AliMpMotifReader,1) // Data reader | |
73 | }; | |
74 | ||
75 | #endif //ALI_MP_MOTIF_READER_H |