AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpFrtCrocusConstants.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $MpId: $
5 
11 
12 #ifndef ALI_MP_FRT_CROCUS_CONSTANTS_H
13 #define ALI_MP_FRT_CROCUS_CONSTANTS_H
14 
15 #include <TObject.h>
16 #include <TString.h>
17 
18 #include "AliMpArrayI.h"
19 #include "AliMpEncodePair.h"
20 
21 class AliMpFrtCrocusConstants : public TObject {
22 
23  public:
25  virtual ~AliMpFrtCrocusConstants();
26 
27  // static methods
28  static Int_t GetGlobalFrtID(Int_t localID, Int_t ddlID);
29  static Int_t GetLocalFrtID(Int_t globalID, Int_t ddlID);
30 
31  // get methods
32  static Int_t GetNofDsps();
33  static Int_t GetNofBusPatches();
34  static MpPair_t GetLinkPortId(Int_t index);
35 
36  // return VME top address
37  static UInt_t GetTopAddress(Int_t id);
38  static Int_t GetIdFromTopAddress(UInt_t add);
39 
40  // return VME bottom address
41  static UInt_t GetBotAddress(Int_t id) ;
42  static Int_t GetIdFromBotAddress(UInt_t add);
43 
44 
45  private:
50 
51  // static data members
52  static const Int_t fgkOffset;
53  static const Int_t fgkLinkPorts[10];
54  static const Int_t fgkNofDsps;
55  static const Int_t fgkNofBusPatches;
56  static const UInt_t fgkBaseAddress;
57  static const UInt_t fgkAddressOffset;
58 
59  ClassDef(AliMpFrtCrocusConstants,1) // The class collectiong electronics properties of CROCUS FRT
60 };
61 
62 #endif //ALI_FRT_CROCUS_CONSTANTS_H
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
74 
75 
76 
static MpPair_t GetLinkPortId(Int_t index)
static UInt_t GetTopAddress(Int_t id)
static Int_t GetGlobalFrtID(Int_t localID, Int_t ddlID)
static UInt_t GetBotAddress(Int_t id)
static Int_t GetIdFromBotAddress(UInt_t add)
static const Int_t fgkOffset
Offset for conversion global/local ID.
static const Int_t fgkLinkPorts[10]
Link port Ids connected to this crocus.
static const UInt_t fgkAddressOffset
VME address offset for FRT crocus.
static const Int_t fgkNofDsps
Number of Dsps connected to this crocus.
static const Int_t fgkNofBusPatches
Number of Dsps connected to this crocus.
static Int_t GetIdFromTopAddress(UInt_t add)
The class defines the properties of CROCUS FRT.
Int_t MpPair_t
static Int_t GetLocalFrtID(Int_t globalID, Int_t ddlID)
AliMpFrtCrocusConstants & operator=(const AliMpFrtCrocusConstants &rhs)
Not implemented.
static const UInt_t fgkBaseAddress
VME base address for FRT crocus.