/// 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
//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
/// 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;}
/// 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
/// 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();
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
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