]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONGlobalCrateConfig.h
Coverity fix
[u/mrichter/AliRoot.git] / MUON / AliMUONGlobalCrateConfig.h
index 8cc725fba7a1e2b391015d28f438a33de6c1abc2..639235aac0e64e6fe40b9afc8f627d5a7eb4365b 100644 (file)
@@ -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 <TNamed.h>
 #include <TString.h>
@@ -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;}
@@ -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