class HLocation: public TObject

_HADES_CLASS_DESCRIPTION

HLocation

  ATENCION! Se ha eliminado el index check en operator[]

  A location is a set of indexes defining the location of a particular
data object within the HEvent structure; so within a loop is recommended to
directly use one HLocation instead of a set of indexes (i,j,k,l...) (and
better an HIterator instead of HLocation).

  An HEvent holds the data corresponding to an event, those data are arranged
 in categories (mdc raw data, mdc cal data, rich rings,...) which are objects
 instantianting one HCategory, to access one of these categories the user
 can call HEvent::getCategory(). Within the categories, each data object has
 a location (given by an object instantiating HLocation) which identifies
 that object in the category (in some sense, the location is a generalized
 index).


Function Members (Methods)

public:
HLocation()
HLocation(HLocation& aLoc)
virtual~HLocation()
voidTObject::AbstractMethod(const char* method) const
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
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
voidDump()
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 Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
Int_tgetIndex(Int_t aIdx)
TArrayI*getIndexes()
Int_tgetLinearIndex(TArrayI* sizes)
Int_tgetLinearIndex(Int_t* sizes, Int_t n)
virtual const char*TObject::GetName() const
Int_tgetNIndex()
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
Int_tgetOffset()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
Int_tgetUncheckedIndex(Int_t aIdx)
virtual UInt_tTObject::GetUniqueID() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
voidincIndex(Int_t nIndex)
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_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
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)
Int_toperator++()
voidoperator+=(Int_t shift)
voidoperator--()
voidoperator-=(Int_t shift)
HLocation&operator=(HLocation& loc)
Int_t&operator[](Int_t aIdx)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
voidreadIndexes(HLocation& loc)
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 = "")
voidset(Int_t nInd, Int_t i1 = 0, Int_t i2 = 0, Int_t i3 = 0, Int_t i4 = 0, Int_t i5 = 0)
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)
voidsetIndex(Int_t aIdx, Int_t aValue)
voidsetNIndex(Int_t nIdx)
static voidTObject::SetObjectStat(Bool_t stat)
voidsetOffset(Int_t aOfs)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& 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
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 TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TArrayIfIndexesHigh indexes indicating the location
Int_tfOffsetLess significant index of the location

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

Int_t getLinearIndex(Int_t* sizes, Int_t n)
Int_t getLinearIndex(TArrayI* sizes)
void set(Int_t nInd, Int_t i1 = 0, Int_t i2 = 0, Int_t i3 = 0, Int_t i4 = 0, Int_t i5 = 0)
void incIndex(Int_t nIndex)
Increments the index nIndex and sets all the following indexes to 0
void readIndexes(HLocation& loc)
Sets the loc.getNIndex() first indexes to the value given in loc
and the others are set to 0
void Dump(void)
Dumps the object to cout in the format:

index1:index2:....:offset
HLocation(HLocation& aLoc)
{fOffset=0;}
HLocation(HLocation& aLoc)
{ fIndexes.Copy(aLoc.fIndexes); }
~HLocation(void)
{ fIndexes.Reset(); }
void setNIndex(Int_t nIdx)
{ fIndexes.Set(nIdx); }
void setOffset(Int_t aOfs)
{ fIndexes[fIndexes.fN-1]=aOfs; }
Int_t getIndex(Int_t aIdx)
{ return(fIndexes[aIdx]); }
Int_t getUncheckedIndex(Int_t aIdx)
{return fIndexes.fArray[aIdx];}
void setIndex(Int_t aIdx, Int_t aValue)
{ fIndexes[aIdx]=aValue; }
Int_t getNIndex(void)
{ return fIndexes.fN; }
TArrayI* getIndexes(void)
{ return &fIndexes;}
Int_t getOffset(void)
{ return fIndexes[fIndexes.fN-1]; }
void operator+=(Int_t shift)
{ fIndexes[fIndexes.fN-1]+=shift; }
Int_t operator++(void)
{ return fIndexes[fIndexes.fN-1]++; }
void operator-=(Int_t shift)
{ fIndexes[fIndexes.fN-1]-=shift; }
void operator--(void)
{ fIndexes[fIndexes.fN-1]--; }
Int_t & operator[](Int_t aIdx)
{return fIndexes.fArray[aIdx];}
HLocation & operator=(HLocation& loc)
{ loc.fIndexes.Copy(fIndexes); return loc; }

Last change: Sat May 22 12:59:05 2010
Last generated: 2010-05-22 12:59

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.