12 #ifndef ROOT_TGeoBranchArray
13 #define ROOT_TGeoBranchArray
19 #ifndef ROOT_TGeoMatrix
76 static size_t SizeOf(
size_t maxlevel)
Bool_t operator<=(const TGeoBranchArray &other) const
Is equal operator.
Bool_t operator==(const TGeoBranchArray &other) const
Is equal operator.
virtual Int_t Compare(const TObject *obj) const
Compare with other object of same type.
const TGeoHMatrix * GetMatrix() const
static void ReleaseInstance(TGeoBranchArray *obj)
Releases the space allocated for the object.
static size_t SizeOf(size_t maxlevel)
bool operator()(Int_t i1, Int_t i2)
Bool_t operator<(const TGeoBranchArray &other) const
Is equal operator.
TGeoNode * GetNode(Int_t level) const
void InitFromNavigator(TGeoNavigator *nav)
Init the branch array from current navigator state.
#define ClassDef(name, id)
size_t GetMaxLevel() const
TGeoBranchArray(TRootIOCtor *)
TGeoNode * GetCurrentNode() const
static TGeoBranchArray * MakeCopy(const TGeoBranchArray &other)
Make a copy of a branch array at the location (if indicated)
bool operator()(Int_t i1, Int_t i2)
compareBAdesc(TGeoBranchArray **d)
Bool_t operator>(const TGeoBranchArray &other) const
Is equal operator.
Bool_t operator!=(const TGeoBranchArray &other) const
Not equal operator.
void UpdateArray(size_t nobj)
Updates the internal addresses for n contiguous objects which have the same fMaxLevel Updates the int...
virtual ~TGeoBranchArray()
void CleanMatrix()
Garbage collect the stored matrix.
static TGeoBranchArray * MakeCopyAt(const TGeoBranchArray &other, void *addr)
Make a copy of a branch array at the location (if indicated)
virtual Bool_t IsSortable() const
static Long64_t BinarySearch(Long64_t n, const TGeoBranchArray **array, TGeoBranchArray *value)
Binary search in an array of n pointers to branch arrays, to locate value.
Bool_t operator>=(const TGeoBranchArray &other) const
Is equal operator.
void Init(TGeoNode **branch, TGeoMatrix *global, Int_t level)
Init the branch array from an array of nodes, the global matrix for the path and the level...
compareBAasc(TGeoBranchArray **d)
static TGeoBranchArray * MakeInstance(size_t maxlevel)
Make an instance of the class which allocates the node array.
void UpdateNavigator(TGeoNavigator *nav) const
Update the navigator to reflect the branch.
void AddLevel(Int_t dindex)
Add and extra daughter to the current path array. No validity check performed !
TGeoBranchArray & operator=(const TGeoBranchArray &)
Assignment. Not valid anymore. Use TGeoBranchArray::MakeCopy instead.
TGeoNode ** GetArray() const
Mother of all ROOT objects.
static size_t SizeOfInstance(size_t maxlevel)
virtual void Print(Option_t *option="") const
Print branch information.
#define dest(otri, vertexptr)
static TGeoBranchArray * MakeInstanceAt(size_t maxlevel, void *addr)
Make an instance of the class which allocates the node array.
void CopyTo(TGeoBranchArray *dest)
Raw memcpy of the branch array content to an existing destination.
TGeoBranchArray(Int_t level)
static void Sort(Int_t n, TGeoBranchArray **array, Int_t *index, Bool_t down=kTRUE)
Sorting of an array of branch array pointers.
void GetPath(TString &path) const
Fill path pointed by the array.
TGeoNode * fRealArray[1]
[fMaxLevel+1] Array of nodes