ROOT logo
AliRoot » RAW » AliRawReaderRoot

class AliRawReaderRoot: public AliRawReader


 This is a class for reading raw data from a root file.

 The root file is expected to contain a tree of name "RAW" with
 a branch of name "rawevent" which contains objects of type
 AliRawVEvent.

 The file name and the event number are arguments of the constructor
 of AliRawReaderRoot.


Function Members (Methods)

public:
AliRawReaderRoot()
AliRawReaderRoot(AliRawVEvent* event)
AliRawReaderRoot(const AliRawReaderRoot& rawReader)
AliRawReaderRoot(const char* fileName, Int_t eventNumber = -1)
virtual~AliRawReaderRoot()
voidTObject::AbstractMethod(const char* method) const
voidAliRawReader::AddErrorLog(AliRawDataErrorLog::ERawDataErrorLevel level, Int_t code, const char* message = NULL)
voidAliRawReader::AddFatalErrorLog(Int_t code, const char* message = NULL)
voidAliRawReader::AddMajorErrorLog(Int_t code, const char* message = NULL)
voidAliRawReader::AddMinorErrorLog(Int_t code, const char* message = NULL)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual Int_tCheckData() const
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual AliRawReader*CloneSingleEvent() const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
static AliRawReader*AliRawReader::Create(const char* uri)
virtual voidTObject::Delete(Option_t* option = "")MENU
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
voidAliRawReader::DumpData(Int_t limit = -1)
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
const TClonesArray&AliRawReader::GetAllErrorLogs() const
virtual const UInt_t*GetAttributes() const
UShort_tAliRawReader::GetBCID() const
UChar_tAliRawReader::GetBlockAttributes() const
virtual TChain*AliRawReader::GetChain() const
ULong64_tAliRawReader::GetClassMask() const
ULong64_tAliRawReader::GetClassMaskNext50() const
const AliRawDataHeader*AliRawReader::GetDataHeader() const
const AliRawDataHeaderV3*AliRawReader::GetDataHeaderV3() const
Int_tAliRawReader::GetDataSize() const
Int_tAliRawReader::GetDDLID() const
Int_tAliRawReader::GetDetectorID() const
virtual const UInt_t*GetDetectorPattern() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const UInt_t*GetEquipmentAttributes() const
virtual Int_tGetEquipmentElementSize() const
virtual Int_tGetEquipmentHeaderSize() const
virtual Int_tGetEquipmentId() const
virtual Int_tGetEquipmentSize() const
virtual Int_tGetEquipmentType() const
Int_tAliRawReader::GetErrorCode() const
AliRawDataErrorLog*AliRawReader::GetErrorLog(Int_t i) const
virtual const AliRawVEvent*GetEvent() const
virtual const AliRawEventHeaderBase*GetEventHeader() const
virtual const UInt_t*GetEventId() const
ULong64_tAliRawReader::GetEventIdAsLong() const
virtual Int_tGetEventIndex() const
virtual UInt_tGetGDCId() const
virtual const char*TObject::GetIconName() const
virtual UInt_tGetLDCId() const
Int_tAliRawReader::GetMappedEquipmentId() const
virtual const char*TObject::GetName() const
Int_tAliRawReader::GetNumberOfErrorLogs() const
virtual Int_tGetNumberOfEvents() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
UInt_tAliRawReader::GetOrbitID() const
UInt_tAliRawReader::GetPeriod() const
virtual UInt_tGetRunNumber() const
UInt_tAliRawReader::GetStatusBits() const
virtual const UInt_t*GetSubEventAttributes() const
virtual UInt_tGetTimestamp() const
virtual const char*TObject::GetTitle() const
virtual const UInt_t*GetTriggerPattern() const
virtual UInt_tGetType() const
virtual UInt_tTObject::GetUniqueID() const
static Bool_tGetUseOrder()
Int_tAliRawReader::GetVersion() const
virtual Bool_tGotoEvent(Int_t event)
virtual Bool_tAliRawReader::GotoEventWithID(Int_t event, UInt_t period, UInt_t orbitID, UShort_t bcID)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() 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
Bool_tAliRawReader::IsCompressed() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tAliRawReader::IsRawReaderValid() const
virtual Bool_tTObject::IsSortable() const
Bool_tAliRawReader::IsValid() const
Bool_tTObject::IsZombie() const
Bool_tAliRawReader::LoadEquipmentIdsMap(const char* fileName)
voidAliRawReader::LoadTriggerAlias(const THashList* lst)
voidAliRawReader::LoadTriggerClass(const char* name, Int_t index)
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tNextEvent()
virtual Bool_tTObject::Notify()
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)
AliRawReaderRoot&operator=(const AliRawReaderRoot& rawReader)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual Bool_tReadHeader()
virtual Bool_tReadNext(UChar_t* data, Int_t size)
virtual Bool_tAliRawReader::ReadNextChar(UChar_t& data)
virtual Bool_tReadNextData(UChar_t*& data)
virtual Bool_tAliRawReader::ReadNextInt(UInt_t& data)
virtual Bool_tAliRawReader::ReadNextShort(UShort_t& data)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidAliRawReader::RequireHeader(Bool_t required)
virtual Bool_tReset()
voidTObject::ResetBit(UInt_t f)
virtual Bool_tRewindEvents()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(basic_ostream<char,char_traits<char> >& out, Option_t* option = "")
virtual voidAliRawReader::Select(Int_t detectorID, Int_t minDDLID = -1, Int_t maxDDLID = -1)
virtual voidAliRawReader::Select(const char* detectorName, Int_t minDDLID = -1, Int_t maxDDLID = -1)
virtual voidAliRawReader::SelectEquipment(Int_t equipmentType, Int_t minEquipmentId = -1, Int_t maxEquipmentId = -1)
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)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidAliRawReader::SkipInvalid(Bool_t skip = kTRUE)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
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_tAliRawReader::TestBlockAttribute(Int_t index) const
virtual Bool_tAliRawReader::UseAutoSaveESD() const
virtual voidTObject::UseCurrentStyle()
static voidUseOrder()
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
Bool_tAliRawReader::IsEventSelected() const
Bool_tAliRawReader::IsSelected() const
voidMakeIndex()
voidTObject::MakeZombie()
virtual voidAliRawReader::SelectEvents(Int_t type, ULong64_t triggerMask = 0, const char* triggerExpr = NULL)
voidSwapData(const void* inbuf, const void* outbuf, UInt_t size)
UShort_tAliRawReader::SwapShort(UShort_t x) const
UInt_tAliRawReader::SwapWord(UInt_t x) const

Data Members

protected:
TBranch*fBranchbranch of raw events
Int_tAliRawReader::fCountcounter of bytes to be read for current DDL
UChar_t*fEndend position of the current subevent
AliRawVEquipment*fEquipmentcurrent equipment
TArrayI*AliRawReader::fEquipmentIdsInarray of equipment Ids to be mapped
TArrayI*AliRawReader::fEquipmentIdsOutarray of mapped equipment Ids
Int_tfEquipmentIndexindex of current equipment
Int_tAliRawReader::fErrorCodecode of last error
TClonesArrayAliRawReader::fErrorLogsraw data decoding errors
AliRawVEvent*fEvent(super) event
AliRawEventHeaderBase*fEventHeader(super) event header
Int_tfEventIndexindex of the event in the tree
Int_tAliRawReader::fEventNumbercurrent event number
TFile*fFileraw data root file
AliRawDataHeader*AliRawReader::fHeadercurrent data header
AliRawDataHeader*AliRawReader::fHeaderSwappedtemporary buffer for swapping header on PowerPC
AliRawDataHeaderV3*AliRawReader::fHeaderSwappedV3temporary buffer for swapping header on PowerPC
AliRawDataHeaderV3*AliRawReader::fHeaderV3current data header
Long64_t*fIndexIndex of the tree
Bool_tAliRawReader::fIsTriggerClassLoadedflags the call to LoadTriggerClass
Bool_tAliRawReader::fIsValidis raw-reader created successfully
UChar_t*fPositioncurrent position in the raw data
AliRawData*fRawDatacurrent raw data
Bool_tAliRawReader::fRequireHeaderif false, data without header is accepted
Int_tAliRawReader::fSelectEquipmentTypetype of selected equipment (<0 = no selection)
Int_tAliRawReader::fSelectEventTypetype of selected events (<0 = no selection)
Int_tAliRawReader::fSelectMaxEquipmentIdmaximal index of selected equipment (<0 = no selection)
Int_tAliRawReader::fSelectMinEquipmentIdminimal index of selected equipment (<0 = no selection)
TStringAliRawReader::fSelectTriggerExprtrigger expression for selecting events (empty = no selection)
ULong64_tAliRawReader::fSelectTriggerMasktrigger mask for selecting events (0 = no selection)
Bool_tAliRawReader::fSkipInvalidskip invalid data
AliRawVEvent*fSubEventcurrent sub event
Int_tfSubEventIndexindex of current sub event
static Bool_tfgUseOrderFlag to use or not sorting in decreased size order

Class Charts

Inheritance Chart:
TObject
AliRawReader
AliRawReaderRoot
AliRawReaderChain

Function documentation

AliRawReaderRoot()
 default constructor
AliRawReaderRoot(const char* fileName, Int_t eventNumber = -1)
 create an object to read digits from the given input file for the
 event with the given number
AliRawReaderRoot(AliRawVEvent* event)
 create an object to read digits from the given raw event
AliRawReaderRoot(const AliRawReaderRoot& rawReader)
 copy constructor
~AliRawReaderRoot()
 delete objects and close root file
const AliRawEventHeaderBase* GetEventHeader() const
 Get the even header
 Return NULL in case of failure
UInt_t GetType() const
 get the type from the event header
UInt_t GetRunNumber() const
 get the run number from the event header
const UInt_t* GetEventId() const
 get the event id from the event header
const UInt_t* GetTriggerPattern() const
 get the trigger pattern from the event header
const UInt_t* GetDetectorPattern() const
 get the detector pattern from the event header
const UInt_t* GetAttributes() const
 get the type attributes from the event header
const UInt_t* GetSubEventAttributes() const
 get the type attributes from the sub event header
UInt_t GetLDCId() const
 get the LDC Id from the event header
UInt_t GetGDCId() const
 get the GDC Id from the event header
UInt_t GetTimestamp() const
Int_t GetEquipmentSize() const
 get the size of the equipment
Int_t GetEquipmentType() const
 get the type from the equipment header
Int_t GetEquipmentId() const
 get the ID from the equipment header
const UInt_t* GetEquipmentAttributes() const
 get the attributes from the equipment header
Int_t GetEquipmentElementSize() const
 get the basic element size from the equipment header
Int_t GetEquipmentHeaderSize() const
 get the size of the equipment header (28 bytes by default)
void SwapData(const void* inbuf, const void* outbuf, UInt_t size)
 The method swaps the contents of the
 raw-data event header
Bool_t ReadHeader()
 read a data header at the current position
 returns kFALSE if the data header could not be read
Bool_t ReadNextData(UChar_t*& data)
 reads the next payload at the current position
 returns kFALSE if the data could not be read
Bool_t ReadNext(UChar_t* data, Int_t size)
 reads the next block of data at the current position
 returns kFALSE if the data could not be read
Bool_t Reset()
 reset the current position to the beginning of the event
Bool_t NextEvent()
 go to the next event in the root file
Bool_t RewindEvents()
 go back to the beginning of the root file
Bool_t GotoEvent(Int_t event)
 go to a particular event
 Uses the absolute event index inside the
 raw-data file
Int_t GetNumberOfEvents() const
 Get the total number of events in
 the raw-data tree
Int_t CheckData() const
 check the consistency of the data
AliRawReader* CloneSingleEvent() const
 Clones the current event and
 creates raw-reader for the cloned event
 Can be used in order to make asynchronious
 access to the current raw data within
 several threads (online event display/reco)
void MakeIndex()
 Make index
Int_t GetEventIndex() const
{ return fEventIndex; }
const AliRawVEvent* GetEvent() const
{return fEvent;}
Bool_t GetUseOrder()
{return fgUseOrder;}
void UseOrder()