]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpDDL.h
Adding includes now needed by ROOT
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpDDL.h
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
20 class 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:
49     AliMpDDL();
50     AliMpDDL(const AliMpDDL& rhs);
51     AliMpDDL& operator=(const AliMpDDL& rhs);
52
53     // data members     
54     Int_t       fId;          ///< Identifier (unique)
55     AliMpArrayI fDEIds;       ///< Detection element Ids connected to this DDL
56     AliMpArrayI fBusPatchIds; ///< Bus patch Ids connected to this DDL
57     
58      
59   ClassDef(AliMpDDL,1)  // The class collectiong electronics properties of DDL
60 };
61
62 // inline functions
63
64 /// Return the unique Id
65 inline Int_t AliMpDDL::GetId() const
66 {  return fId; }
67
68 #endif //ALI_MP_MANAGER_H
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83