ROOT » GEOM » GEOM » TGeoVoxelFinder

class TGeoVoxelFinder: public TObject

 Full description with examples and pictures





/* */

Function Members (Methods)

public:
virtual~TGeoVoxelFinder()
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
voidDaughterToMother(Int_t id, const Double_t* local, Double_t* master) 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 Double_tEfficiency()
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 voidFindOverlaps(Int_t inode) const
Double_t*GetBoxes() const
Int_t*GetCheckList(Int_t& nelem, TGeoStateInfo& td) const
virtual Int_t*GetCheckList(const Double_t* point, Int_t& nelem, TGeoStateInfo& td)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual Int_t*GetNextCandidates(const Double_t* point, Int_t& ncheck, TGeoStateInfo& td)
virtual Int_t*GetNextVoxel(const Double_t* point, const Double_t* dir, Int_t& ncheck, TGeoStateInfo& td)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
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
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tIsInvalid() const
Bool_tTObject::IsOnHeap() const
Bool_tIsSafeVoxel(const Double_t* point, Int_t inode, Double_t minsafe) const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
Bool_tNeedRebuild() const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
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* option = "") const
voidPrintVoxelLimits(const Double_t* point) 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(ostream& 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)
voidSetInvalid(Bool_t flag = kTRUE)
voidSetNeedRebuild(Bool_t flag = kTRUE)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidSortCrossedVoxels(const Double_t* point, const Double_t* dir, TGeoStateInfo& td)
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
TGeoVoxelFinder()
TGeoVoxelFinder(TGeoVolume* vol)
virtual voidTObject::UseCurrentStyle()
virtual voidVoxelize(Option_t* option = "")
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:
voidBuildVoxelLimits()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
Int_t*GetExtraX(Int_t islice, Bool_t left, Int_t& nextra) const
Int_t*GetExtraY(Int_t islice, Bool_t left, Int_t& nextra) const
Int_t*GetExtraZ(Int_t islice, Bool_t left, Int_t& nextra) const
Bool_tGetIndices(const Double_t* point, TGeoStateInfo& td)
Int_tGetNcandidates(TGeoStateInfo& td) const
Int_tGetPriority(Int_t iaxis) const
Int_t*GetValidExtra(Int_t* list, Int_t& ncheck, TGeoStateInfo& td)
Int_t*GetValidExtra(Int_t n1, UChar_t* array1, Int_t* list, Int_t& ncheck, TGeoStateInfo& td)
Int_t*GetValidExtra(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t* list, Int_t& ncheck, TGeoStateInfo& td)
Int_t*GetVoxelCandidates(Int_t i, Int_t j, Int_t k, Int_t& ncheck, TGeoStateInfo& td)
Bool_tIntersect(Int_t n1, UChar_t* array1, Int_t& nf, Int_t* result)
Bool_tIntersect(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t& nf, Int_t* result)
Bool_tIntersect(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t n3, UChar_t* array3, Int_t& nf, Int_t* result)
Bool_tIntersectAndStore(Int_t n1, UChar_t* array1, TGeoStateInfo& td)
Bool_tIntersectAndStore(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, TGeoStateInfo& td)
Bool_tIntersectAndStore(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t n3, UChar_t* array3, TGeoStateInfo& td)
voidTObject::MakeZombie()
TGeoVoxelFinder&operator=(const TGeoVoxelFinder&)
voidSortAll(Option_t* option = "")
TGeoVoxelFinder(const TGeoVoxelFinder&)
Bool_tUnion(Int_t n1, UChar_t* array1, TGeoStateInfo& td)
Bool_tUnion(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, TGeoStateInfo& td)
Bool_tUnion(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t n3, UChar_t* array3, TGeoStateInfo& td)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TGeoVoxelFinder::EVoxelsTypekGeoInvalidVoxels
static TGeoVoxelFinder::EVoxelsTypekGeoRebuildVoxels
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
Double_t*fBoxes[fNboxes] list of bounding boxes
Int_t*fExtraX[fNex] indices of extra daughters in X slices
Int_t*fExtraY[fNey] indices of extra daughters in Y slices
Int_t*fExtraZ[fNez] indices of extra daughters in Z slices
Int_tfIbxnumber of different boundaries on X axis
Int_tfIbynumber of different boundaries on Y axis
Int_tfIbznumber of different boundaries on Z axis
UChar_t*fIndcX[fNx] array of slices bits on X
UChar_t*fIndcY[fNy] array of slices bits on Y
UChar_t*fIndcZ[fNz] array of slices bits on Z
Int_tfNboxeslength of boxes array
Int_tfNexlength of array of X extra offsets
Int_tfNeylength of array of Y extra offsets
Int_tfNezlength of array of Z extra offsets
Int_tfNoxlength of array of X offsets
Int_tfNoylength of array of Y offsets
Int_tfNozlength of array of Z offsets
Int_t*fNsliceX[fNox] number of candidates in X slice
Int_t*fNsliceY[fNoy] number of candidates in Y slice
Int_t*fNsliceZ[fNoz] number of candidates in Z slice
Int_tfNxlength of array of X voxels
Int_tfNylength of array of Y voxels
Int_tfNzlength of array of Z voxels
Int_t*fOBx[fNox] offsets of daughter indices for slices X
Int_t*fOBy[fNoy] offsets of daughter indices for slices Y
Int_t*fOBz[fNoz] offsets of daughter indices for slices Z
Int_t*fOEx[fNox] offsets of extra indices for slices X
Int_t*fOEy[fNoy] offsets of extra indices for slices Y
Int_t*fOEz[fNoz] offsets of extra indices for slices Z
Int_tfPriority[3]priority for each axis
TGeoVolume*fVolumevolume to which applies
Double_t*fXb[fIbx] ordered array of X box boundaries
Double_t*fYb[fIby] ordered array of Y box boundaries
Double_t*fZb[fIbz] ordered array of Z box boundaries

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGeoVoxelFinder()
 Default constructor
TGeoVoxelFinder(TGeoVolume* vol)
 Default constructor
TGeoVoxelFinder(const TGeoVoxelFinder& )
copy constructor
TGeoVoxelFinder& operator=(const TGeoVoxelFinder& )
assignment operator
~TGeoVoxelFinder()
 Destructor
   printf("deleting finder of %s\n", fVolume->GetName());
Int_t GetNcandidates(TGeoStateInfo& td) const
Int_t* GetCheckList(Int_t& nelem, TGeoStateInfo& td) const
void BuildVoxelLimits()
 build the array of bounding boxes of the nodes inside
void DaughterToMother(Int_t id, const Double_t* local, Double_t* master) const
 convert a point from the local reference system of node id to reference
 system of mother volume
Bool_t IsSafeVoxel(const Double_t* point, Int_t inode, Double_t minsafe) const
 Computes squared distance from POINT to the voxel(s) containing node INODE. Returns 0
 if POINT inside voxel(s).
Double_t Efficiency()
--- Compute voxelization efficiency.
void FindOverlaps(Int_t inode) const
 create the list of nodes for which the bboxes overlap with inode's bbox
Bool_t GetIndices(const Double_t* point, TGeoStateInfo& td)
 Getindices for current slices on x, y, z
Int_t * GetExtraX(Int_t islice, Bool_t left, Int_t& nextra) const
--- Return the list of extra candidates in a given X slice compared to
 another (left or right)
Int_t * GetExtraY(Int_t islice, Bool_t left, Int_t& nextra) const
--- Return the list of extra candidates in a given Y slice compared to
 another (left or right)
Int_t * GetExtraZ(Int_t islice, Bool_t left, Int_t& nextra) const
--- Return the list of extra candidates in a given Z slice compared to
 another (left or right)
Int_t * GetValidExtra(Int_t* list, Int_t& ncheck, TGeoStateInfo& td)
 Get extra candidates that are not contained in current check list
   UChar_t *bits = gGeoManager->GetBits();
Int_t * GetValidExtra(Int_t n1, UChar_t* array1, Int_t* list, Int_t& ncheck, TGeoStateInfo& td)
 Get extra candidates that are contained in array1 but not in current check list
   UChar_t *bits = gGeoManager->GetBits();
Int_t * GetValidExtra(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t* list, Int_t& ncheck, TGeoStateInfo& td)
 Get extra candidates that are contained in array1 but not in current check list
   UChar_t *bits = gGeoManager->GetBits();
Int_t * GetNextCandidates(const Double_t* point, Int_t& ncheck, TGeoStateInfo& td)
 Returns list of new candidates in next voxel. If NULL, nowhere to
 go next.
void SortCrossedVoxels(const Double_t* point, const Double_t* dir, TGeoStateInfo& td)
 get the list in the next voxel crossed by a ray
Int_t * GetCheckList(const Double_t* point, Int_t& nelem, TGeoStateInfo& td)
 get the list of daughter indices for which point is inside their bbox
Int_t * GetVoxelCandidates(Int_t i, Int_t j, Int_t k, Int_t& ncheck, TGeoStateInfo& td)
 get the list of candidates in voxel (i,j,k) - no check
Int_t * GetNextVoxel(const Double_t* point, const Double_t* dir, Int_t& ncheck, TGeoStateInfo& td)
 get the list of new candidates for the next voxel crossed by current ray
   printf("### GetNextVoxel\n");
Bool_t Intersect(Int_t n1, UChar_t* array1, Int_t& nf, Int_t* result)
 return the list of nodes corresponding to one array of bits
Bool_t IntersectAndStore(Int_t n1, UChar_t* array1, TGeoStateInfo& td)
 return the list of nodes corresponding to one array of bits
Bool_t Union(Int_t n1, UChar_t* array1, TGeoStateInfo& td)
 make union of older bits with new array
   printf("Union - one slice\n");
Bool_t Union(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, TGeoStateInfo& td)
 make union of older bits with new array
   printf("Union - two slices\n");
Bool_t Union(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t n3, UChar_t* array3, TGeoStateInfo& td)
 make union of older bits with new array
   printf("Union - three slices\n");
   printf("n1=%i n2=%i n3=%i\n", n1,n2,n3);
Bool_t Intersect(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t& nf, Int_t* result)
 return the list of nodes corresponding to the intersection of two arrays of bits
Bool_t IntersectAndStore(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, TGeoStateInfo& td)
 return the list of nodes corresponding to the intersection of two arrays of bits
Bool_t Intersect(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t n3, UChar_t* array3, Int_t& nf, Int_t* result)
 return the list of nodes corresponding to the intersection of three arrays of bits
Bool_t IntersectAndStore(Int_t n1, UChar_t* array1, Int_t n2, UChar_t* array2, Int_t n3, UChar_t* array3, TGeoStateInfo& td)
 return the list of nodes corresponding to the intersection of three arrays of bits
void SortAll(Option_t* option = "")
 order bounding boxes along x, y, z
void Print(Option_t* option = "") const
 Print the voxels.
void PrintVoxelLimits(const Double_t* point) const
 print the voxel containing point
void Voxelize(Option_t* option = "")
 Voxelize attached volume according to option
 If the volume is an assembly, make sure the bbox is computed.
void Streamer(TBuffer& )
 Stream an object of class TGeoVoxelFinder.
Int_t GetPriority(Int_t iaxis) const
{return fPriority[iaxis];}
Bool_t IsInvalid() const
Bool_t NeedRebuild() const
Double_t * GetBoxes() const
{return fBoxes;}
void SetInvalid(Bool_t flag = kTRUE)
void SetNeedRebuild(Bool_t flag = kTRUE)