/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors are mentioned in the code where appropriate. * * * * Permission to use, copy, modify and distribute this software and its * * documentation strictly for non-commercial purposes is hereby granted * * without fee, provided that the above copyright notice appears in all * * copies and that both the copyright notice and this permission notice * * appear in the supporting documentation. The authors make no claims * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ /* $Id$ */ /// \class AliMUONRegionalTriggerBoard /// Dimuon regional trigger implementation: /// - entry are local board responses /// - output is 12-bit word /// - algorithm is similar to the global one /// \todo Change member functions comments in capital letters to normal text /// /// \author Rachid Guernane (LPCCFd) #include "AliMUONRegionalTriggerBoard.h" #include "AliLog.h" #include "TBits.h" #include /// \cond CLASSIMP ClassImp(AliMUONRegionalTriggerBoard) /// \endcond //___________________________________________ AliMUONRegionalTriggerBoard::AliMUONRegionalTriggerBoard() { /// Default constructor for (Int_t i=0; i<16; i++) fLocalResponse[i] = 0; } //___________________________________________ AliMUONRegionalTriggerBoard::AliMUONRegionalTriggerBoard(const char *name, Int_t a) : AliMUONTriggerBoard(name, a) { /// Standard constructor for (Int_t i=0; i<16; i++) fLocalResponse[i] = 0; } //___________________________________________ AliMUONRegionalTriggerBoard::~AliMUONRegionalTriggerBoard() { /// Destructor } //___________________________________________ void AliMUONRegionalTriggerBoard::Response() { /// RESPONSE IS GIVEN FOLLOWING THE REGIONAL ALGORITHM Int_t t[16]; for (Int_t i=0;i<16;i++) t[i] = fLocalResponse[i] & fMask[i]; Int_t rank = 8; for (Int_t i=0;i<4;i++) { Int_t ip = 0; for (Int_t j=0;j=0 && index < 16 ) { fMask[index]=mask; } else { AliError(Form("Index %d out of bounds (max %d)",index,16)); } }