AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpLocalBoard.h
Go to the documentation of this file.
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 
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 #include "AliMpEncodePair.h"
20 
21 class TString;
22 
23 class AliMpLocalBoard : public TNamed
24 {
25 
26  public:
27  AliMpLocalBoard(Int_t id, const Char_t* name, Int_t slot);
28  AliMpLocalBoard(TRootIOCtor* /*ioCtor*/);
29  virtual ~AliMpLocalBoard();
30 
31  // detElem
32  Bool_t AddDE(Int_t detElemId);
33  Int_t GetNofDEs() const;
34  Int_t GetDEId(Int_t index) const;
35  Int_t GetDEIdByChamber(Int_t chamberId) const;
36  Bool_t HasDEId(Int_t detElemId) const;
37 
38  // get methods
39  //
41  Int_t GetId() const {return fId;}
43  Int_t GetSlot() const {return fSlot;}
44 
46  void SetSlot(Int_t slot) {fSlot = slot;}
47 
48  // Switches
49  //
51  Int_t GetSwitch(Int_t index) const;
53  void SetSwitch(UInt_t swit);
55  UInt_t GetSwitch() const {return fSwitch;}
56 
57  // switch enum for local board (see PRR, chpt: 2.4.4)
58  enum {kX2d, kX2m, kX2u,
60  kENY,
64  kZeroUp };
65 
66  // Transverse connector
67  //
69  void SetTC(Bool_t connect) {fTC = connect;}
71  Bool_t GetTC() const {return fTC;}
72 
73  // Crate name
74  //
76  void SetCrate(TString name) {fCrate = name;}
78  TString GetCrate() const {return fCrate;}
79 
80  // Notify
81  //
83  void SetNotified(Bool_t notify) {fNotified = notify;}
85  Bool_t IsNotified() const {return fNotified;}
86 
87 
89  MpPair_t GetPosition() const;
90 
91  // Id to be copy to or from
92 
94  Int_t GetInputXfrom() const {return fInputXfrom;}
96  Int_t GetInputXto() const {return fInputXto;}
98  Int_t GetInputYfrom() const {return fInputYfrom;}
100  Int_t GetInputYto() const {return fInputYto;}
101 
103  void SetInputXfrom(Int_t id) {fInputXfrom = id;}
105  void SetInputXto(Int_t id) {fInputXto = id;}
107  void SetInputYfrom(Int_t id) {fInputYfrom = id;}
109  void SetInputYto(Int_t id) {fInputYto = id;}
110 
111  private:
113  AliMpLocalBoard();
115  AliMpLocalBoard(const AliMpLocalBoard& src);
118 
119  Int_t GetIndex(Int_t chamberId) const;
120 
121  Int_t fId;
122  Int_t fSlot;
123  Bool_t fTC;
124  TString fCrate;
125  UInt_t fSwitch;
126  Bool_t fNotified;
128  Int_t fInputXfrom;
129  Int_t fInputXto;
130  Int_t fInputYfrom;
131  Int_t fInputYto;
132 
133  ClassDef(AliMpLocalBoard,3) //utility class for the motif type
134 };
135 
136 
137 #endif
TString GetCrate() const
Return crate name.
void SetInputYto(Int_t id)
Set Id to where the Y input are copied.
Bool_t AddDE(Int_t detElemId)
Bool_t GetTC() const
Return transverse connector.
Int_t GetIndex(Int_t chamberId) const
Bool_t IsNotified() const
Return notified flag (not copy card)
Int_t fInputXfrom
local id of x3-4 inputs copied from (zero: not copied)
Int_t GetId() const
Return the identifier (unique)
UInt_t fSwitch
switches in compact way
Int_t GetInputYto() const
Get Id to where the Y input are copied.
Bool_t fNotified
notified flag (not copy card)
AliMpLocalBoard & operator=(const AliMpLocalBoard &src)
Not implemented.
Bool_t HasDEId(Int_t detElemId) const
Int_t GetInputYfrom() const
Get Id from where the Y input are copied.
void SetInputXto(Int_t id)
Set Id to where the X input are copied.
void SetTC(Bool_t connect)
Set transverse connector.
TString fCrate
Crate name.
Int_t GetNofDEs() const
Class that manages the properties of the local board.
Bool_t fTC
Transverse connector.
Int_t GetDEId(Int_t index) const
void SetNotified(Bool_t notify)
Set notified flag (not copy card)
Int_t fId
Identifier (unique)
Int_t fInputXto
local id of x3-4 inputs copied to (zero: not copied)
Int_t fSlot
Slot Identifier in the given crate.
Int_t fInputYto
local id of y1-4 inputs copied to (zero: not copied)
Int_t GetInputXto() const
Get Id to where the X input are copied.
AliMpArrayI fDEId
list of Detection element to which this local board is connected
void SetInputXfrom(Int_t id)
Set Id from where the X input are copied.
void SetCrate(TString name)
Set crate name.
MpPair_t GetPosition() const
given position (line, col)
Int_t fInputYfrom
local id of y1-4 inputs copied from (zero: not copied)
Int_t GetSlot() const
Return the slot Identifier in the given crate.
(0) information is expected from n-1 board for X input, (1) not
Int_t GetDEIdByChamber(Int_t chamberId) const
(0) always, not used
void SetSwitch(UInt_t swit)
Set switch in a compact way.
void SetInputYfrom(Int_t id)
Set Id from where the Y input are copied.
AliMpLocalBoard()
Not implemented.
taking into account the different segmentation in Y from MT1 to MT2
Helper class for sorted integer array.
Definition: AliMpArrayI.h:21
UInt_t GetSwitch() const
Get switch in a compact way.
void SetSlot(Int_t slot)
set slot
Int_t MpPair_t
(1) indicate a change of strip pitch in Y circuit
(0) enable communication in Y to n+/-1 board via tranverse connector, (1) disable ...
Int_t GetInputXfrom() const
Get Id from where the X input are copied.
virtual ~AliMpLocalBoard()
(1) reset the LSB for special configuration of board RC2L5B4 & RC2L6B1