]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpBusPatch.h
Comments for Doxygen (mostly added comments for inline functions)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpBusPatch.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: $ 
6
7 /// \ingroup management
8 /// \class AliMpBusPatch
9 /// \brief The class defines the properties of BusPatch
10 ///
11 /// \author Ivana Hrivnacova, IPN Orsay
12
13 #ifndef ALI_MP_BUS_PATCH_H
14 #define ALI_MP_BUS_PATCH_H
15
16 #include <TObject.h>
17
18 #include "AliMpArrayI.h"
19
20 class AliMpBusPatch : public  TObject {
21
22   public:
23     AliMpBusPatch(Int_t id, Int_t deId, Int_t ddlId);
24     AliMpBusPatch(TRootIOCtor* /*ioCtor*/);
25     virtual ~AliMpBusPatch();
26
27     // static methods
28     static Int_t GetGlobalBusID(Int_t localID, Int_t ddlID);
29     static Int_t GetLocalBusID(Int_t globalID, Int_t ddlID);
30
31     // methods 
32     Bool_t AddManu(Int_t manuId);
33
34     // get methods
35     Int_t  GetId() const;
36     Int_t  GetDEId() const;
37     Int_t  GetDdlId() const;
38     Int_t  GetNofManus() const;
39     Int_t  GetManuId(Int_t index) const;
40     Bool_t HasManu(Int_t manuId) const;
41     
42
43   private:
44     /// Not implemented
45     AliMpBusPatch();
46     /// Not implemented
47     AliMpBusPatch(const AliMpBusPatch& rhs);
48     /// Not implemented
49     AliMpBusPatch& operator=(const AliMpBusPatch& rhs);
50
51     // static data members      
52     static const Int_t  fgkOffset; ///< Offset for conversion global/local ID  
53
54     // data members     
55     Int_t        fId;    ///< Identifier (unique)
56     Int_t        fDEId;  ///< Detection element to which this bus patch is connected
57     Int_t        fDdlId; ///< DDL to which this bus patch is connected
58     AliMpArrayI  fManus; ///< Manu Ids connected to this bus patch
59      
60   ClassDef(AliMpBusPatch,1)  // The class collectiong electronics properties of DDL
61 };
62
63 // inline functions
64
65 /// Return the unique Id
66 inline Int_t AliMpBusPatch::GetId() const
67 {  return fId; }
68
69 /// Return the Detection element Id
70 inline Int_t AliMpBusPatch::GetDEId() const
71 {  return fDEId; }
72
73 /// Return the Ddl  Id
74 inline Int_t AliMpBusPatch::GetDdlId() const
75 {  return fDdlId; }
76
77 #endif //ALI_BUS_PATCH_H
78
79
80
81
82
83
84
85
86
87
88
89
90
91