]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONTriggerUtilities.h
Printf replacing AliInfo to solve savannah ticket #93800
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerUtilities.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 /// \ingroup core
5 /// \class AliMUONTriggerUtilities
6 /// \brief Utilities for trigger (check if pad is masked)
7 ///
8 //  Author Diego Stocco
9
10 #ifndef ALIMUONTRIGGERUTILITIES_H
11 #define ALIMUONTRIGGERUTILITIES_H
12
13 #include "TObject.h"
14 #include "TArrayI.h"
15
16 class AliMUONCalibrationData;
17 class AliMUONVDigit;
18 class AliMpPad;
19 class AliMUONVDigitStore;
20
21 class AliMUONTriggerUtilities : public TObject
22 {
23 public:
24   AliMUONTriggerUtilities(AliMUONCalibrationData* calibData);
25   ~AliMUONTriggerUtilities();
26   
27   Bool_t IsMasked(const AliMUONVDigit& digit) const;
28   Bool_t IsMasked(const AliMpPad& pad, Int_t detElemId, Int_t cathode) const;
29   Bool_t IsMasked(Int_t detElemId, Int_t cathode, Int_t localCircuit, Int_t strip) const;
30   AliMUONVDigitStore* GetMaskedDigits() const { return fMaskedDigitsStore; }
31
32 private:
33   /// Not implemented
34   AliMUONTriggerUtilities(const AliMUONTriggerUtilities& other);
35   /// Not implemented
36   AliMUONTriggerUtilities& operator=(const AliMUONTriggerUtilities& other);
37   
38   Bool_t Init();
39   Int_t GetArrayIndex(Int_t cathode, Int_t trigCh, Int_t localCircuit) const;
40   
41   AliMUONCalibrationData* fCalibrationData; //!< pointer to access calib parameters
42   TArrayI fTriggerStatusMap; //!< Trigger masks
43   AliMUONVDigitStore* fMaskedDigitsStore; //!< Masked digits store
44   
45   ClassDef(AliMUONTriggerUtilities,0) // MUON Trigger utilities
46 };
47
48 #endif