X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONGlobalCrateConfig.h;h=639235aac0e64e6fe40b9afc8f627d5a7eb4365b;hb=eae882b901ff1acb967b25fc684129f94014eb40;hp=e0d8d50676f1403ee53d19047fcf8df1e71dafe4;hpb=bf4d93eba9e4564036e9948a6c17eadcc34d12e0;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONGlobalCrateConfig.h b/MUON/AliMUONGlobalCrateConfig.h index e0d8d50676f..639235aac0e 100644 --- a/MUON/AliMUONGlobalCrateConfig.h +++ b/MUON/AliMUONGlobalCrateConfig.h @@ -9,8 +9,8 @@ /// /// \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 #include @@ -26,9 +26,9 @@ class AliMUONGlobalCrateConfig : public TNamed { // 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 @@ -151,7 +151,13 @@ class AliMUONGlobalCrateConfig : public TNamed { 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;} @@ -178,11 +184,11 @@ class AliMUONGlobalCrateConfig : public TNamed { 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 @@ -191,7 +197,7 @@ class AliMUONGlobalCrateConfig : public TNamed { 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 @@ -231,7 +237,7 @@ class AliMUONGlobalCrateConfig : public TNamed { 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