]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpDEStore.h
MacOSX does not like files that differ only by case
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpDEStore.h
CommitLineData
f0c62051 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: AliMpDEStore.h,v 1.6 2006/05/24 13:58:16 ivana Exp $
6
7/// \ingroup management
8/// \class AliMpDEStore
9/// \brief The container class for detection element objects
10///
11/// \author Ivana Hrivnacova, IPN Orsay;
12/// Laurent Aphecetche, Christian Finck, SUBATECH Nantes
13
14#ifndef ALI_MP_DE_STORE_H
15#define ALI_MP_DE_STORE_H
16
17#include <TObject.h>
18#include <TArrayI.h>
19
20#include "AliMpExMap.h"
21#include "AliMpPlaneType.h"
22#include "AliMpStationType.h"
23#include "AliMpIntPair.h"
24
25class AliMpDetElement;
26
27class AliMpDEStore : public TObject {
28
29 friend class AliMpDEIterator;
30
31 public:
32 AliMpDEStore(TRootIOCtor* /*ioCtor*/);
33 virtual ~AliMpDEStore();
34
35 // static access method
36 static AliMpDEStore* Instance();
37
38 // methods
39 AliMpDetElement* GetDetElement(Int_t detElemId, Bool_t warn = true) const;
40 AliMpIntPair GetDetElemIdManu(Int_t manuSerial) const;
41
42 private:
43 AliMpDEStore();
71a2d3aa 44 /// Not implemented
f0c62051 45 AliMpDEStore(const AliMpDEStore& rhs);
71a2d3aa 46 /// Not implemented
f0c62051 47 AliMpDEStore& operator=(const AliMpDEStore& rhs);
48
49 // methods
50 Bool_t IsPlaneType(const TString& planeTypeName);
51 AliMp::PlaneType PlaneType(const TString& planeTypeName);
52 AliMp::StationType StationType(const TString& stationTypeName);
53
54 Bool_t ReadManuToSerialNbs(AliMpDetElement* detElement,
55 AliMp::StationType stationType);
56 Bool_t ReadDENames(AliMp::StationType stationType);
57 void FillDEs();
58
59 // static data members
60 static AliMpDEStore* fgInstance; ///< Singleton instance
61 static const char fgkCommentPrefix; ///< Comment prefix in DE names file
62
63 // data members
64 AliMpExMap fDetElements; ///< Map between DE Ids and DE objects
65
66 ClassDef(AliMpDEStore,1) // The manager class for definition of detection element types
67};
68
69#endif //ALI_MP_MANAGER_H
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84