ROOT logo
AliRoot » RAW » AliRawEventHeaderBase

class AliRawEventHeaderBase: public TObject


AliRawEventHeaderBase
This a new versioning scheme for raw data root-ification and reading
For details look at offline weekly meeting 20/10/2005


Function Members (Methods)

public:
AliRawEventHeaderBase()
virtual~AliRawEventHeaderBase()
voidTObject::AbstractMethod(const char* method) const
voidAddEqIndex(Int_t index)
voidAllocateExtendedData(Int_t extsize)
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
static AliRawEventHeaderBase*Create(char*& data)
Bool_tDataIsSwapped() const
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
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
UInt_tGet(const char* datamember) const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
UInt_tGetEventSize() const
char*GetExtendedData() const
UInt_tGetExtendedDataSize() const
Int_tGetFirstEqIndex() const
UInt_tGetHeadSize() const
virtual const char*TObject::GetIconName() const
Int_tGetLastEqIndex() const
UInt_tGetMagic() const
UInt_tGetMajorVersion() const
UInt_tGetMinorVersion() 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
const UInt_t*GetP(const char* datamember) const
virtual const char*TObject::GetTitle() const
const char*GetTypeName() const
static const char*GetTypeName(UInt_t eventType)
virtual UInt_tTObject::GetUniqueID() const
UInt_tGetVersion() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
void*HeaderBaseBegin() const
Int_tHeaderBaseSize() const
void*HeaderBegin() const
Int_tHeaderSize() 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_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tIsSwapped() const
Bool_tIsValid() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
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)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* opt = "") const
virtual Int_tTObject::Read(const char* name)
Int_tReadExtendedData(char*& data)
Int_tReadHeader(char*& data)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidReset()
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)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidSwap()
voidSwapData(const void* data, const void* buf, UInt_t size)
UInt_tSwapWord(UInt_t x) 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
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 EAliRawEventType { kStartOfRun
kEndOfRun
kStartOfRunFiles
kEndOfRunFiles
kStartOfBurst
kEndOfBurst
kPhysicsEvent
kCalibrationEvent
kFormatError
kStartOfData
kEndOfData
kSystemSoftwareTriggerEvent
kDetectorSoftwareTriggerEvent
kSyncEvent
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
private:
UInt_tfExtendedAllocSize! size of allocated memory for header extension data
char*fExtendedData[fExtendedDataSize] pointer to header extension data
UInt_tfExtendedDataSizesize of header extension data
Int_tfFirstEqIndexindex of the first equipment
UInt_tfHeadSizesize of header in bytes
void*fHeaderBegin! cache for the header begin pointer
Int_tfHeaderSize! cache for the header size estimate
Bool_tfIsSwappedis data swapped
Int_tfLastEqIndexindex of the last equipment
UInt_tfMagicmagic number used for consistency check
UInt_tfSizesize of event in bytes
UInt_tfVersionunique version identifier
static const UInt_tfgkEventMagicNumbermagic word
static const UInt_tfgkEventMagicNumberSwappedswapped magic word

Class Charts

Inheritance Chart:
TObject
AliRawEventHeaderBase
AliRawEventHeaderV3_1
AliRawEventHeaderV3_11
AliRawEventHeaderV3_12
AliRawEventHeaderV3_13
AliRawEventHeaderV3_14
AliRawEventHeaderV3_2
AliRawEventHeaderV3_3
AliRawEventHeaderV3_4
AliRawEventHeaderV3_5
AliRawEventHeaderV3_6
 [more...]

Function documentation

AliRawEventHeaderBase()
 Default constructor
void * HeaderBegin() const
 Returns the pointer to the first data member
 beyond the base class data members
Int_t HeaderSize() const
 Returns the size of the data members list
 beyond the base class data members
UInt_t SwapWord(UInt_t x) const
 Swap the endianess of the integer value 'x'
void Swap()
 Swap base header data.
 Update the fIsSwapped flag which
 is then use to copy in an appropriate way
 the rest of the header data from the raw data stream
const char * GetTypeName() const
 Get event type as a string.
 Will fail in case data header
 does not contain eventType field
const char * GetTypeName(UInt_t eventType)
 Get event type as a string.
 Static method that could be used
 from everywhere inside aliroot
AliRawEventHeaderBase* Create(char*& data)
 Static method to create AliRawEventHeaderVX object
 The actual header class version is taken from the
 raw data
void SwapData(const void* data, const void* buf, UInt_t size)
 The method swaps the contents of the
 raw-data event header
Int_t ReadHeader(char*& data)
 Read header info from DATE data stream.
 Returns bytes read
void AllocateExtendedData(Int_t extsize)
 Allocate the space for the header
 extended data
Int_t ReadExtendedData(char*& data)
 Read extended header data
 Reallocates memory if the present
 buffer is insufficient
UInt_t Get(const char* datamember) const
 The method to get a data member from the header object
 Except for the data members of the base class, all the
 other header data should be retrieved ONLY by this method
 The name of the data member should be supplied without "f"
 in front
const UInt_t* GetP(const char* datamember) const
 The method to get a data member from the header object
 Except for the data members of the base class, all the
 other header data should be retrieved ONLY by this method
 The name of the data member should be supplied without "f"
 in front
void Print(Option_t* opt = "") const
 Dumps the event or sub-event
 header fields
void AddEqIndex(Int_t index)
 Adds an equipment by changing properly
 the first and last equipment indexes
void Reset()
AliRawEventHeaderBase()
virtual ~AliRawEventHeaderBase()
{ if (fExtendedData) delete [] fExtendedData; }
void * HeaderBaseBegin() const
{ return (void *) &fSize; }
Int_t HeaderBaseSize() const
{ return (Long_t) &fVersion - (Long_t) &fSize + sizeof(fVersion); }
Bool_t DataIsSwapped() const
{ return fIsSwapped; }
Bool_t IsSwapped() const
Bool_t IsValid() const
{ return IsSwapped() ? kTRUE : ((fMagic == fgkEventMagicNumber) ? kTRUE : kFALSE); }
UInt_t GetEventSize() const
{ return fSize; }
UInt_t GetMagic() const
{ return fMagic; }
UInt_t GetHeadSize() const
{ return fHeadSize; }
UInt_t GetVersion() const
{ return fVersion; }
UInt_t GetMajorVersion() const
{ return ((fVersion>>16)&0x0000ffff); }
UInt_t GetMinorVersion() const
{ return (fVersion&0x0000ffff); }
UInt_t GetExtendedDataSize() const
{ return fExtendedDataSize; }
char* GetExtendedData() const
{ return fExtendedData; }
Int_t GetFirstEqIndex() const
{ return fFirstEqIndex; }
Int_t GetLastEqIndex() const
{ return fLastEqIndex; }
AliRawEventHeaderBase& operator=(const AliRawEventHeaderBase& )