Geant4-11
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes
G4ITFinder< T > Class Template Reference

#include <G4ITFinder.hh>

Inheritance diagram for G4ITFinder< T >:
G4VITFinder

Public Member Functions

virtual void Clear ()
 
G4KDTreeResultHandle FindNearest (const G4ThreeVector &, int key)
 
G4KDTreeResultHandle FindNearest (const T *, const T *)
 
G4KDTreeResultHandle FindNearest (const T *, int key)
 
G4KDTreeResultHandle FindNearestInRange (const G4ThreeVector &, int key, G4double)
 
G4KDTreeResultHandle FindNearestInRange (const T *point, int key, G4double)
 
virtual G4ITType GetITType ()
 
virtual G4int GetVerboseLevel ()
 
virtual void Push (G4Track *track)
 
virtual void SetVerboseLevel (G4int level)
 
virtual void UpdatePositionMap ()
 
virtual ~G4ITFinder ()
 

Static Public Member Functions

static G4ITFinderInstance ()
 
static void iUpdatePositionMap ()
 

Private Types

typedef std::map< int, G4KDTree * > TreeMap
 

Private Member Functions

 G4ITFinder ()
 

Private Attributes

TreeMap fTree
 
int fVerbose
 

Static Private Attributes

static G4ThreadLocal G4ITFinderfInstance
 

Detailed Description

template<class T>
class G4ITFinder< T >

Localize the nearest neighbor For now, G4KDTree is used

Definition at line 77 of file G4ITFinder.hh.

Member Typedef Documentation

◆ TreeMap

template<class T >
typedef std::map<int, G4KDTree*> G4ITFinder< T >::TreeMap
private

Definition at line 82 of file G4ITFinder.hh.

Constructor & Destructor Documentation

◆ G4ITFinder()

template<class T >
G4ITFinder< T >::G4ITFinder ( )
private

◆ ~G4ITFinder()

template<class T >
virtual G4ITFinder< T >::~G4ITFinder ( )
virtual

Member Function Documentation

◆ Clear()

template<class T >
virtual void G4ITFinder< T >::Clear ( )
virtual

Implements G4VITFinder.

◆ FindNearest() [1/3]

template<class T >
G4KDTreeResultHandle G4ITFinder< T >::FindNearest ( const G4ThreeVector ,
int  key 
)

◆ FindNearest() [2/3]

template<class T >
G4KDTreeResultHandle G4ITFinder< T >::FindNearest ( const T *  ,
const T *   
)

◆ FindNearest() [3/3]

template<class T >
G4KDTreeResultHandle G4ITFinder< T >::FindNearest ( const T *  ,
int  key 
)

◆ FindNearestInRange() [1/2]

template<class T >
G4KDTreeResultHandle G4ITFinder< T >::FindNearestInRange ( const G4ThreeVector ,
int  key,
G4double   
)

◆ FindNearestInRange() [2/2]

template<class T >
G4KDTreeResultHandle G4ITFinder< T >::FindNearestInRange ( const T *  point,
int  key,
G4double   
)

◆ GetITType()

template<class T >
virtual G4ITType G4ITFinder< T >::GetITType ( )
inlinevirtual

Implements G4VITFinder.

Definition at line 104 of file G4ITFinder.hh.

105 {
106 return T::ITType();
107 }

◆ GetVerboseLevel()

template<class T >
virtual G4int G4ITFinder< T >::GetVerboseLevel ( )
inlinevirtual

Implements G4VITFinder.

Definition at line 97 of file G4ITFinder.hh.

98 {
99 return fVerbose;
100 }
int fVerbose
Definition: G4ITFinder.hh:85

References G4ITFinder< T >::fVerbose.

◆ Instance()

template<class T >
static G4ITFinder * G4ITFinder< T >::Instance ( )
static

◆ iUpdatePositionMap()

template<class T >
static void G4ITFinder< T >::iUpdatePositionMap ( )
static

◆ Push()

template<class T >
virtual void G4ITFinder< T >::Push ( G4Track track)
virtual

◆ SetVerboseLevel()

template<class T >
virtual void G4ITFinder< T >::SetVerboseLevel ( G4int  level)
inlinevirtual

Implements G4VITFinder.

Definition at line 92 of file G4ITFinder.hh.

93 {
94 fVerbose = level;
95 }

References G4ITFinder< T >::fVerbose.

◆ UpdatePositionMap()

template<class T >
virtual void G4ITFinder< T >::UpdatePositionMap ( )
virtual

Field Documentation

◆ fInstance

template<class T >
G4ThreadLocal G4ITFinder* G4ITFinder< T >::fInstance
staticprivate

Definition at line 79 of file G4ITFinder.hh.

◆ fTree

template<class T >
TreeMap G4ITFinder< T >::fTree
private

Definition at line 83 of file G4ITFinder.hh.

◆ fVerbose

template<class T >
int G4ITFinder< T >::fVerbose
private

The documentation for this class was generated from the following files: