X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONGlobalTriggerBoard.h;h=deca812d902f28709d0a11aaf92a02ad16fdff2e;hb=1d2a91c902e1cde1856e52d9c653bfc9c7cd7777;hp=92c7120a98767bb843aa4ff64533918ae6d2ec18;hpb=41922e78375f8ff3c10997001f461b7d14b26b1a;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONGlobalTriggerBoard.h b/MUON/AliMUONGlobalTriggerBoard.h index 92c7120a987..deca812d902 100644 --- a/MUON/AliMUONGlobalTriggerBoard.h +++ b/MUON/AliMUONGlobalTriggerBoard.h @@ -5,7 +5,11 @@ /* $Id$ */ -//*-- Author: Rachid Guernane (LPCCFd) +/// \ingroup trigger +/// \class AliMUONGlobalTriggerBoard +/// \brief Global trigger board +/// +// Author: Rachid Guernane (LPCCFd) #include "AliMUONTriggerBoard.h" @@ -15,27 +19,41 @@ class AliMUONGlobalTriggerBoard : public AliMUONTriggerBoard AliMUONGlobalTriggerBoard(); AliMUONGlobalTriggerBoard(const char *name, Int_t a); - virtual ~AliMUONGlobalTriggerBoard() {;} - + virtual ~AliMUONGlobalTriggerBoard(); + + /// Set regional board responses virtual void SetRegionalResponse(UShort_t resp[16]) {for (Int_t i=0; i<16; i++) fRegionalResponse[i] = resp[i];} virtual void Response(); - virtual UShort_t Algo(UShort_t i, UShort_t j, char *thres); - + /// response of the algorithm + virtual UShort_t Algo(UShort_t i, UShort_t j, const char *thres); + + /// Reset regional board responses virtual void Reset() {for (Int_t i=0; i<16; i++) fRegionalResponse[i] = 0;} - virtual void Scan(Option_t *option); + /// scan response of regional boards + virtual void Scan(Option_t *option) const; + + /// Dummy implementation + virtual void Resp(Option_t*) const {} - virtual void Resp(Option_t*) {} + /// Set mask for global input (from regional boards) + void Mask(Int_t index, UInt_t mask); - void Mask(Int_t index, UShort_t mask); + /// Build the 4 words (32bits) global input + void BuildGlobalInput(); + /// Apply masks to regional inputs + void MaskRegionalInput(); + /// Global input 4 words (32bits) from regional responses + UInt_t* GetGlobalInput() { return fGlobalInput; } private: - UShort_t fRegionalResponse[16]; - UShort_t fMask[16]; + UShort_t fRegionalResponse[16]; ///< Regional board responses + UInt_t fGlobalInput[4]; ///< Global input + UInt_t fMask[4]; ///< Mask for the global input - ClassDef(AliMUONGlobalTriggerBoard,1) + ClassDef(AliMUONGlobalTriggerBoard,2) //Global trigger board }; #endif