]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpBusPatch.h
Correction in the loop over track references. Upper bound has been affected
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpBusPatch.h
CommitLineData
1e738c3c 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
4// $Id$
2a7ea2e6 5// $MpId: AliMpBusPatch.h,v 1.2 2006/03/17 11:35:58 ivana Exp $
1e738c3c 6
9b97f64e 7/// \ingroup management
1e738c3c 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
1e738c3c 18#include <TObject.h>
19
2a7ea2e6 20#include <TExMap.h>
21
22class TArrayI;
23
1e738c3c 24class AliMpBusPatch : public TObject
25{
26
27 public:
28
29 AliMpBusPatch();
30 AliMpBusPatch(const AliMpBusPatch& src);
31 virtual ~AliMpBusPatch();
32
33 // operators
34 AliMpBusPatch& operator = (const AliMpBusPatch& src) ;
35
36 // methods
37 void ReadBusPatchFile();
85fec35d 38 void GetDspInfo(Int_t iCh, Int_t& iDspMax, Int_t* iBusPerDSP) const;
1e738c3c 39
40 Int_t GetDEfromBus(Int_t busPatchId);
41 TArrayI* GetBusfromDE(Int_t idDE);
42 Int_t GetDDLfromBus(Int_t busPatchId);
43
44 private:
45
46 TExMap fDetElemIdToBusPatch; //! Map from idDE to BusPatch
47 TExMap fBusPatchToDetElem; //! Map from BusPatch to idDE
48 TExMap fBusPatchToDDL; //! Map from BusPatch to iDDL
49
50 Int_t fMaxBusPerCh[10]; //! max buspatch number per chamber
51
52 ClassDef(AliMpBusPatch,1) //utility class for the motif type
53};
54
55
56#endif //ALI_MP_BUSPATCH_H