]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpDDL.h
Adding new libraries
[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);
29 void FillBusPatchIds();
30
31 // get methods
32 Int_t GetId() const;
33
34 // DEs
35 Int_t GetNofDEs() const;
36 Int_t GetDEId(Int_t index) const;
37 Bool_t HasDEId(Int_t detElemId) const;
38
39 // Bus patches
40 Int_t GetNofBusPatches() const;
41 Int_t GetBusPatchId(Int_t index) const;
42 Bool_t HasBusPatchId(Int_t busPatchId) const;
43
44 // Dsp info
45 Int_t GetMaxDsp() const;
46 void GetBusPerDsp(Int_t* iBusPerDSP) const;
47
48 private:
71a2d3aa 49 /// Not implemented
f0c62051 50 AliMpDDL();
71a2d3aa 51 /// Not implemented
f0c62051 52 AliMpDDL(const AliMpDDL& rhs);
71a2d3aa 53 /// Not implemented
f0c62051 54 AliMpDDL& operator=(const AliMpDDL& rhs);
55
56 // data members
57 Int_t fId; ///< Identifier (unique)
58 AliMpArrayI fDEIds; ///< Detection element Ids connected to this DDL
59 AliMpArrayI fBusPatchIds; ///< Bus patch Ids connected to this DDL
60
61
62 ClassDef(AliMpDDL,1) // The class collectiong electronics properties of DDL
63};
64
65// inline functions
66
67/// Return the unique Id
68inline Int_t AliMpDDL::GetId() const
69{ return fId; }
70
71#endif //ALI_MP_MANAGER_H
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86