]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpBusPatch.h
Updated comment line only (ingroup directive)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpBusPatch.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 // $Id$
5 // $MpId: AliMpBusPatch.h,v 1.1 2006/01/11 10:24:20 ivana Exp $
6
7 /// \ingroup management
8 /// \class AliMpBusPatch
9 /// \brief Class that manages the maps buspatch<>DDL<>DE 
10 ///
11 /// Calculates also the maximum DSP and buspatch numbers for a given DE
12 ///
13 /// Author: Ch. Finck; Subatech Nantes
14
15 #ifndef ALI_MP_BUSPATCH_H
16 #define ALI_MP_BUSPATCH_H
17
18 #include <TArrayI.h>
19 #include <TExMap.h>
20 #include <TObject.h>
21
22 class AliMpBusPatch : public TObject
23 {
24
25  public:
26
27   AliMpBusPatch();
28   AliMpBusPatch(const AliMpBusPatch& src);
29   virtual ~AliMpBusPatch();
30
31   // operators  
32   AliMpBusPatch& operator = (const AliMpBusPatch& src) ;
33   
34   // methods
35   void ReadBusPatchFile();
36   void GetDspInfo(Int_t iCh, Int_t& iDspMax, Int_t* iBusPerDSP);
37
38   Int_t    GetDEfromBus(Int_t busPatchId);
39   TArrayI* GetBusfromDE(Int_t idDE);
40   Int_t    GetDDLfromBus(Int_t busPatchId);
41
42  private:
43
44   TExMap fDetElemIdToBusPatch;       //! Map from idDE to BusPatch   
45   TExMap fBusPatchToDetElem;         //! Map from BusPatch to idDE
46   TExMap fBusPatchToDDL;             //! Map from BusPatch to iDDL
47
48   Int_t fMaxBusPerCh[10];            //! max buspatch number per chamber
49
50   ClassDef(AliMpBusPatch,1) //utility class for the motif type
51 };
52
53
54 #endif //ALI_MP_BUSPATCH_H