1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
7 /// \ingroup management
8 /// \class AliMpBusPatch
9 /// \brief The class defines the properties of BusPatch
11 /// \author Ivana Hrivnacova, IPN Orsay
13 #ifndef ALI_MP_BUS_PATCH_H
14 #define ALI_MP_BUS_PATCH_H
18 #include "AliMpArrayI.h"
20 class AliMpBusPatch : public TObject {
23 AliMpBusPatch(Int_t id, Int_t deId, Int_t ddlId);
24 AliMpBusPatch(TRootIOCtor* /*ioCtor*/);
25 virtual ~AliMpBusPatch();
28 static Int_t GetGlobalBusID(Int_t localID, Int_t ddlID);
29 static Int_t GetLocalBusID(Int_t globalID, Int_t ddlID);
32 Bool_t AddManu(Int_t manuId);
33 Bool_t SetNofManusPerModule();
37 Int_t GetDEId() const;
38 Int_t GetDdlId() const;
39 Int_t GetNofManus() const;
40 Int_t GetManuId(Int_t index) const;
41 Bool_t HasManu(Int_t manuId) const;
43 Int_t GetNofPatchModules() const;
44 Int_t GetNofManusPerModule(Int_t patchModule) const;
51 AliMpBusPatch(const AliMpBusPatch& rhs);
53 AliMpBusPatch& operator=(const AliMpBusPatch& rhs);
55 // static data members
56 static const Int_t fgkOffset; ///< Offset for conversion global/local ID
59 Int_t fId; ///< Identifier (unique)
60 Int_t fDEId; ///< Detection element to which this bus patch is connected
61 Int_t fDdlId; ///< DDL to which this bus patch is connected
62 AliMpArrayI fManus; ///< Manu Ids connected to this bus patch
63 AliMpArrayI fNofManusPerModule;///< Nof Manus per patch modules (PCBs)
65 ClassDef(AliMpBusPatch,1) // The class collectiong electronics properties of DDL
70 /// Return the unique Id
71 inline Int_t AliMpBusPatch::GetId() const
74 /// Return the Detection element Id
75 inline Int_t AliMpBusPatch::GetDEId() const
79 inline Int_t AliMpBusPatch::GetDdlId() const
82 #endif //ALI_BUS_PATCH_H