1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
6 /// \ingroup management
7 /// \class AliMpFrtCrocusConstants
8 /// \brief The class defines the properties of CROCUS FRT
10 /// \author Ch. Finck, Subatech Nantes
12 #ifndef ALI_MP_FRT_CROCUS_CONSTANTS_H
13 #define ALI_MP_FRT_CROCUS_CONSTANTS_H
18 #include "AliMpArrayI.h"
19 #include "AliMpEncodePair.h"
21 class AliMpFrtCrocusConstants : public TObject {
24 AliMpFrtCrocusConstants();
25 virtual ~AliMpFrtCrocusConstants();
28 static Int_t GetGlobalFrtID(Int_t localID, Int_t ddlID);
29 static Int_t GetLocalFrtID(Int_t globalID, Int_t ddlID);
32 static Int_t GetNofDsps();
33 static Int_t GetNofBusPatches();
34 static MpPair_t GetLinkPortId(Int_t index);
36 // return VME top address
37 static UInt_t GetTopAddress(Int_t id);
38 static Int_t GetIdFromTopAddress(UInt_t add);
40 // return VME bottom address
41 static UInt_t GetBotAddress(Int_t id) ;
42 static Int_t GetIdFromBotAddress(UInt_t add);
47 AliMpFrtCrocusConstants(const AliMpFrtCrocusConstants& rhs);
49 AliMpFrtCrocusConstants& operator=(const AliMpFrtCrocusConstants& rhs);
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
59 ClassDef(AliMpFrtCrocusConstants,1) // The class collectiong electronics properties of CROCUS FRT
62 #endif //ALI_FRT_CROCUS_CONSTANTS_H