]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONDarcHeader.h
Using a conservative 3% estimate for the K0s signal extraction systematics. Using...
[u/mrichter/AliRoot.git] / MUON / AliMUONDarcHeader.h
index 9503a12f52332203362e1737199579a9afb03fcf..25ac36bfdd1c8cc3961783a86ac608a708a690dd 100644 (file)
@@ -20,6 +20,7 @@ class AliMUONDarcHeader : public TObject {
  
 public:
    AliMUONDarcHeader();
+   AliMUONDarcHeader(TRootIOCtor* dummy);
    AliMUONDarcHeader(const AliMUONDarcHeader& event);
    AliMUONDarcHeader& operator=(const AliMUONDarcHeader& event);
 
@@ -29,7 +30,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  
@@ -39,13 +40,14 @@ public:
    //GlobalFlag:1, CTP trig:1, DAQ:1, Reg pattern:8;
 
             /// Return event type
-   Bool_t  GetEventType()  const {return (fWord &  0x40000000);}
+   //Bool_t  GetEventType()  const {return (fWord &  0x40000000);}
+   Bool_t  GetEventType() const;
             /// Return Darc type
    UChar_t GetDarcType()   const {return (UChar_t)(fWord >> 24) &  0x7;}
             /// 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
@@ -60,7 +62,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;}
 
@@ -72,7 +74,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
@@ -118,6 +120,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();
 
@@ -137,7 +144,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
@@ -167,8 +174,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