]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpDEStore.h
Updated denames of station 1 for the quadrants as they have been mounted in cave
[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;
2eee683c 26class TString;
f0c62051 27
28class AliMpDEStore : public TObject {
29
30 friend class AliMpDEIterator;
31
32 public:
33 AliMpDEStore(TRootIOCtor* /*ioCtor*/);
34 virtual ~AliMpDEStore();
35
36 // static access method
37 static AliMpDEStore* Instance();
38
39 // methods
40 AliMpDetElement* GetDetElement(Int_t detElemId, Bool_t warn = true) const;
2eee683c 41 AliMpDetElement* GetDetElement(const TString& detName, Bool_t warn = true) const;
42
f0c62051 43 AliMpIntPair GetDetElemIdManu(Int_t manuSerial) const;
44
45 private:
46 AliMpDEStore();
71a2d3aa 47 /// Not implemented
f0c62051 48 AliMpDEStore(const AliMpDEStore& rhs);
71a2d3aa 49 /// Not implemented
f0c62051 50 AliMpDEStore& operator=(const AliMpDEStore& rhs);
51
52 // methods
53 Bool_t IsPlaneType(const TString& planeTypeName);
54 AliMp::PlaneType PlaneType(const TString& planeTypeName);
55 AliMp::StationType StationType(const TString& stationTypeName);
56
57 Bool_t ReadManuToSerialNbs(AliMpDetElement* detElement,
58 AliMp::StationType stationType);
59 Bool_t ReadDENames(AliMp::StationType stationType);
60 void FillDEs();
61
62 // static data members
63 static AliMpDEStore* fgInstance; ///< Singleton instance
64 static const char fgkCommentPrefix; ///< Comment prefix in DE names file
65
66 // data members
67 AliMpExMap fDetElements; ///< Map between DE Ids and DE objects
68
69 ClassDef(AliMpDEStore,1) // The manager class for definition of detection element types
70};
71
72#endif //ALI_MP_MANAGER_H
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87