]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpLocalBoard.h
New class AliMpLocalBoard, it contains:
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpLocalBoard.h
CommitLineData
4fb5ef65 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: AliMpManuGeo.h,v 1.5 2006/05/24 13:58:16 ivana Exp $
6
7/// \ingroup management
8/// \class AliMpLocalBoard
9/// \brief Class that manages the properties of the local board
10///
11/// \author Ch. Finck; Subatech Nantes
12
13#ifndef ALI_MP_LOCAL_BOARD_H
14#define ALI_MP_LOCAL_BOARD_H
15
16#include <TNamed.h>
17
18#include "AliMpArrayI.h"
19
20class TString;
21
22class AliMpLocalBoard : public TNamed
23{
24
25 public:
26 AliMpLocalBoard(Int_t id, const Char_t* name, Int_t slot);
27 AliMpLocalBoard(TRootIOCtor* /*ioCtor*/);
28 virtual ~AliMpLocalBoard();
29
30 // detElem
31 Bool_t AddDE(Int_t detElemId);
32 Int_t GetNofDEs() const;
33 Int_t GetDEId(Int_t index) const;
34 Int_t GetDEIdByChamber(Int_t chamberId) const;
35 Bool_t HasDEId(Int_t detElemId) const;
36
37 // get methods
38 //
39 /// Return the identifier (unique)
40 Int_t GetId() const {return fId;}
41 /// Return the slot Identifier in the given crate
42 Int_t GetSlot() const {return fSlot;}
43
44 // Switches
45 //
46 Bool_t AddSwitch(Int_t swit);
47 Int_t GetNofSwitches() const;
48 Int_t GetSwitch(Int_t index) const;
49
50
51 // Transverse connector
52 //
53 /// Set transverse connector
54 void SetTC(Bool_t connect) {fTC = connect;}
55 /// Return transverse connector
56 Bool_t GetTC() const {return fTC;}
57
58 // Crate name
59 //
60 /// Set crate name
61 void SetCrate(TString name) {fCrate = name;}
62 /// Return crate name
63 TString GetCrate() const {return fCrate;}
64
65 // Notify
66 //
67 /// Set notified flag (not copy card)
68 void SetNotified(Bool_t notify) {fNotified = notify;}
69 /// Return notified flag (not copy card)
70 Bool_t IsNotified() const {return fNotified;}
71
72 // given position (line, col)
73 AliMpIntPair GetPosition() const;
74
75
76 private:
77 /// Not implemented
78 AliMpLocalBoard();
79 /// Not implemented
80 AliMpLocalBoard(const AliMpLocalBoard& src);
81 /// Not implemented
82 AliMpLocalBoard& operator = (const AliMpLocalBoard& src) ;
83
84 Int_t GetIndex(Int_t chamberId) const;
85
86 Int_t fId; ///< Identifier (unique)
87 Int_t fSlot; ///< Slot Identifier in the given crate
88
89 Bool_t fTC; ///< Transverse connector
90 TString fCrate; ///< Crate name
91 AliMpArrayI fSwitches; ///< switches
92 Bool_t fNotified; ///< notified flag (not copy card)
93 AliMpArrayI fDEId; ///< list of Detection element to which this local board is connected
94
95 ClassDef(AliMpLocalBoard,1) //utility class for the motif type
96};
97
98
99#endif