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

Implementation of local trigger board objects. More...

#include <AliMUONLocalTriggerBoard.h>

Inheritance diagram for AliMUONLocalTriggerBoard:

Public Member Functions

 AliMUONLocalTriggerBoard ()
 
 AliMUONLocalTriggerBoard (AliMpLocalBoard *mpLocalBoard)
 
virtual ~AliMUONLocalTriggerBoard ()
 
Bool_t HasLUT () const
 Return true if LUT is set. More...
 
void SetLUT (AliMUONTriggerLut *lut)
 Set LUT. More...
 
void SetCoinc44 (Int_t coinc44=0)
 Set Coinc 44 (0/1 = coinc34/coinc44) More...
 
virtual void SetbitM (Int_t strip, Int_t cathode, Int_t chamber)
 
virtual void Pattern (const Option_t *option="X Y") const
 
virtual void Reset ()
 virtual method for derivated classes More...
 
virtual void ResetResponse ()
 
virtual UShort_t GetSwitch (Int_t i) const
 Return i-th Switch value. More...
 
virtual Bool_t GetTC () const
 Return Transverse connector. More...
 
virtual Int_t GetNumber () const
 Return Board number. More...
 
virtual Bool_t IsNotified () const
 Is notified (copy boards are not) More...
 
virtual TString GetCrate () const
 Return Crate name. More...
 
virtual void GetXY (UShort_t XY[2][4]) const
 Return XY. More...
 
virtual UShort_t GetXY (Int_t i, Int_t j) const
 Return XY. More...
 
virtual void SetXY (UShort_t XY[2][4])
 Set XY. More...
 
virtual void Conf () const
 
virtual void Response ()
 virtual method for derivated classes More...
 
virtual void Mask (Int_t index, UShort_t value)
 
virtual void TrigX (Int_t ch1q[16], Int_t ch2q[16], Int_t ch3q[32], Int_t ch4q[32])
 
virtual void Sort2x5 (Int_t dev1[6], Int_t dev2[6], Int_t minDev[6], Int_t &dev1GTdev2)
 
virtual void TrigY (Int_t y1[16], Int_t y2[16], Int_t y3[16], Int_t y4[16], Int_t y3u[16], Int_t y3d[16], Int_t y4u[16], Int_t y4d[16])
 
virtual void SetXYU (UShort_t V[2][4])
 Set XYU. More...
 
virtual void GetXYU (UShort_t V[2][4]) const
 Return XYU. More...
 
virtual void SetXYD (UShort_t V[2][4])
 Set XYD. More...
 
virtual void GetXYD (UShort_t V[2][4]) const
 Return XYD. More...
 
virtual void Scan (Option_t *option="") const
 virtual method for derivated classes More...
 
virtual Int_t GetI () const
 
virtual void LocalTrigger ()
 
virtual Int_t Triggered () const
 Return info if Board has triggered. More...
 
virtual Int_t GetStripX11 () const
 Return MT1 X position of the valid road. More...
 
virtual Int_t GetStripY11 () const
 Return MT1 Y position of the valid road. More...
 
virtual Int_t GetDev () const
 Return Deviation. More...
 
virtual Int_t GetSdev () const
 Return Sign of Deviation. More...
 
virtual Int_t GetTrigY () const
 Return Trigger in Y. More...
 
virtual Bool_t IsTrigY () const
 
virtual Bool_t IsTrigX () const
 
 AliMUONLocalTriggerBoard (const AliMUONLocalTriggerBoard &right)
 
AliMUONLocalTriggerBoardoperator= (const AliMUONLocalTriggerBoard &right)
 
virtual Bool_t IsNull () const
 
- Public Member Functions inherited from AliMUONTriggerBoard
 AliMUONTriggerBoard ()
 
 AliMUONTriggerBoard (const char *name, Int_t islot)
 
virtual ~AliMUONTriggerBoard ()
 
virtual UShort_t GetResponse () const
 Return response. More...
 
 AliMUONTriggerBoard (const AliMUONTriggerBoard &rhs)
 
AliMUONTriggerBoardoperator= (const AliMUONTriggerBoard &rhs)
 

Protected Member Functions

virtual void Resp (Option_t *option) const
 local trigger info before ("I") and after ("F") LUT More...
 
virtual void BP (const Option_t *option) const
 display X/Y bp More...
 

Static Protected Attributes

static const Int_t fgkCircuitId [234]
 old numbering (to be removed) More...
 

Private Attributes

AliMpLocalBoardfMpLocalBoard
 pointer to the local board mapping More...
 
UShort_t fXY [2][4]
 Bit pattern. More...
 
UShort_t fXYU [2][4]
 Bit pattern UP. More...
 
UShort_t fXYD [2][4]
 Bit pattern DOWN. More...
 
UShort_t fMask [2][4]
 Mask. More...
 
Int_t fStripX11
 MT1 X position of the valid road. More...
 
Int_t fStripY11
 MT1 Y position of the valid road. More...
 
Int_t fDev
 X deviation as in table 3-1 of Local Trigger Board PRR. More...
 
Int_t fTrigY
 Trigger in Y. More...
 
Int_t fLutLpt [2]
 Low Pt cuts estimated from LUT. More...
 
Int_t fLutHpt [2]
 High Pt cuts estimated from LUT. More...
 
Int_t fOutput
 Board has triggered. More...
 
Int_t fMinDevStrip [5]
 X (from algo) More...
 
Int_t fMinDev [5]
 Dev (from algo) More...
 
Int_t fCoordY [5]
 Y (from algo) More...
 
AliMUONTriggerLutfLUT
 ! Pointer to trigger LUT, that we do not own. More...
 
Int_t fCoinc44
 Coinc 44 (0/1 = coinc34/coinc44) More...
 

Additional Inherited Members

- Protected Attributes inherited from AliMUONTriggerBoard
Int_t fSlot
 SLOT NUMBER IN CRATE. More...
 
UShort_t fResponse
 RESPONSE. More...
 

Detailed Description

Implementation of local trigger board objects.

A local trigger board has as input a bit pattern and returns the local trigger response after comparison w/ a LUT

Todo:
Change member functions comments in capital letters to normal text
Author
Rachid Guernane (LPCCFd)

Definition at line 19 of file AliMUONLocalTriggerBoard.h.

Constructor & Destructor Documentation

AliMUONLocalTriggerBoard::AliMUONLocalTriggerBoard ( )

default constructor

Definition at line 65 of file AliMUONLocalTriggerBoard.cxx.

AliMUONLocalTriggerBoard::AliMUONLocalTriggerBoard ( AliMpLocalBoard mpLocalBoard)

Standard constructor

Definition at line 93 of file AliMUONLocalTriggerBoard.cxx.

AliMUONLocalTriggerBoard::~AliMUONLocalTriggerBoard ( )
virtual

Destructor

Definition at line 203 of file AliMUONLocalTriggerBoard.cxx.

AliMUONLocalTriggerBoard::AliMUONLocalTriggerBoard ( const AliMUONLocalTriggerBoard right)

Copy constructor

Definition at line 121 of file AliMUONLocalTriggerBoard.cxx.

Member Function Documentation

void AliMUONLocalTriggerBoard::BP ( const Option_t *  option) const
protectedvirtual

display X/Y bp

Respect the old printout format

Definition at line 264 of file AliMUONLocalTriggerBoard.cxx.

Referenced by Pattern().

void AliMUONLocalTriggerBoard::Conf ( ) const
virtual

board switches

Definition at line 1221 of file AliMUONLocalTriggerBoard.cxx.

Referenced by Scan().

virtual TString AliMUONLocalTriggerBoard::GetCrate ( ) const
inlinevirtual

Return Crate name.

Definition at line 57 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerGUI::InitBoards().

virtual Int_t AliMUONLocalTriggerBoard::GetDev ( ) const
inlinevirtual

Return Deviation.

Definition at line 110 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::Digits2Trigger().

Int_t AliMUONLocalTriggerBoard::GetI ( ) const
virtual

old numbering

Definition at line 1126 of file AliMUONLocalTriggerBoard.cxx.

Referenced by BP().

virtual Int_t AliMUONLocalTriggerBoard::GetNumber ( ) const
inlinevirtual
virtual Int_t AliMUONLocalTriggerBoard::GetSdev ( ) const
inlinevirtual

Return Sign of Deviation.

Definition at line 113 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::Digits2Trigger().

virtual Int_t AliMUONLocalTriggerBoard::GetStripX11 ( ) const
inlinevirtual

Return MT1 X position of the valid road.

Definition at line 104 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::Digits2Trigger().

virtual Int_t AliMUONLocalTriggerBoard::GetStripY11 ( ) const
inlinevirtual

Return MT1 Y position of the valid road.

Definition at line 107 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::Digits2Trigger().

virtual UShort_t AliMUONLocalTriggerBoard::GetSwitch ( Int_t  i) const
inlinevirtual
virtual Bool_t AliMUONLocalTriggerBoard::GetTC ( ) const
inlinevirtual

Return Transverse connector.

Definition at line 48 of file AliMUONLocalTriggerBoard.h.

Referenced by Conf().

virtual Int_t AliMUONLocalTriggerBoard::GetTrigY ( ) const
inlinevirtual

Return Trigger in Y.

Definition at line 116 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::Digits2Trigger().

virtual void AliMUONLocalTriggerBoard::GetXY ( UShort_t  XY[2][4]) const
inlinevirtual
virtual UShort_t AliMUONLocalTriggerBoard::GetXY ( Int_t  i,
Int_t  j 
) const
inlinevirtual

Return XY.

Definition at line 63 of file AliMUONLocalTriggerBoard.h.

virtual void AliMUONLocalTriggerBoard::GetXYD ( UShort_t  V[2][4]) const
inlinevirtual

Return XYD.

Definition at line 92 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::ModifiedLocalResponse().

virtual void AliMUONLocalTriggerBoard::GetXYU ( UShort_t  V[2][4]) const
inlinevirtual

Return XYU.

Definition at line 86 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::ModifiedLocalResponse().

Bool_t AliMUONLocalTriggerBoard::HasLUT ( ) const
inline

Return true if LUT is set.

Definition at line 29 of file AliMUONLocalTriggerBoard.h.

virtual Bool_t AliMUONLocalTriggerBoard::IsNotified ( ) const
inlinevirtual

Is notified (copy boards are not)

Definition at line 54 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::LocalResponse().

Bool_t AliMUONLocalTriggerBoard::IsNull ( ) const
virtual

Check if board has fired strips in the first station

Definition at line 1393 of file AliMUONLocalTriggerBoard.cxx.

Referenced by Response().

Bool_t AliMUONLocalTriggerBoard::IsTrigX ( ) const
virtual

Return the response of bending plane

Definition at line 1377 of file AliMUONLocalTriggerBoard.cxx.

Referenced by LocalTrigger(), and AliMUONTriggerElectronics::ModifiedLocalResponse().

Bool_t AliMUONLocalTriggerBoard::IsTrigY ( ) const
virtual

Return the response of non-bending plane

Definition at line 1362 of file AliMUONLocalTriggerBoard.cxx.

Referenced by LocalTrigger(), and AliMUONTriggerElectronics::ModifiedLocalResponse().

void AliMUONLocalTriggerBoard::LocalTrigger ( )
virtual

L0 trigger after LUT

Definition at line 1075 of file AliMUONLocalTriggerBoard.cxx.

Referenced by Response().

void AliMUONLocalTriggerBoard::Mask ( Int_t  index,
UShort_t  value 
)
virtual

set mask

Definition at line 1178 of file AliMUONLocalTriggerBoard.cxx.

Referenced by AliMUONTriggerElectronics::LoadMasks().

AliMUONLocalTriggerBoard & AliMUONLocalTriggerBoard::operator= ( const AliMUONLocalTriggerBoard right)

Assigment operator; equal operator

Definition at line 158 of file AliMUONLocalTriggerBoard.cxx.

void AliMUONLocalTriggerBoard::Pattern ( const Option_t *  option = "X Y") const
virtual

print bit pattern

Definition at line 251 of file AliMUONLocalTriggerBoard.cxx.

Referenced by Scan().

void AliMUONLocalTriggerBoard::Reset ( )
virtual

virtual method for derivated classes

reset board

Implements AliMUONTriggerBoard.

Definition at line 210 of file AliMUONLocalTriggerBoard.cxx.

void AliMUONLocalTriggerBoard::ResetResponse ( )
virtual

reset board response

Definition at line 222 of file AliMUONLocalTriggerBoard.cxx.

Referenced by AliMUONTriggerElectronics::ModifiedLocalResponse(), and Reset().

void AliMUONLocalTriggerBoard::Resp ( Option_t *  option) const
protectedvirtual

local trigger info before ("I") and after ("F") LUT

board I/O

Implements AliMUONTriggerBoard.

Definition at line 1242 of file AliMUONLocalTriggerBoard.cxx.

Referenced by Scan().

void AliMUONLocalTriggerBoard::Response ( )
virtual

virtual method for derivated classes

algo

Implements AliMUONTriggerBoard.

Definition at line 1272 of file AliMUONLocalTriggerBoard.cxx.

Referenced by AliMUONTriggerElectronics::LocalResponse(), and AliMUONTriggerElectronics::ModifiedLocalResponse().

void AliMUONLocalTriggerBoard::Scan ( Option_t *  option = "") const
virtual

virtual method for derivated classes

full dump

Implements AliMUONTriggerBoard.

Definition at line 1195 of file AliMUONLocalTriggerBoard.cxx.

Referenced by AliMUONTriggerElectronics::DumpOS(), and AliMUONTriggerElectronics::Scan().

void AliMUONLocalTriggerBoard::SetbitM ( Int_t  strip,
Int_t  cathode,
Int_t  chamber 
)
virtual

0 .. LBS : N-1 .. MSB

Definition at line 242 of file AliMUONLocalTriggerBoard.cxx.

Referenced by AliMUONTriggerElectronics::Feed().

void AliMUONLocalTriggerBoard::SetCoinc44 ( Int_t  coinc44 = 0)
inline

Set Coinc 44 (0/1 = coinc34/coinc44)

Definition at line 34 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::ModifiedLocalResponse(), and AliMUONTriggerCrateStore::ReadFromFile().

void AliMUONLocalTriggerBoard::SetLUT ( AliMUONTriggerLut lut)
inline

Set LUT.

Definition at line 32 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerCrateStore::ReadFromFile().

virtual void AliMUONLocalTriggerBoard::SetXY ( UShort_t  XY[2][4])
inlinevirtual
virtual void AliMUONLocalTriggerBoard::SetXYD ( UShort_t  V[2][4])
inlinevirtual
virtual void AliMUONLocalTriggerBoard::SetXYU ( UShort_t  V[2][4])
inlinevirtual
void AliMUONLocalTriggerBoard::Sort2x5 ( Int_t  dev1[6],
Int_t  dev2[6],
Int_t  minDev[6],
Int_t &  dev1GTdev2 
)
virtual

returns minimun between dev1 and dev2

Definition at line 828 of file AliMUONLocalTriggerBoard.cxx.

Referenced by TrigX().

virtual Int_t AliMUONLocalTriggerBoard::Triggered ( ) const
inlinevirtual

Return info if Board has triggered.

Definition at line 101 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::ModifiedLocalResponse().

void AliMUONLocalTriggerBoard::TrigX ( Int_t  ch1q[16],
Int_t  ch2q[16],
Int_t  ch3q[32],
Int_t  ch4q[32] 
)
virtual

note : coinc44 = flag 0 or 1 (0 coincidence -> 3/4, 1 coincidence -> 4/4)
------------------------------------------------------—

step # 1 : declustering, reduction DS, calculate sgle & dble

Definition at line 464 of file AliMUONLocalTriggerBoard.cxx.

Referenced by Response().

void AliMUONLocalTriggerBoard::TrigY ( Int_t  y1[16],
Int_t  y2[16],
Int_t  y3[16],
Int_t  y4[16],
Int_t  y3u[16],
Int_t  y3d[16],
Int_t  y4u[16],
Int_t  y4d[16] 
)
virtual

note : resMid = 1 -> cancel
------------------------------------------------------—

step # 1 : prehandling Y

Definition at line 853 of file AliMUONLocalTriggerBoard.cxx.

Referenced by Response().

Member Data Documentation

Int_t AliMUONLocalTriggerBoard::fCoinc44
private

Coinc 44 (0/1 = coinc34/coinc44)

Definition at line 160 of file AliMUONLocalTriggerBoard.h.

Referenced by operator=(), Resp(), SetCoinc44(), TrigX(), and TrigY().

Int_t AliMUONLocalTriggerBoard::fCoordY[5]
private
Int_t AliMUONLocalTriggerBoard::fDev
private

X deviation as in table 3-1 of Local Trigger Board PRR.

Definition at line 147 of file AliMUONLocalTriggerBoard.h.

Referenced by GetDev(), LocalTrigger(), operator=(), ResetResponse(), and Resp().

const Int_t AliMUONLocalTriggerBoard::fgkCircuitId
staticprotected
Initial value:
=
{
111, 121, 131, 141, 151, 161, 171,
211, 212, 221, 222, 231, 232, 241, 242, 251, 252, 261, 262, 271,
311, 312, 321, 322, 331, 332, 341, 342, 351, 352, 361, 362, 371,
411, 412, 413, 421, 422, 423, 424, 431, 432, 433, 434, 441, 442, 451, 452, 461, 462, 471,
521, 522, 523, 524, 531, 532, 533, 534, 541, 542, 551, 552, 561, 562, 571,
611, 612, 613, 621, 622, 623, 624, 631, 632, 633, 634, 641, 642, 651, 652, 661, 662, 671,
711, 712, 721, 722, 731, 732, 741, 742, 751, 752, 761, 762, 771,
811, 812, 821, 822, 831, 832, 841, 842, 851, 852, 861, 862, 871,
911, 921, 931, 941, 951, 961, 971,
-111, -121, -131, -141, -151, -161, -171,
-211, -212, -221, -222, -231, -232, -241, -242, -251, -252, -261, -262, -271,
-311, -312, -321, -322, -331, -332, -341, -342, -351, -352, -361, -362, -371,
-411, -412, -413, -421, -422, -423, -424, -431, -432, -433, -434, -441, -442, -451, -452, -461, -462, -471,
-521, -522, -523, -524, -531, -532, -533, -534, -541, -542, -551, -552, -561, -562, -571,
-611, -612, -613, -621, -622, -623, -624, -631, -632, -633, -634, -641, -642, -651, -652, -661, -662, -671,
-711, -712, -721, -722, -731, -732, -741, -742, -751, -752, -761, -762, -771,
-811, -812, -821, -822, -831, -832, -841, -842, -851, -852, -861, -862, -871,
-911, -921, -931, -941, -951, -961, -971
}

old numbering (to be removed)

Definition at line 129 of file AliMUONLocalTriggerBoard.h.

Referenced by BP(), and GetI().

AliMUONTriggerLut* AliMUONLocalTriggerBoard::fLUT
private

! Pointer to trigger LUT, that we do not own.

Definition at line 159 of file AliMUONLocalTriggerBoard.h.

Referenced by HasLUT(), LocalTrigger(), operator=(), and SetLUT().

Int_t AliMUONLocalTriggerBoard::fLutHpt[2]
private

High Pt cuts estimated from LUT.

Definition at line 151 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONLocalTriggerBoard(), LocalTrigger(), operator=(), ResetResponse(), and Resp().

Int_t AliMUONLocalTriggerBoard::fLutLpt[2]
private

Low Pt cuts estimated from LUT.

Definition at line 150 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONLocalTriggerBoard(), LocalTrigger(), operator=(), ResetResponse(), and Resp().

UShort_t AliMUONLocalTriggerBoard::fMask[2][4]
private

Mask.

Definition at line 141 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONLocalTriggerBoard(), Mask(), operator=(), and SetbitM().

Int_t AliMUONLocalTriggerBoard::fMinDev[5]
private
Int_t AliMUONLocalTriggerBoard::fMinDevStrip[5]
private

X (from algo)

Definition at line 155 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONLocalTriggerBoard(), LocalTrigger(), operator=(), ResetResponse(), Resp(), and TrigX().

AliMpLocalBoard* AliMUONLocalTriggerBoard::fMpLocalBoard
private

pointer to the local board mapping

Definition at line 136 of file AliMUONLocalTriggerBoard.h.

Referenced by GetCrate(), GetNumber(), GetSwitch(), GetTC(), IsNotified(), and operator=().

Int_t AliMUONLocalTriggerBoard::fOutput
private

Board has triggered.

Definition at line 154 of file AliMUONLocalTriggerBoard.h.

Referenced by LocalTrigger(), operator=(), ResetResponse(), Resp(), and Triggered().

Int_t AliMUONLocalTriggerBoard::fStripX11
private

MT1 X position of the valid road.

Definition at line 143 of file AliMUONLocalTriggerBoard.h.

Referenced by GetStripX11(), LocalTrigger(), operator=(), ResetResponse(), and Resp().

Int_t AliMUONLocalTriggerBoard::fStripY11
private

MT1 Y position of the valid road.

Definition at line 145 of file AliMUONLocalTriggerBoard.h.

Referenced by GetStripY11(), LocalTrigger(), operator=(), ResetResponse(), and Resp().

Int_t AliMUONLocalTriggerBoard::fTrigY
private

Trigger in Y.

Definition at line 148 of file AliMUONLocalTriggerBoard.h.

Referenced by GetTrigY(), LocalTrigger(), operator=(), ResetResponse(), and Resp().

UShort_t AliMUONLocalTriggerBoard::fXY[2][4]
private

Bit pattern.

Definition at line 138 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONLocalTriggerBoard(), BP(), GetXY(), IsNull(), operator=(), Reset(), Response(), SetbitM(), and SetXY().

UShort_t AliMUONLocalTriggerBoard::fXYD[2][4]
private

Bit pattern DOWN.

Definition at line 140 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONLocalTriggerBoard(), BP(), GetXYD(), operator=(), Reset(), Response(), and SetXYD().

UShort_t AliMUONLocalTriggerBoard::fXYU[2][4]
private

Bit pattern UP.

Definition at line 139 of file AliMUONLocalTriggerBoard.h.

Referenced by AliMUONLocalTriggerBoard(), BP(), GetXYU(), operator=(), Reset(), Response(), and SetXYU().


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