Geant4 11.2.2
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
 

Static Public Member Functions

static G4OctreeFinderInstance ()
 

Detailed Description

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

Definition at line 77 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 115 of file G4OctreeFinder.hh.

116 {
117 return T::ITType();
118 }

◆ GetVerboseLevel()

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

Implements G4VFinder.

Definition at line 110 of file G4OctreeFinder.hh.

111 {
112 return fVerbose;
113 }

◆ 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 105 of file G4OctreeFinder.hh.

106 {
107 fVerbose = level;
108 }

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