]>
Commit | Line | Data |
---|---|---|
59754717 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
4 | // $MpId: $ | |
5 | ||
6 | /// \ingroup management | |
7 | /// \class AliMpFrtCrocusConstants | |
8 | /// \brief The class defines the properties of CROCUS FRT | |
9 | /// | |
10 | /// \author Ch. Finck, Subatech Nantes | |
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" | |
168e9c4d | 19 | #include "AliMpEncodePair.h" |
59754717 | 20 | |
21 | class AliMpFrtCrocusConstants : public TObject { | |
22 | ||
23 | public: | |
24 | AliMpFrtCrocusConstants(); | |
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(); | |
168e9c4d | 34 | static MpPair_t GetLinkPortId(Int_t index); |
59754717 | 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: | |
46 | /// Not implemented | |
47 | AliMpFrtCrocusConstants(const AliMpFrtCrocusConstants& rhs); | |
48 | /// Not implemented | |
49 | AliMpFrtCrocusConstants& operator=(const AliMpFrtCrocusConstants& rhs); | |
50 | ||
51 | // static data members | |
52 | static const Int_t fgkOffset; ///< Offset for conversion global/local ID | |
53 | static const Int_t fgkLinkPorts[10]; ///< Link port Ids connected to this crocus | |
54 | static const Int_t fgkNofDsps; ///< Number of Dsps connected to this crocus | |
55 | static const Int_t fgkNofBusPatches; ///< Number of Dsps connected to this crocus | |
56 | static const UInt_t fgkBaseAddress; ///< VME base address for FRT crocus | |
57 | static const UInt_t fgkAddressOffset; ///< VME address offset for FRT crocus | |
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 |