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

Global trigger board. More...

#include <AliMUONGlobalTriggerBoard.h>

Inheritance diagram for AliMUONGlobalTriggerBoard:

Public Member Functions

 AliMUONGlobalTriggerBoard ()
 
 AliMUONGlobalTriggerBoard (const char *name, Int_t a)
 
virtual ~AliMUONGlobalTriggerBoard ()
 
virtual void SetRegionalResponse (UShort_t resp[16])
 Set regional board responses. More...
 
virtual void Response ()
 virtual method for derivated classes More...
 
virtual UShort_t Algo (UShort_t i, UShort_t j, const char *thres)
 response of the algorithm More...
 
virtual void Reset ()
 Reset regional board responses. More...
 
virtual void Scan (Option_t *option) const
 scan response of regional boards More...
 
virtual void Resp (Option_t *) const
 Dummy implementation. More...
 
void Mask (Int_t index, UInt_t mask)
 Set mask for global input (from regional boards) More...
 
void BuildGlobalInput ()
 Build the 4 words (32bits) global input. More...
 
void MaskGlobalInput ()
 Apply masks to global input. More...
 
UInt_t * GetGlobalInput ()
 Global input 4 words (32bits) from regional responses. More...
 
void RecomputeRegional (UInt_t globalInput[4])
 
- 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)
 

Private Member Functions

UShort_t InvertPairBits (Int_t iReg)
 

Private Attributes

UShort_t fRegionalResponse [16]
 Regional board responses. More...
 
UInt_t fGlobalInput [4]
 Global input. More...
 
UInt_t fMask [4]
 Mask for the global input. More...
 

Additional Inherited Members

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

Detailed Description

Global trigger board.

Global trigger implementation:

  • inputs are regional responses
  • output is a 12-bit word
  • 4 bits per trigger level
Author
Rachid Guernane (LPCCFd), Corrected by Christian Finck (Subatech)

Definition at line 16 of file AliMUONGlobalTriggerBoard.h.

Constructor & Destructor Documentation

AliMUONGlobalTriggerBoard::AliMUONGlobalTriggerBoard ( )

Default constructor

Definition at line 40 of file AliMUONGlobalTriggerBoard.cxx.

AliMUONGlobalTriggerBoard::AliMUONGlobalTriggerBoard ( const char *  name,
Int_t  a 
)

Standard constructor

Definition at line 50 of file AliMUONGlobalTriggerBoard.cxx.

AliMUONGlobalTriggerBoard::~AliMUONGlobalTriggerBoard ( )
virtual

Destructor

Definition at line 60 of file AliMUONGlobalTriggerBoard.cxx.

Member Function Documentation

UShort_t AliMUONGlobalTriggerBoard::Algo ( UShort_t  i,
UShort_t  j,
const char *  thres 
)
virtual

response of the algorithm

global trigger algorithm a ,b = reg response = Hpt (+|-|us|ls) | Lpt (+|-|us|ls)

Definition at line 142 of file AliMUONGlobalTriggerBoard.cxx.

Referenced by Response().

void AliMUONGlobalTriggerBoard::BuildGlobalInput ( )

Build the 4 words (32bits) global input.

build the 4 words (32bits) global input from the regional responses the order of regional responses is: 1R, 2R, 2-3R, 3R, 4R, 5R, 6R, 7R, 1L, 2L, 2-3L, 3L, 4L, 5L, 6L, 7L

Definition at line 195 of file AliMUONGlobalTriggerBoard.cxx.

Referenced by Response().

UInt_t* AliMUONGlobalTriggerBoard::GetGlobalInput ( )
inline

Global input 4 words (32bits) from regional responses.

Definition at line 49 of file AliMUONGlobalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::Digits2Trigger().

UShort_t AliMUONGlobalTriggerBoard::InvertPairBits ( Int_t  iReg)
private

invert "pair" bits in regional response [+, -, US, LS] becomes [+, -, LS, US]

Definition at line 301 of file AliMUONGlobalTriggerBoard.cxx.

Referenced by BuildGlobalInput(), and RecomputeRegional().

void AliMUONGlobalTriggerBoard::Mask ( Int_t  index,
UInt_t  mask 
)

Set mask for global input (from regional boards)

mask global trigger board input index with value mask

Definition at line 66 of file AliMUONGlobalTriggerBoard.cxx.

Referenced by AliMUONTriggerElectronics::LoadMasks(), AliMUONTriggerQADataMakerRec::RawTriggerInGlobal2OutGlobal(), and ReCalcGlobalTrigger().

void AliMUONGlobalTriggerBoard::MaskGlobalInput ( )

Apply masks to global input.

Apply masks to global input and recalculate regional inputs before applying the global response

Definition at line 225 of file AliMUONGlobalTriggerBoard.cxx.

Referenced by Response().

void AliMUONGlobalTriggerBoard::RecomputeRegional ( UInt_t  globalInput[4])

Recomput regional response from global input

Definition at line 241 of file AliMUONGlobalTriggerBoard.cxx.

Referenced by MaskGlobalInput(), and AliMUONTriggerQADataMakerRec::RawTriggerInGlobal2OutGlobal().

virtual void AliMUONGlobalTriggerBoard::Reset ( void  )
inlinevirtual

Reset regional board responses.

Implements AliMUONTriggerBoard.

Definition at line 33 of file AliMUONGlobalTriggerBoard.h.

Referenced by AliMUONTriggerQADataMakerRec::RawTriggerInGlobal2OutGlobal(), and ReCalcGlobalTrigger().

virtual void AliMUONGlobalTriggerBoard::Resp ( Option_t *  ) const
inlinevirtual

Dummy implementation.

Implements AliMUONTriggerBoard.

Definition at line 39 of file AliMUONGlobalTriggerBoard.h.

void AliMUONGlobalTriggerBoard::Response ( )
virtual

virtual method for derivated classes

compute the global trigger board response according to the algo() method

Implements AliMUONTriggerBoard.

Definition at line 80 of file AliMUONGlobalTriggerBoard.cxx.

Referenced by AliMUONTriggerElectronics::GlobalResponse(), AliMUONTriggerQADataMakerRec::RawTriggerInGlobal2OutGlobal(), and ReCalcGlobalTrigger().

void AliMUONGlobalTriggerBoard::Scan ( Option_t *  option) const
virtual

scan response of regional boards

print global trigger output

Implements AliMUONTriggerBoard.

Definition at line 265 of file AliMUONGlobalTriggerBoard.cxx.

Referenced by ReCalcGlobalTrigger().

virtual void AliMUONGlobalTriggerBoard::SetRegionalResponse ( UShort_t  resp[16])
inlinevirtual

Set regional board responses.

Definition at line 25 of file AliMUONGlobalTriggerBoard.h.

Referenced by AliMUONTriggerElectronics::GlobalResponse(), and ReCalcGlobalTrigger().

Member Data Documentation

UInt_t AliMUONGlobalTriggerBoard::fGlobalInput[4]
private
UInt_t AliMUONGlobalTriggerBoard::fMask[4]
private

Mask for the global input.

Definition at line 59 of file AliMUONGlobalTriggerBoard.h.

Referenced by AliMUONGlobalTriggerBoard(), Mask(), and MaskGlobalInput().

UShort_t AliMUONGlobalTriggerBoard::fRegionalResponse[16]
private

Regional board responses.

Definition at line 57 of file AliMUONGlobalTriggerBoard.h.

Referenced by AliMUONGlobalTriggerBoard(), InvertPairBits(), RecomputeRegional(), Reset(), Response(), and SetRegionalResponse().


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