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.2 2006/03/17 11:35:58 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
24 class AliMpBusPatch : public TObject
30 AliMpBusPatch(const AliMpBusPatch& src);
31 virtual ~AliMpBusPatch();
34 AliMpBusPatch& operator = (const AliMpBusPatch& src) ;
37 void ReadBusPatchFile();
38 void GetDspInfo(Int_t iCh, Int_t& iDspMax, Int_t* iBusPerDSP) const;
40 Int_t GetDEfromBus(Int_t busPatchId);
41 TArrayI* GetBusfromDE(Int_t idDE);
42 Int_t GetDDLfromBus(Int_t busPatchId);
46 TExMap fDetElemIdToBusPatch; //! Map from idDE to BusPatch
47 TExMap fBusPatchToDetElem; //! Map from BusPatch to idDE
48 TExMap fBusPatchToDDL; //! Map from BusPatch to iDDL
50 Int_t fMaxBusPerCh[10]; //! max buspatch number per chamber
52 ClassDef(AliMpBusPatch,1) //utility class for the motif type
56 #endif //ALI_MP_BUSPATCH_H