///
/// \author Ch. Finck, Subatech Nantes
-#ifndef ALIMUON_GLOBAL_CRATE_CONFIG_H
-#define ALIMUON_GLOBAL_CRATE_CONFIG_H
+#ifndef ALI_MUON_GLOBAL_CRATE_CONFIG_H
+#define ALI_MUON_GLOBAL_CRATE_CONFIG_H
#include <TNamed.h>
#include <TString.h>
// global crate enable
/// set global crate enbale
- void SetGlobalCrateEnable(UChar_t enable) {fGlobalCrateEnable = enable;}
+ void SetGlobalCrateEnable(UInt_t enable) {fGlobalCrateEnable = enable;}
/// Get global crate enbale
- UChar_t GetGlobalCrateEnable() {return fGlobalCrateEnable;}
+ UInt_t GetGlobalCrateEnable() const {return fGlobalCrateEnable;}
// Jtag
/// Get Jtag board VME address
void SetGlobalRegister(Int_t index, UInt_t reg);
/// Get register word for Global
UInt_t* GetGlobalRegister() {return fGlobalRegisters;}
-
+ /// Set mask for the global input
+ void SetGlobalMask(Int_t index, UInt_t mask);
+ /// Get mask for the global input
+ UInt_t GetGlobalMask(Int_t index) const;
+ /// Indicates if global masks are active on global inputs
+ Bool_t GetMasksOn() const;
+
// fet board
/// Get FET board VME address
ULong_t GetFetVmeAddr() const {return fFetVmeAddr;}
const Char_t* GetFetName() const {return fgkFetName;}
/// Get number of registers for Global
- const Int_t GetGlobalNofRegisters() const {return fgkGlobalNofRegisters;}
+ Int_t GetGlobalNofRegisters() const {return fgkGlobalNofRegisters;}
/// Get number of registers for FET
- const Int_t GetFetNofRegisters() const {return fgkFetNofRegisters;}
+ Int_t GetFetNofRegisters() const {return fgkFetNofRegisters;}
/// Get number of JTag lines
- const Int_t GetJtagNofLines() const {return fgkJtagNofLines;}
+ Int_t GetJtagNofLines() const {return fgkJtagNofLines;}
private:
/// Not implemented
AliMUONGlobalCrateConfig& operator=(const AliMUONGlobalCrateConfig& rhs);
// data members
- UChar_t fGlobalCrateEnable; ///< Global Crate Enable
+ UInt_t fGlobalCrateEnable; ///< Global Crate Enable
ULong_t fJtagVmeAddr; ///< JTag VME address
UInt_t fJtagClockDiv; ///< Clock Divider number for JTag
UInt_t fJtagRxPhase; ///< Rx phase number for JTag
static const Int_t fgkFetNofRegisters; ///< Number of registers for Fet
static const Int_t fgkJtagNofLines; ///< Number of lines for Jtag
- ClassDef(AliMUONGlobalCrateConfig,2)
+ ClassDef(AliMUONGlobalCrateConfig,3)
};
#endif