1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpBusPatch.h,v 1.1 2006/01/11 10:24:20 ivana Exp $
7 /// \ingroup management
8 /// \class AliMpBusPatch
9 /// \brief Class that manages the maps buspatch<>DDL<>DE
11 /// Calculates also the maximum DSP and buspatch numbers for a given DE
13 /// Author: Ch. Finck; Subatech Nantes
15 #ifndef ALI_MP_BUSPATCH_H
16 #define ALI_MP_BUSPATCH_H
22 class AliMpBusPatch : public TObject
28 AliMpBusPatch(const AliMpBusPatch& src);
29 virtual ~AliMpBusPatch();
32 AliMpBusPatch& operator = (const AliMpBusPatch& src) ;
35 void ReadBusPatchFile();
36 void GetDspInfo(Int_t iCh, Int_t& iDspMax, Int_t* iBusPerDSP);
38 Int_t GetDEfromBus(Int_t busPatchId);
39 TArrayI* GetBusfromDE(Int_t idDE);
40 Int_t GetDDLfromBus(Int_t busPatchId);
44 TExMap fDetElemIdToBusPatch; //! Map from idDE to BusPatch
45 TExMap fBusPatchToDetElem; //! Map from BusPatch to idDE
46 TExMap fBusPatchToDDL; //! Map from BusPatch to iDDL
48 Int_t fMaxBusPerCh[10]; //! max buspatch number per chamber
50 ClassDef(AliMpBusPatch,1) //utility class for the motif type
54 #endif //ALI_MP_BUSPATCH_H