TGeoNodeCache


class description - source file - inheritance tree

class TGeoNodeCache


    public:
TGeoNodeCache TGeoNodeCache() TGeoNodeCache TGeoNodeCache(Int_t size) TGeoNodeCache TGeoNodeCache(const TGeoNodeCache&) virtual void ~TGeoNodeCache() Int_t AddNode(TGeoNode* node) Int_t CacheId(Int_t nindex) const void CdCache() virtual Bool_t CdDown(Int_t index, Bool_t make = kTRUE) virtual void CdTop() virtual void CdUp() static TClass* Class() virtual void CleanCache() virtual void ClearDaughter(Int_t index) virtual void ClearNode(Int_t nindex) virtual void Compact() virtual void DeleteCaches() virtual Bool_t DumpNodes() virtual void* GetBranch() const virtual void GetBranchNames(Int_t*) const virtual void GetBranchNumbers(Int_t*, Int_t*) const virtual void GetBranchOnlys(Int_t*) const virtual TGeoHMatrix* GetCurrentMatrix() const Int_t GetCurrentNode() const virtual Int_t GetFreeSpace() const Int_t GetLevel() const virtual void* GetMatrices() const TGeoMatrixCache* GetMatrixPool() const virtual TGeoNode* GetMother(Int_t up = 1) const virtual Int_t GetNfree() const virtual TGeoNode* GetNode() const virtual Int_t GetNodeId() const virtual Int_t GetNused() const virtual const char* GetPath() const Int_t GetSize() const Int_t GetStackLevel() const Int_t GetTopNode() const virtual Int_t GetUsageCount() const virtual void IncreasePool(Int_t size) virtual void IncrementUsageCount() Int_t Index(Int_t nindex) const virtual TClass* IsA() const virtual Bool_t IsDummy() const virtual void LocalToMaster(Double_t* local, Double_t* master) const virtual void LocalToMasterBomb(Double_t* local, Double_t* master) const virtual void LocalToMasterVect(Double_t* local, Double_t* master) const virtual void MasterToLocal(Double_t* master, Double_t* local) const virtual void MasterToLocalBomb(Double_t* master, Double_t* local) const virtual void MasterToLocalVect(Double_t* master, Double_t* local) const virtual void PopDummy(Int_t ipop = 9999) virtual Bool_t PopState(Double_t* point = 0) virtual Bool_t PopState(Int_t level, Double_t* point = 0) virtual void PrintNode() const virtual Int_t PushState(Bool_t ovlp, Double_t* point = 0) virtual void Refresh() void SetDefaultLevel(Int_t level) Bool_t SetPersistency() virtual void ShowMembers(TMemberInspector& insp, char* parent) void Status() const virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)

Data Members

    private:
Int_t fSize current size of the cache Int_t fNused number of used nodes Int_t fDefaultLevel level down to which nodes will be persistent Int_t fTopNode top level physical node Int_t fCount total usage count Int_t fCountLimit count limit for which nodes become persistent Int_t fCurrentNode current physical node Int_t fCurrentCache current cache number Int_t fCurrentIndex index of current node in current cache Int_t* fBranch nodes from current branch Int_t* fMatrices matrix indices from current branch Int_t fStackLevel level in the stack of states TGeoHMatrix* fGlobalMatrix current global matrix TGeoNodeArray** fCache [128] cache of node arrays protected:
Double_t fGeoCacheUsageRatio percentage of total usage count that triggers persistency Int_t fGeoCacheMaxDaughters max ndaugters for TGeoNodeArray Int_t fGeoCacheMaxSize maximum initial cache size Int_t fGeoCacheDefaultLevel default level down to store nodes Int_t fGeoCacheMaxLevels maximum supported number of levels Int_t fGeoCacheObjArrayInd maximum number of daughters stored as node arrays Int_t fGeoCacheStackSize maximum size of the stack Int_t fLevel level in the current branch TString fPath path for current branch TObjArray* fStack stack of cache states TGeoMatrixCache* fMatrixPool pool of compressed global matrices


See also

TGeoCacheDummy

Class Description

 Physical tree description.





/*

*/


TGeoNodeCache()
 dummy constructor

TGeoNodeCache(Int_t /*size*/)
 constructor

~TGeoNodeCache()
 dtor

void Compact()
 compact arrays

void DeleteCaches()
 delete all node caches

Int_t AddNode(TGeoNode *node)
 add a logical node in the cache corresponding to ndaughters

Bool_t CdDown(Int_t index, Bool_t make)
 make daughter 'index' of current node current
 first make sure that current node is also current in its cache

void CdUp()
 change current path to mother.

void CleanCache()
 free nodes which are not persistent from cache
 except the current branch
 first compute count limit for persistency

Bool_t DumpNodes()
 dump all non-persistent branches

void ClearNode(Int_t nindex)
 clear the only the node nindex
   printf("clearing node %xn", (UInt_t)nindex);

TGeoNode* GetMother(Int_t up) const
 get mother of current logical node, <up> levels up

Int_t GetNodeId() const
 Get unique node id.

const char* GetPath()
 prints the current path

void PrintNode() const

Int_t PushState(Bool_t ovlp, Double_t *point)

void Refresh()

Bool_t PopState(Double_t *point)

Bool_t PopState(Int_t level, Double_t *point)

Bool_t SetPersistency()

void Status() const
 print status of cache



Inline Functions


                   Int_t CacheId(Int_t nindex) const
                    void CdCache()
                    void CdTop()
                    void ClearDaughter(Int_t index)
                   void* GetBranch() const
                    void GetBranchNames(Int_t*) const
                    void GetBranchNumbers(Int_t*, Int_t*) const
                    void GetBranchOnlys(Int_t*) const
                   void* GetMatrices() const
            TGeoHMatrix* GetCurrentMatrix() const
                   Int_t GetCurrentNode() const
               TGeoNode* GetNode() const
                   Int_t GetStackLevel() const
                   Int_t GetTopNode() const
                   Int_t GetLevel() const
                   Int_t GetFreeSpace() const
        TGeoMatrixCache* GetMatrixPool() const
                   Int_t GetNfree() const
                   Int_t GetNused() const
                   Int_t GetSize() const
                   Int_t GetUsageCount() const
                    void IncreasePool(Int_t size)
                    void IncrementUsageCount()
                   Int_t Index(Int_t nindex) const
                  Bool_t IsDummy() const
                    void LocalToMaster(Double_t* local, Double_t* master) const
                    void MasterToLocal(Double_t* master, Double_t* local) const
                    void LocalToMasterVect(Double_t* local, Double_t* master) const
                    void MasterToLocalVect(Double_t* master, Double_t* local) const
                    void LocalToMasterBomb(Double_t* local, Double_t* master) const
                    void MasterToLocalBomb(Double_t* master, Double_t* local) const
                    void PopDummy(Int_t ipop = 9999)
                    void SetDefaultLevel(Int_t level)
                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
           TGeoNodeCache TGeoNodeCache(const TGeoNodeCache&)


Author: Andrei Gheata 18/03/02
Last update: root/geom:$Name: $:$Id: TGeoCache.cxx,v 1.17 2003/02/17 13:40:22 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Top of the page

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.