Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OctreeFinder< T, CONTAINER > Class Template Reference

#include <G4OctreeFinder.hh>

+ Inheritance diagram for G4OctreeFinder< T, CONTAINER >:

Public Member Functions

void SetOctreeUsed (G4bool used)
 
G4bool IsOctreeUsed () const
 
void SetOctreeBuilt (G4bool used)
 
G4bool IsOctreeBuilt () const
 
 ~G4OctreeFinder () override
 
void Clear () override
 
void SetVerboseLevel (G4int level) override
 
G4int GetVerboseLevel () override
 
G4ITType GetITType () override
 
void BuildTreeMap (const std::map< G4int, CONTAINER * > &listMap)
 
void FindNearestInRange (const G4Track &track, const int &key, G4double R, std::vector< std::pair< typename CONTAINER::iterator, G4double > > &result, G4bool isSort=false) const
 
void FindNearest (const G4Track &track, const int &key, G4double R, std::vector< std::pair< typename CONTAINER::iterator, G4double > > &result, G4bool isSort=false) const
 
void FindNearestInRange (const G4ThreeVector &position, const G4int &key, G4double R, std::vector< std::pair< typename CONTAINER::iterator, G4double > > &result, G4bool isSort=false) const
 
void FindNearestInRange (const G4ThreeVector &, G4double R, std::vector< std::pair< typename CONTAINER::iterator, G4double > > &result, G4bool isSorted) const
 
- Public Member Functions inherited from G4VFinder
 G4VFinder ()=default
 
virtual ~G4VFinder ()=default
 
virtual void Clear ()=0
 
virtual void SetVerboseLevel (G4int level)=0
 
virtual G4int GetVerboseLevel ()=0
 
virtual G4ITType GetITType ()=0
 

Static Public Member Functions

static G4OctreeFinderInstance ()
 

Detailed Description

template<class T, typename CONTAINER>
class G4OctreeFinder< T, CONTAINER >

Definition at line 74 of file G4OctreeFinder.hh.

Constructor & Destructor Documentation

◆ ~G4OctreeFinder()

template<class T , typename CONTAINER >
G4OctreeFinder< T, CONTAINER >::~G4OctreeFinder ( )
override

Member Function Documentation

◆ BuildTreeMap()

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::BuildTreeMap ( const std::map< G4int, CONTAINER * > &  listMap)

◆ Clear()

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::Clear ( )
overridevirtual

◆ FindNearest()

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::FindNearest ( const G4Track track,
const int &  key,
G4double  R,
std::vector< std::pair< typename CONTAINER::iterator, G4double > > &  result,
G4bool  isSort = false 
) const

◆ FindNearestInRange() [1/3]

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::FindNearestInRange ( const G4ThreeVector ,
G4double  R,
std::vector< std::pair< typename CONTAINER::iterator, G4double > > &  result,
G4bool  isSorted 
) const

◆ FindNearestInRange() [2/3]

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::FindNearestInRange ( const G4ThreeVector position,
const G4int key,
G4double  R,
std::vector< std::pair< typename CONTAINER::iterator, G4double > > &  result,
G4bool  isSort = false 
) const

◆ FindNearestInRange() [3/3]

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::FindNearestInRange ( const G4Track track,
const int &  key,
G4double  R,
std::vector< std::pair< typename CONTAINER::iterator, G4double > > &  result,
G4bool  isSort = false 
) const

◆ GetITType()

template<class T , typename CONTAINER >
G4ITType G4OctreeFinder< T, CONTAINER >::GetITType ( )
inlineoverridevirtual

Implements G4VFinder.

Definition at line 112 of file G4OctreeFinder.hh.

113 {
114 return T::ITType();
115 }

◆ GetVerboseLevel()

template<class T , typename CONTAINER >
G4int G4OctreeFinder< T, CONTAINER >::GetVerboseLevel ( )
inlineoverridevirtual

Implements G4VFinder.

Definition at line 107 of file G4OctreeFinder.hh.

108 {
109 return fVerbose;
110 }

◆ Instance()

template<class T , typename CONTAINER >
static G4OctreeFinder * G4OctreeFinder< T, CONTAINER >::Instance ( )
static

◆ IsOctreeBuilt()

template<class T , typename CONTAINER >
G4bool G4OctreeFinder< T, CONTAINER >::IsOctreeBuilt ( ) const

◆ IsOctreeUsed()

template<class T , typename CONTAINER >
G4bool G4OctreeFinder< T, CONTAINER >::IsOctreeUsed ( ) const

◆ SetOctreeBuilt()

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::SetOctreeBuilt ( G4bool  used)

◆ SetOctreeUsed()

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::SetOctreeUsed ( G4bool  used)

◆ SetVerboseLevel()

template<class T , typename CONTAINER >
void G4OctreeFinder< T, CONTAINER >::SetVerboseLevel ( G4int  level)
inlineoverridevirtual

Implements G4VFinder.

Definition at line 102 of file G4OctreeFinder.hh.

103 {
104 fVerbose = level;
105 }

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