]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpMotifReader.h
Removal of the check for the default cdb storage - anyway it is done inside cdb manag...
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpMotifReader.h
CommitLineData
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
37class AliMpMotifMap;
38class AliMpVMotif;
39class AliMpMotifSpecial;
40class AliMpMotifType;
ab167304 41class AliMpDataStreams;
197883c2 42
43class AliMpMotifReader : public TObject
44{
5006ec94 45 public:
46#ifdef WITH_STL
f5671fc3 47 /// Map of int pair to string
5006ec94 48 typedef std::map<std::string, std::pair<Int_t,Int_t> > PadMapType;
f5671fc3 49 /// Map of int pair to string iterator
5006ec94 50 typedef PadMapType::iterator PadMapTypeIterator;
51#endif
52#ifdef WITH_ROOT
f5671fc3 53 /// Map of int pair to string
5006ec94 54 typedef TExMap PadMapType;
55#endif
56
197883c2 57 public:
ab167304 58 AliMpMotifReader(const AliMpDataStreams& dataStreams,
59 AliMp::StationType station, AliMp::PlaneType plane);
197883c2 60 virtual ~AliMpMotifReader();
61
62 // methods
63 AliMpMotifType* BuildMotifType(const TString& motifTypeId);
64 AliMpMotifSpecial* BuildMotifSpecial(const TString& motifID,
d1c53ece 65 AliMpMotifType* motifType,
66 Double_t scale=1.0);
0e8df63e 67 TString MotifSpecialName(const TString& motifID, Double_t scale);
197883c2 68
13e7956b 69 private:
ab167304 70 /// Not implemented
71 AliMpMotifReader();
f5671fc3 72 /// Not implemented
197883c2 73 AliMpMotifReader(const AliMpMotifReader& right);
f5671fc3 74 /// Not implemented
197883c2 75 AliMpMotifReader& operator = (const AliMpMotifReader& right);
76
197883c2 77 // data members
ab167304 78 const AliMpDataStreams& fDataStreams; ///< data streams
cddd101e 79 AliMp::StationType fStationType; ///< station type
80 AliMp::PlaneType fPlaneType; ///< plane type
197883c2 81
228fd720 82 ClassDef(AliMpMotifReader,0) // Data reader
197883c2 83};
84
85#endif //ALI_MP_MOTIF_READER_H