]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONRegionalTriggerBoard.h
First big commit of the mchview program and its accompanying library,
[u/mrichter/AliRoot.git] / MUON / AliMUONRegionalTriggerBoard.h
1 #ifndef ALIMUONREGIONALTRIGGERBOARD_H
2 #define ALIMUONREGIONALTRIGGERBOARD_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
8 /// \ingroup trigger
9 /// \class AliMUONRegionalTriggerBoard
10 /// \brief Regional trigger - real HW algorithm is implemented
11 ///
12 //  Author: Rachid Guernane (LPCCFd)
13
14 #include "AliMUONTriggerBoard.h"
15
16 class AliMUONRegionalTriggerBoard : public AliMUONTriggerBoard
17 {
18    public: 
19       AliMUONRegionalTriggerBoard();  
20       AliMUONRegionalTriggerBoard(const char *name, Int_t a);
21       virtual ~AliMUONRegionalTriggerBoard();
22     
23       /// Reset Local trigger inputs
24       virtual void Reset() {for (Int_t i=0; i<16; i++) fLocalResponse[i] = 0;}
25
26       virtual void Scan(Option_t *option) const;
27
28       /// Dummy implementation
29       virtual void Resp(Option_t*) const {}
30
31       virtual void Response();
32
33       /// Set Local trigger inputs
34       virtual void SetLocalResponse(UShort_t val[16]) {for (Int_t i=0;i<16;i++) fLocalResponse[i] = val[i];}
35
36       /// response of the algorithm
37       virtual UShort_t Algo(UShort_t i, UShort_t j, char *thres, Int_t level);
38
39       /// set local boards enable
40       void Mask(UShort_t mask);
41       
42    private:
43       UShort_t fLocalResponse[16]; ///< Local trigger inputs
44       UShort_t fMask;              ///< Entry mask
45       
46       ClassDef(AliMUONRegionalTriggerBoard,1) // Regional trigger - real HW algorithm is implemented
47 };
48 #endif
49
50
51