]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpBusPatch.h
Update slat names (Christian)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpBusPatch.h
CommitLineData
1e738c3c 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
4// $Id$
b4daf0b2 5// $MpId: $
1e738c3c 6
9b97f64e 7/// \ingroup management
1e738c3c 8/// \class AliMpBusPatch
b4daf0b2 9/// \brief The class defines the properties of BusPatch
1e738c3c 10///
b4daf0b2 11/// \author Ivana Hrivnacova, IPN Orsay
1e738c3c 12
b4daf0b2 13#ifndef ALI_MP_BUS_PATCH_H
14#define ALI_MP_BUS_PATCH_H
1e738c3c 15
1e738c3c 16#include <TObject.h>
17
b4daf0b2 18#include "AliMpArrayI.h"
19
20class 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 AliMpBusPatch();
45 AliMpBusPatch(const AliMpBusPatch& rhs);
46 AliMpBusPatch& operator=(const AliMpBusPatch& rhs);
47
48 // static data members
49 static const Int_t fgkOffset; //< Offset for conversion global/local ID
50
51 // data members
52 Int_t fId; ///< Identifier (unique)
53 Int_t fDEId; ///< Detection element to which this bus patch is connected
54 Int_t fDdlId; ///< DDL to which this bus patch is connected
55 AliMpArrayI fManus; ///< Manu Ids connected to this bus patch
56
57 ClassDef(AliMpBusPatch,1) // The class collectiong electronics properties of DDL
58};
59
60// inline functions
2a7ea2e6 61
b4daf0b2 62/// Return the unique Id
63inline Int_t AliMpBusPatch::GetId() const
64{ return fId; }
65
66/// Return the Detection element Id
67inline Int_t AliMpBusPatch::GetDEId() const
68{ return fDEId; }
69
70/// Return the Ddl Id
71inline Int_t AliMpBusPatch::GetDdlId() const
72{ return fDdlId; }
73
74#endif //ALI_BUS_PATCH_H
528df1a6 75
1e738c3c 76
1e738c3c 77
1e738c3c 78
1e738c3c 79
1e738c3c 80
1e738c3c 81
d2892ef5 82
1e738c3c 83
5826f1df 84
5826f1df 85
1e738c3c 86
1e738c3c 87
88