![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Class that manages the properties of the local board. More...
#include <AliMpLocalBoard.h>
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... | |
AliMpLocalBoard & | operator= (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... | |
Class that manages the properties of the local board.
Definition at line 23 of file AliMpLocalBoard.h.
anonymous enum |
Definition at line 58 of file AliMpLocalBoard.h.
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.
|
virtual |
Destructor
Definition at line 78 of file AliMpLocalBoard.cxx.
|
private |
Not implemented.
|
private |
Not implemented.
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().
|
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().
|
inline |
Return the identifier (unique)
Definition at line 41 of file AliMpLocalBoard.h.
Referenced by AliMpDDLStore::GetLocalBoardId(), AliMUONLocalTriggerBoard::GetNumber(), AliMUONTriggerCircuit::LoadXPos(), AliMUONTriggerCircuit::LoadYPos(), AliMpRegionalTrigger::LocalBoardId(), and AliMpRegionalTrigger::ReadData().
|
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().
|
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().
|
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().
|
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().
|
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 |
given position (line, col)
gives position of the local board in (line, col)
Definition at line 181 of file AliMpLocalBoard.cxx.
Referenced by AliMUONTriggerCircuit::FirstStrip(), AliMpDDLStore::GetNextDEfromLocalBoard(), AliMpDDLStore::GetPreviousDEfromLocalBoard(), AliMUONTriggerCircuit::LoadXPos(), and AliMUONTriggerCircuit::LoadYPos().
|
inline |
Return the slot Identifier in the given crate.
Definition at line 43 of file AliMpLocalBoard.h.
Referenced by AliMUONTriggerCrateStore::ReadFromFile(), and AliMUONTriggerIO::WriteRegionalConfig().
Int_t AliMpLocalBoard::GetSwitch | ( | Int_t | index | ) | const |
Get switch bit wise (return a inteter for backware compatibility)
Return switch bit wise
Definition at line 169 of file AliMpLocalBoard.cxx.
Referenced by AliMUONLocalTriggerBoard::GetSwitch(), AliMUONTriggerDisplay::InitOrDisplayTriggerInfo(), AliMUONTriggerCircuit::LoadXPos(), AliMUONTriggerCircuit::LoadYPos(), AliMUONTriggerQADataMakerRec::MakeRaws(), AliMUONTriggerQADataMakerRec::RawTriggerMatchOutLocal(), AliMUONDigitMaker::TriggerDigits(), and AliMUONTriggerIO::WriteRegionalConfig().
|
inline |
Get switch in a compact way.
Definition at line 55 of file AliMpLocalBoard.h.
|
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().
|
inline |
Return notified flag (not copy card)
Definition at line 85 of file AliMpLocalBoard.h.
Referenced by AliMUONTriggerDisplay::InitOrDisplayTriggerInfo(), AliMUONLocalTriggerBoard::IsNotified(), AliMUONTriggerQADataMakerRec::MakeRaws(), AliMUONDigitMaker::TriggerDigits(), AliMUONTriggerIO::WriteRegionalConfig(), and AliMUONRawWriter::WriteTriggerDDL().
|
private |
Not implemented.
|
inline |
Set crate name.
Definition at line 76 of file AliMpLocalBoard.h.
Referenced by AliMpRegionalTrigger::ReadData().
|
inline |
Set Id from where the X input are copied.
Definition at line 103 of file AliMpLocalBoard.h.
Referenced by AliMpRegionalTrigger::ReadData().
|
inline |
Set Id to where the X input are copied.
Definition at line 105 of file AliMpLocalBoard.h.
Referenced by AliMpRegionalTrigger::ReadData().
|
inline |
Set Id from where the Y input are copied.
Definition at line 107 of file AliMpLocalBoard.h.
Referenced by AliMpRegionalTrigger::ReadData().
|
inline |
Set Id to where the Y input are copied.
Definition at line 109 of file AliMpLocalBoard.h.
Referenced by AliMpRegionalTrigger::ReadData().
|
inline |
Set notified flag (not copy card)
Definition at line 83 of file AliMpLocalBoard.h.
Referenced by AliMpRegionalTrigger::ReadData().
|
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().
|
inline |
Set transverse connector.
Definition at line 69 of file AliMpLocalBoard.h.
Referenced by AliMpRegionalTrigger::ReadData().
|
private |
Crate name.
Definition at line 124 of file AliMpLocalBoard.h.
Referenced by GetCrate(), and SetCrate().
|
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().
|
private |
|
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().
|
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().
|
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().
|
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().
|
private |
notified flag (not copy card)
Definition at line 126 of file AliMpLocalBoard.h.
Referenced by IsNotified(), and SetNotified().
|
private |
Slot Identifier in the given crate.
Definition at line 122 of file AliMpLocalBoard.h.
|
private |
switches in compact way
Definition at line 125 of file AliMpLocalBoard.h.
Referenced by GetSwitch(), and SetSwitch().
|
private |
Transverse connector.
Definition at line 123 of file AliMpLocalBoard.h.