AliRoot Core  3abf5b4 (3abf5b4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONGlobalTriggerBoard.h
Go to the documentation of this file.
1 #ifndef ALIMUONGLOBALTRIGGERBOARD_H
2 #define ALIMUONGLOBALTRIGGERBOARD_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 /* $Id$ */
7 
12 // Author: Rachid Guernane (LPCCFd)
13 
14 #include "AliMUONTriggerBoard.h"
15 
17 {
18  public:
19 
21  AliMUONGlobalTriggerBoard(const char *name, Int_t a);
23 
25  virtual void SetRegionalResponse(UShort_t resp[16]) {for (Int_t i=0; i<16; i++) fRegionalResponse[i] = resp[i];}
26 
27  virtual void Response();
28 
30  virtual UShort_t Algo(UShort_t i, UShort_t j, const char *thres);
31 
33  virtual void Reset() {for (Int_t i=0; i<16; i++) fRegionalResponse[i] = 0;}
34 
36  virtual void Scan(Option_t *option) const;
37 
39  virtual void Resp(Option_t*) const {}
40 
42  void Mask(Int_t index, UInt_t mask);
43 
45  void BuildGlobalInput();
47  void MaskGlobalInput();
49  UInt_t* GetGlobalInput() { return fGlobalInput; }
50 
51  void RecomputeRegional(UInt_t globalInput[4]);
52 
53  private:
54 
55  UShort_t InvertPairBits(Int_t iReg);
56 
57  UShort_t fRegionalResponse[16];
58  UInt_t fGlobalInput[4];
59  UInt_t fMask[4];
60 
61  ClassDef(AliMUONGlobalTriggerBoard,2) //Global trigger board
62 };
63 #endif
virtual void Scan(Option_t *option) const
scan response of regional boards
UInt_t fMask[4]
Mask for the global input.
void BuildGlobalInput()
Build the 4 words (32bits) global input.
virtual void Resp(Option_t *) const
Dummy implementation.
virtual void Response()
virtual method for derivated classes
UShort_t fRegionalResponse[16]
Regional board responses.
Trigger board base class.
void MaskGlobalInput()
Apply masks to global input.
virtual UShort_t Algo(UShort_t i, UShort_t j, const char *thres)
response of the algorithm
void RecomputeRegional(UInt_t globalInput[4])
virtual void Reset()
Reset regional board responses.
UInt_t fGlobalInput[4]
Global input.
virtual void SetRegionalResponse(UShort_t resp[16])
Set regional board responses.
UInt_t * GetGlobalInput()
Global input 4 words (32bits) from regional responses.
void Mask(Int_t index, UInt_t mask)
Set mask for global input (from regional boards)