]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDarcHeader.h
- fix compilation warnings
[u/mrichter/AliRoot.git] / MUON / AliMUONDarcHeader.h
index c8d879f88174e99c7a07c43a96e23a58b1d5e50d..158dd6cf6de74fb443191de45c042aaecd80865d 100644 (file)
@@ -29,7 +29,7 @@ public:
             /// Return first word
    UInt_t   GetWord()               const {return fWord;}
             /// Return global input
-   Int_t    GetGlobalInput(Int_t n) const {return fGlobalInput[n];}
+   UInt_t   GetGlobalInput(Int_t n) const {return fGlobalInput[n];}
             /// Return global output
    UChar_t  GetGlobalOutput()       const {return (fGlobalOutput & 0xFF);}
             /// Return global config  
@@ -46,7 +46,7 @@ public:
             /// Return serial number
    UChar_t GetSerialNb()   const {return (UChar_t)(fWord >> 20) &  0xF;}
             /// Return version
-   UChar_t GetVersion()    const {return (UChar_t)(fWord >> 13) &  0xFF;}
+   UChar_t GetVersion()    const {return (UChar_t)(fWord >> 12) &  0xFF;}
             /// Return VME trig
    Bool_t  GetVMETrig()    const {return (fWord &  0x800);}
             /// Return global flag
@@ -61,7 +61,7 @@ public:
            /// Set first word
    void    SetWord(UInt_t w) {fWord = w;}
            /// Set global input
-   void    SetGlobalInput(Int_t in, Int_t n) {fGlobalInput[n] = in;}
+   void    SetGlobalInput(UInt_t in, Int_t n) {fGlobalInput[n] = in;}
            /// Set global output
    void    SetGlobalOutput(Int_t out) {fGlobalOutput = out;}
 
@@ -73,7 +73,7 @@ public:
             /// Return header
    UInt_t* GetHeader() {return &fWord;}
             /// Return global input
-   Int_t*  GetGlobalInput()    {return &fGlobalInput[0];}
+   UInt_t* GetGlobalInput()    {return &fGlobalInput[0];}
 
   // DARC get methods
             /// Return DARC L0 received and used
@@ -119,6 +119,11 @@ public:
             /// Return end of global info word
    UInt_t GetEndOfGlobal()   const {return fgkEndOfGlobal;} 
 
+           /// Return default type for DARC def.
+   UInt_t GetDarcDefaultType()   const {return fgkDarcDefaultType;} 
+          /// Return default type for DARC def.
+   UInt_t GetDarcVadohrType()   const {return fgkDarcVadorhType;} 
+
    // set random numbers to fill variable
    void SetScalersNumbers();
 
@@ -138,7 +143,7 @@ public:
  private:
 
    UInt_t    fWord;              ///< first word
-   Int_t     fGlobalInput[4];    ///< global input
+   UInt_t    fGlobalInput[4];    ///< global input
    Int_t     fGlobalOutput;      ///< global ouput
 
    static const Int_t fgkDarcHeaderLength;   ///< darc header length
@@ -168,8 +173,12 @@ public:
    static const UInt_t     fgkEndOfDarc;         ///< end of darc info word
    static const UInt_t     fgkEndOfGlobal;       ///< end of global info word
 
+   static const UInt_t     fgkDarcDefaultType;   ///< default type for DARC def.
+   static const UInt_t     fgkDarcVadorhType;    ///< default type for DARC vadorh
+
+
    TClonesArray* fRegHeaderArray; ///< container for regional header
 
-   ClassDef(AliMUONDarcHeader,1)  // MUON DDL Trigger
+   ClassDef(AliMUONDarcHeader,2)  // MUON DDL Trigger
 };
 #endif