ROOT logo
AliRoot » MUON » AliMUONRawStreamTriggerHP

class AliMUONRawStreamTriggerHP: public AliMUONVRawStreamTrigger

Function Members (Methods)

public:
AliMUONRawStreamTriggerHP()
AliMUONRawStreamTriggerHP(AliRawReader* rawReader)
virtual~AliMUONRawStreamTriggerHP()
voidTObject::AbstractMethod(const char* method) const
virtual voidAddErrorMessage()
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
const AliMUONRawStreamTriggerHP::AliLocalStruct*CurrentLocalStruct() const
const AliMUONRawStreamTriggerHP::AliRegionalHeader*CurrentRegionalHeader() const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidDisableWarnings()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidAliMUONRawStream::EnabbleErrorLogger()
virtual voidEnableWarnings()
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual voidFirst()
UInt_tGetDarcEoWErrors() const
virtual Int_tGetDDL() const
virtual AliMUONDDLTrigger*GetDDLTrigger() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
const AliMUONRawStreamTriggerHP::AliRegionalHeader*GetFirstRegionalHeader() const
UInt_tGetGlobalEoWErrors() const
const AliMUONRawStreamTriggerHP::AliHeader*GetHeaders() const
virtual const char*TObject::GetIconName() const
UInt_tGetLocalEoWErrors() const
const AliMUONRawStreamTriggerHP::AliLocalStruct*GetLocalStruct(UInt_t reg, UInt_t i) const
UInt_tGetLocalStructCount(UInt_t reg) const
virtual Int_tGetMaxDDL() const
virtual Int_tGetMaxLoc() const
virtual Int_tGetMaxReg() const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual AliRawReader*AliMUONRawStream::GetReader()
UInt_tGetRegEoWErrors() const
const AliMUONRawStreamTriggerHP::AliRegionalHeader*GetRegionalHeader(UInt_t i) const
UInt_tGetRegionalHeaderCount() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
Bool_tHasDarcEoWError() const
Bool_tHasGlobalEoWError() const
virtual ULong_tTObject::Hash() const
Bool_tHasLocalEoWError() const
Bool_tHasRegEoWError() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tIsDone() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tAliMUONRawStream::IsErrorLogger() const
virtual Bool_tIsErrorMessage() const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
const AliMUONRawStreamTriggerHP::AliLocalStruct*Next()
virtual Bool_tNext(UChar_t& id, UChar_t& dec, Bool_t& trigY, UChar_t& yPos, UChar_t& sXDev, UChar_t& xDev, UChar_t& xPos, Bool_t& triggerY, Bool_t& triggerX, TArrayS& xPattern, TArrayS& yPattern)
virtual Bool_tNextDDL()
virtual Bool_tTObject::Notify()
UInt_tNumberOfDarcEoWErrors() const
UInt_tNumberOfGlobalEoWErrors() const
UInt_tNumberOfLocalEoWErrors() const
UInt_tNumberOfRegEoWErrors() const
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetMaxLoc(Int_t loc)
virtual voidSetMaxReg(Int_t reg)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidAliMUONRawStream::SetReader(AliRawReader* rawReader)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidAliMUONRawStream::Swap(UInt_t* buffer, Int_t size) const
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
Bool_tTryRecover() const
voidTryRecover(Bool_t value)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

public:
enum AliMUONVRawStreamTrigger::rawStreamTriggerError { kDarcEoWErr
kGlobalEoWErr
kRegEoWErr
kLocalEoWErr
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
UChar_t*fBuffer!< This is the buffer in which we store the DDL payload read from AliRawReader.
Int_tfBufferSize!< This is the buffer size in bytes of fBuffer.
Int_tfDDL!< The current DDL number being handled.
AliMUONDDLTrigger*fDDLObject!< Temporary DDL object used by GetDDLTrigger() for caching.
AliMUONTriggerDDLDecoder<AliMUONRawStreamTriggerHP::AliDecoderEventHandler>fDecoder!< The decoder for the DDL payload.
Bool_tfDone!< Flag indicating if the iteration is done or not.
Bool_tfHadError!< Flag indicating if there was a decoding error or not.
UInt_tfTotalNumberOfDarcEoWErrors!< The total number of end of DARC word errors since the last call to First().
UInt_tfTotalNumberOfGlobalEoWErrors!< The total number of end of global word errors since the last call to First().
UInt_tfTotalNumberOfLocalEoWErrors!< The total number of end of local word errors since the last call to First().
UInt_tfTotalNumberOfRegEoWErrors!< The total number of end of regional word errors since the last call to First().
static const Int_tfgkMaxDDL!< Maximum number of DDLs
const AliMUONRawStreamTriggerHP::AliLocalStruct*fkCurrentLocalStruct!< The current local trigger structure being handled by Next().

Class Charts

Inheritance Chart:
TObject
AliMUONRawStream
AliMUONVRawStreamTrigger
AliMUONRawStreamTriggerHP

Function documentation

AliMUONRawStreamTriggerHP()
 Default constructor.

AliMUONRawStreamTriggerHP(AliRawReader* rawReader)
 Constructor with AliRawReader as argument.

~AliMUONRawStreamTriggerHP()
 Default destructor which cleans up the memory allocated.

void First()
 Initialise or reset the iterator.
 The first DDL will be found and decoded.
Bool_t NextDDL()
 Read in the next trigger DDL and decode the payload with the
 high performance decoder.
 \return kTRUE if the next DDL was successfully read and kFALSE
    otherwise.
Bool_t IsDone() const
 Indicates whether the iteration is finished or not.
 \return kTRUE if we already read all the digits and kFALSE if not.
Bool_t Next(UChar_t& id, UChar_t& dec, Bool_t& trigY, UChar_t& yPos, UChar_t& sXDev, UChar_t& xDev, UChar_t& xPos, Bool_t& triggerY, Bool_t& triggerX, TArrayS& xPattern, TArrayS& yPattern)
 Advance one step in the iteration. Returns kFALSE if finished.
 If kTRUE is returned then the output parameters are filled with
 the values found in the next local trigger circuit structure.
AliMUONDDLTrigger* GetDDLTrigger() const
 Construct and return a pointer to the DDL payload object.
 \return Pointer to internally constructed AliMUONDDLTrigger object.
         The object is owned by this class and should not be deleted
         by the caller.

 \note This method should not be used just to gain access to the DDL
 payload, unless there is a good reason to have the AliMUONDDLTrigger
 object. For example, if you want to modify the data and then save it
 to another DDL stream. Otherwise it can be an order of magnitude
 faster to access the DDL headers and data with the GetHeaders,
 GetRegionalHeader and GetLocalStruct methods for example.
 Refer to the MUONRawStreamTrigger.C macro to see how to use the fast
 decoder interface optimally.
void SetMaxReg(Int_t reg)
 Set the maximum allowed number of regional cards in the DDL.
void SetMaxLoc(Int_t loc)
 Sets the maximum number of local cards in the DDL.
AliMUONRawStreamTriggerHP()
void AddErrorMessage()
 Nothing is actually done in the AddErrorMessage method because we log
 the error messages as we find them in AliDecoderEventHandler::OnError().
{ }
Bool_t Next(UChar_t& id, UChar_t& dec, Bool_t& trigY, UChar_t& yPos, UChar_t& sXDev, UChar_t& xDev, UChar_t& xPos, Bool_t& triggerY, Bool_t& triggerX, TArrayS& xPattern, TArrayS& yPattern)
 Advance one step in the iteration. Returns false if finished.
Int_t GetMaxDDL() const
 Return maximum number of DDLs.
{ return fgkMaxDDL; }
Int_t GetMaxReg() const
 Return maximum number of regional cards in the DDL.
{ return (Int_t) fDecoder.MaxRegionals(); }
Int_t GetMaxLoc() const
 Return maximum number of local cards in the DDL.
{ return (Int_t) fDecoder.MaxLocals(); }
Int_t GetDDL() const
 Return number of the current DDL being handled in the range [0..1] and -1 if no DDL set.
{ return fDDL - 1; }
Bool_t IsErrorMessage() const
 check error/Warning presence
{ return fHadError; }
void DisableWarnings()
 Set warnings flag to disable warnings on data errors.
{ fDecoder.GetHandler().Warnings(kFALSE); }
void EnableWarnings()
 Set warnings flag to enable warnings on data errors.
{ fDecoder.GetHandler().Warnings(kTRUE); }
UInt_t GetDarcEoWErrors() const
 Get number of end of DARC word errors in the DDL last decoded.
{return fDecoder.GetHandler().GetDarcEoWErrors();}
UInt_t GetGlobalEoWErrors() const
 Get number of end of Global word errors in the DDL last decoded.
{return fDecoder.GetHandler().GetGlobalEoWErrors();}
UInt_t GetRegEoWErrors() const
 Get number of end of regional word errors in the DDL last decoded.
{return fDecoder.GetHandler().GetRegEoWErrors();}
UInt_t GetLocalEoWErrors() const
 Get number of end of local word errors in the DDL last decoded.
{return fDecoder.GetHandler().GetLocalEoWErrors();}
UInt_t NumberOfDarcEoWErrors() const
 Number of end of DARC word errors since First() was called.
UInt_t NumberOfGlobalEoWErrors() const
 Number of end of global word errors since First() was called.
UInt_t NumberOfRegEoWErrors() const
 Number of end of regional word errors since First() was called.
UInt_t NumberOfLocalEoWErrors() const
 Number of end of local word errors since First() was called.
Bool_t HasDarcEoWError() const
 Whether we got any end of DARC word errors or not since calling First().
{ return NumberOfDarcEoWErrors() > 0; }
Bool_t HasGlobalEoWError() const
 Whether we got any end of global word errors or not since calling First().
{ return NumberOfGlobalEoWErrors() > 0; }
Bool_t HasRegEoWError() const
 Whether we got any end of regional word errors or not since calling First().
{ return NumberOfRegEoWErrors() > 0; }
Bool_t HasLocalEoWError() const
 Whether we got any end of local word errors or not since calling First().
{ return NumberOfLocalEoWErrors() > 0; }
Bool_t TryRecover() const
 Returns the "try to recover from errors" flag.
{ return Bool_t(fDecoder.TryRecover()); }
void TryRecover(Bool_t value)
 Sets the "try to recover from errors" flag.
 i.e. should the decoder try to recover from errors found in the
 payload headers.
{ fDecoder.TryRecover(bool(value)); }
UInt_t GetLocalStructCount()
 Returns the number of local trigger structures within this regional structure.
{ return fLocalsCount; }
const AliLocalStruct* GetLocalStruct(UInt_t i)
 Return the i'th local trigger structure in this regional structure.
const AliRegionalHeader* GetRegionalHeader()
 Return the parent regional header.
{ return fRegional; }
const AliHeader* GetHeaders() const
 Returns the DARC and global headers plus scalars if they exist.
{ return fDecoder.GetHandler().GetHeaders(); }
UInt_t GetRegionalHeaderCount() const
 Return the number of regional structures in the DDL payload.
const AliRegionalHeader* GetFirstRegionalHeader() const
 Return the first regional structure header.
const AliLocalStruct* CurrentLocalStruct() const
 Returns the current local struct being decoded or NULL if none found.
const AliRegionalHeader* CurrentRegionalHeader() const
 Returns the current regional structure being decoded
 or NULL if none found.