]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpDDL.h
Add the det.element id for each local board
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpDDL.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: AliMpDDL.h,v 1.6 2006/05/24 13:58:16 ivana Exp $
6
7/// \ingroup management
8/// \class AliMpDDL
9/// \brief The class defined electronics properties of DDL
10///
11/// \author Ivana Hrivnacova, IPN Orsay
12
13#ifndef ALI_MP_DDL_H
14#define ALI_MP_DDL_H
15
16#include <TObject.h>
17
18#include "AliMpArrayI.h"
19
20class AliMpDDL : public TObject {
21
22 public:
23 AliMpDDL(Int_t id);
24 AliMpDDL(TRootIOCtor* /*ioCtor*/);
25 virtual ~AliMpDDL();
26
27 // methods
28 Bool_t AddDE(Int_t detElemId);
11b2fd04 29 Bool_t AddTriggerCrate(Int_t crateId);
30
f0c62051 31 void FillBusPatchIds();
32
33 // get methods
34 Int_t GetId() const;
35
36 // DEs
37 Int_t GetNofDEs() const;
38 Int_t GetDEId(Int_t index) const;
39 Bool_t HasDEId(Int_t detElemId) const;
40
41 // Bus patches
42 Int_t GetNofBusPatches() const;
43 Int_t GetBusPatchId(Int_t index) const;
44 Bool_t HasBusPatchId(Int_t busPatchId) const;
11b2fd04 45
46 // Trigger crates
47 Int_t GetNofTriggerCrates() const;
48 Int_t GetTriggerCrateId(Int_t index) const;
49 Bool_t HasTriggerCrateId(Int_t crateId) const;
f0c62051 50
51 // Dsp info
52 Int_t GetMaxDsp() const;
53 void GetBusPerDsp(Int_t* iBusPerDSP) const;
54
55 private:
71a2d3aa 56 /// Not implemented
f0c62051 57 AliMpDDL();
71a2d3aa 58 /// Not implemented
f0c62051 59 AliMpDDL(const AliMpDDL& rhs);
71a2d3aa 60 /// Not implemented
f0c62051 61 AliMpDDL& operator=(const AliMpDDL& rhs);
62
63 // data members
11b2fd04 64 Int_t fId; ///< Identifier (unique)
65 AliMpArrayI fDEIds; ///< Detection element Ids connected to this DDL
66 AliMpArrayI fBusPatchIds; ///< Bus patch Ids connected to this DDL
67 AliMpArrayI fTriggerCrateIds; ///< Trigger crate Ids connected to this DDL
68
f0c62051 69
70 ClassDef(AliMpDDL,1) // The class collectiong electronics properties of DDL
71};
72
73// inline functions
74
75/// Return the unique Id
76inline Int_t AliMpDDL::GetId() const
77{ return fId; }
78
79#endif //ALI_MP_MANAGER_H
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94