AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpLocalBoard Class Reference

Class that manages the properties of the local board. More...

#include <AliMpLocalBoard.h>

Inheritance diagram for AliMpLocalBoard:

Public Types

enum  {
  kX2d, kX2m, kX2u, kOR0,
  kOR1, kENY, kZeroAllYLSB, kZeroDown,
  kZeroMiddle, kZeroUp
}
 

Public Member Functions

 AliMpLocalBoard (Int_t id, const Char_t *name, Int_t slot)
 
 AliMpLocalBoard (TRootIOCtor *)
 
virtual ~AliMpLocalBoard ()
 
Bool_t AddDE (Int_t detElemId)
 
Int_t GetNofDEs () const
 
Int_t GetDEId (Int_t index) const
 
Int_t GetDEIdByChamber (Int_t chamberId) const
 
Bool_t HasDEId (Int_t detElemId) const
 
Int_t GetId () const
 Return the identifier (unique) More...
 
Int_t GetSlot () const
 Return the slot Identifier in the given crate. More...
 
void SetSlot (Int_t slot)
 set slot More...
 
Int_t GetSwitch (Int_t index) const
 Get switch bit wise (return a inteter for backware compatibility) More...
 
void SetSwitch (UInt_t swit)
 Set switch in a compact way. More...
 
UInt_t GetSwitch () const
 Get switch in a compact way. More...
 
void SetTC (Bool_t connect)
 Set transverse connector. More...
 
Bool_t GetTC () const
 Return transverse connector. More...
 
void SetCrate (TString name)
 Set crate name. More...
 
TString GetCrate () const
 Return crate name. More...
 
void SetNotified (Bool_t notify)
 Set notified flag (not copy card) More...
 
Bool_t IsNotified () const
 Return notified flag (not copy card) More...
 
MpPair_t GetPosition () const
 given position (line, col) More...
 
Int_t GetInputXfrom () const
 Get Id from where the X input are copied. More...
 
Int_t GetInputXto () const
 Get Id to where the X input are copied. More...
 
Int_t GetInputYfrom () const
 Get Id from where the Y input are copied. More...
 
Int_t GetInputYto () const
 Get Id to where the Y input are copied. More...
 
void SetInputXfrom (Int_t id)
 Set Id from where the X input are copied. More...
 
void SetInputXto (Int_t id)
 Set Id to where the X input are copied. More...
 
void SetInputYfrom (Int_t id)
 Set Id from where the Y input are copied. More...
 
void SetInputYto (Int_t id)
 Set Id to where the Y input are copied. More...
 

Private Member Functions

 AliMpLocalBoard ()
 Not implemented. More...
 
 AliMpLocalBoard (const AliMpLocalBoard &src)
 Not implemented. More...
 
AliMpLocalBoardoperator= (const AliMpLocalBoard &src)
 Not implemented. More...
 
Int_t GetIndex (Int_t chamberId) const
 

Private Attributes

Int_t fId
 Identifier (unique) More...
 
Int_t fSlot
 Slot Identifier in the given crate. More...
 
Bool_t fTC
 Transverse connector. More...
 
TString fCrate
 Crate name. More...
 
UInt_t fSwitch
 switches in compact way More...
 
Bool_t fNotified
 notified flag (not copy card) More...
 
AliMpArrayI fDEId
 list of Detection element to which this local board is connected More...
 
Int_t fInputXfrom
 local id of x3-4 inputs copied from (zero: not copied) More...
 
Int_t fInputXto
 local id of x3-4 inputs copied to (zero: not copied) More...
 
Int_t fInputYfrom
 local id of y1-4 inputs copied from (zero: not copied) More...
 
Int_t fInputYto
 local id of y1-4 inputs copied to (zero: not copied) More...
 

Detailed Description

Class that manages the properties of the local board.

Author
Ch. Finck; Subatech Nantes

Definition at line 23 of file AliMpLocalBoard.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kX2d 
kX2m 
kX2u 

(1) indicate a change of strip pitch in Y circuit

kOR0 
kOR1 

taking into account the different segmentation in Y from MT1 to MT2

kENY 

(0) enable communication in Y to n+/-1 board via tranverse connector, (1) disable

kZeroAllYLSB 

(1) reset the LSB for special configuration of board RC2L5B4 & RC2L6B1

kZeroDown 

(0) information is expected from n-1 board for X input, (1) not

kZeroMiddle 

(0) always, not used

kZeroUp 

Definition at line 58 of file AliMpLocalBoard.h.

Constructor & Destructor Documentation

AliMpLocalBoard::AliMpLocalBoard ( Int_t  id,
const Char_t *  name,
Int_t  slot 
)

Default constructor

Definition at line 41 of file AliMpLocalBoard.cxx.

AliMpLocalBoard::AliMpLocalBoard ( TRootIOCtor *  )

Root IO constructor

Definition at line 59 of file AliMpLocalBoard.cxx.

AliMpLocalBoard::~AliMpLocalBoard ( )
virtual

Destructor

Definition at line 78 of file AliMpLocalBoard.cxx.

AliMpLocalBoard::AliMpLocalBoard ( )
private

Not implemented.

AliMpLocalBoard::AliMpLocalBoard ( const AliMpLocalBoard src)
private

Not implemented.

Member Function Documentation

Bool_t AliMpLocalBoard::AddDE ( Int_t  detElemId)

Add detection element with given detElemId. Return true if the detection element was added

Definition at line 110 of file AliMpLocalBoard.cxx.

Referenced by AliMpRegionalTrigger::ReadData().

TString AliMpLocalBoard::GetCrate ( ) const
inline

Return crate name.

Definition at line 78 of file AliMpLocalBoard.h.

Referenced by AliMUONLocalTriggerBoard::GetCrate().

Int_t AliMpLocalBoard::GetDEId ( Int_t  index) const

Return the detection element by index (in loop)

Definition at line 136 of file AliMpLocalBoard.cxx.

Referenced by AliMpDDLStore::SetTriggerDDLs(), and AliMUONTriggerIO::WriteRegionalConfig().

Int_t AliMpLocalBoard::GetDEIdByChamber ( Int_t  chamberId) const

Return the detection element by index (in loop)

Definition at line 144 of file AliMpLocalBoard.cxx.

Referenced by AliMpDDLStore::GetDEfromLocalBoard().

Int_t AliMpLocalBoard::GetIndex ( Int_t  chamberId) const
private

Return the index from chamver Id. chamberId could range from 10-13 in absolute value chamberId could also range from 0-3 in relative value

Definition at line 85 of file AliMpLocalBoard.cxx.

Referenced by GetDEIdByChamber().

Int_t AliMpLocalBoard::GetInputXfrom ( ) const
inline

Get Id from where the X input are copied.

Definition at line 94 of file AliMpLocalBoard.h.

Referenced by AliMUONDigitMaker::TriggerDigits(), AliMUONTriggerIO::WriteRegionalConfig(), and AliMUONRawWriter::WriteTriggerDDL().

Int_t AliMpLocalBoard::GetInputXto ( ) const
inline

Get Id to where the X input are copied.

Definition at line 96 of file AliMpLocalBoard.h.

Referenced by AliMUONTriggerElectronics::Feed(), and AliMUONTriggerIO::WriteRegionalConfig().

Int_t AliMpLocalBoard::GetInputYfrom ( ) const
inline

Get Id from where the Y input are copied.

Definition at line 98 of file AliMpLocalBoard.h.

Referenced by AliMUONTriggerIO::WriteRegionalConfig(), and AliMUONRawWriter::WriteTriggerDDL().

Int_t AliMpLocalBoard::GetInputYto ( ) const
inline

Get Id to where the Y input are copied.

Definition at line 100 of file AliMpLocalBoard.h.

Referenced by AliMUONTriggerIO::WriteRegionalConfig().

Int_t AliMpLocalBoard::GetNofDEs ( ) const

Return the number of detection elements connected to this crate

Definition at line 128 of file AliMpLocalBoard.cxx.

Referenced by AliMpDDLStore::SetTriggerDDLs(), and AliMUONTriggerIO::WriteRegionalConfig().

MpPair_t AliMpLocalBoard::GetPosition ( ) const
Int_t AliMpLocalBoard::GetSlot ( ) const
inline

Return the slot Identifier in the given crate.

Definition at line 43 of file AliMpLocalBoard.h.

Referenced by AliMUONTriggerCrateStore::ReadFromFile(), and AliMUONTriggerIO::WriteRegionalConfig().

UInt_t AliMpLocalBoard::GetSwitch ( ) const
inline

Get switch in a compact way.

Definition at line 55 of file AliMpLocalBoard.h.

Bool_t AliMpLocalBoard::GetTC ( ) const
inline

Return transverse connector.

Definition at line 71 of file AliMpLocalBoard.h.

Referenced by AliMUONLocalTriggerBoard::GetTC(), and AliMUONTriggerIO::WriteRegionalConfig().

Bool_t AliMpLocalBoard::HasDEId ( Int_t  detElemId) const

Return true if the detection element Id is present

Definition at line 152 of file AliMpLocalBoard.cxx.

Referenced by AddDE().

AliMpLocalBoard& AliMpLocalBoard::operator= ( const AliMpLocalBoard src)
private

Not implemented.

void AliMpLocalBoard::SetCrate ( TString  name)
inline

Set crate name.

Definition at line 76 of file AliMpLocalBoard.h.

Referenced by AliMpRegionalTrigger::ReadData().

void AliMpLocalBoard::SetInputXfrom ( Int_t  id)
inline

Set Id from where the X input are copied.

Definition at line 103 of file AliMpLocalBoard.h.

Referenced by AliMpRegionalTrigger::ReadData().

void AliMpLocalBoard::SetInputXto ( Int_t  id)
inline

Set Id to where the X input are copied.

Definition at line 105 of file AliMpLocalBoard.h.

Referenced by AliMpRegionalTrigger::ReadData().

void AliMpLocalBoard::SetInputYfrom ( Int_t  id)
inline

Set Id from where the Y input are copied.

Definition at line 107 of file AliMpLocalBoard.h.

Referenced by AliMpRegionalTrigger::ReadData().

void AliMpLocalBoard::SetInputYto ( Int_t  id)
inline

Set Id to where the Y input are copied.

Definition at line 109 of file AliMpLocalBoard.h.

Referenced by AliMpRegionalTrigger::ReadData().

void AliMpLocalBoard::SetNotified ( Bool_t  notify)
inline

Set notified flag (not copy card)

Definition at line 83 of file AliMpLocalBoard.h.

Referenced by AliMpRegionalTrigger::ReadData().

void AliMpLocalBoard::SetSlot ( Int_t  slot)
inline

set slot

Definition at line 46 of file AliMpLocalBoard.h.

void AliMpLocalBoard::SetSwitch ( UInt_t  swit)

Set switch in a compact way.

set compact switch

Definition at line 160 of file AliMpLocalBoard.cxx.

Referenced by AliMpRegionalTrigger::ReadData().

void AliMpLocalBoard::SetTC ( Bool_t  connect)
inline

Set transverse connector.

Definition at line 69 of file AliMpLocalBoard.h.

Referenced by AliMpRegionalTrigger::ReadData().

Member Data Documentation

TString AliMpLocalBoard::fCrate
private

Crate name.

Definition at line 124 of file AliMpLocalBoard.h.

Referenced by GetCrate(), and SetCrate().

AliMpArrayI AliMpLocalBoard::fDEId
private

list of Detection element to which this local board is connected

Definition at line 127 of file AliMpLocalBoard.h.

Referenced by AddDE(), GetDEId(), GetDEIdByChamber(), GetNofDEs(), and HasDEId().

Int_t AliMpLocalBoard::fId
private

Identifier (unique)

Definition at line 121 of file AliMpLocalBoard.h.

Referenced by GetId().

Int_t AliMpLocalBoard::fInputXfrom
private

local id of x3-4 inputs copied from (zero: not copied)

Definition at line 128 of file AliMpLocalBoard.h.

Referenced by GetInputXfrom(), and SetInputXfrom().

Int_t AliMpLocalBoard::fInputXto
private

local id of x3-4 inputs copied to (zero: not copied)

Definition at line 129 of file AliMpLocalBoard.h.

Referenced by GetInputXto(), and SetInputXto().

Int_t AliMpLocalBoard::fInputYfrom
private

local id of y1-4 inputs copied from (zero: not copied)

Definition at line 130 of file AliMpLocalBoard.h.

Referenced by GetInputYfrom(), and SetInputYfrom().

Int_t AliMpLocalBoard::fInputYto
private

local id of y1-4 inputs copied to (zero: not copied)

Definition at line 131 of file AliMpLocalBoard.h.

Referenced by GetInputYto(), and SetInputYto().

Bool_t AliMpLocalBoard::fNotified
private

notified flag (not copy card)

Definition at line 126 of file AliMpLocalBoard.h.

Referenced by IsNotified(), and SetNotified().

Int_t AliMpLocalBoard::fSlot
private

Slot Identifier in the given crate.

Definition at line 122 of file AliMpLocalBoard.h.

Referenced by GetSlot(), and SetSlot().

UInt_t AliMpLocalBoard::fSwitch
private

switches in compact way

Definition at line 125 of file AliMpLocalBoard.h.

Referenced by GetSwitch(), and SetSwitch().

Bool_t AliMpLocalBoard::fTC
private

Transverse connector.

Definition at line 123 of file AliMpLocalBoard.h.

Referenced by GetTC(), and SetTC().


The documentation for this class was generated from the following files: