Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
|
#include <G4THitsVector.hh>
Public Types | |
using | this_type = G4VTHitsVector<T, Vector_t> |
using | value_type = T |
using | vector_type = Vector_t |
using | iterator = typename vector_type::iterator |
using | const_iterator = typename vector_type::const_iterator |
using | store_type = typename Vector_t::value_type |
using | pair_t = std::pair<G4int, store_type> |
using | map_t = std::map<G4int, store_type> |
using | uomap_t = std::unordered_map<G4int, store_type> |
using | mmap_t = std::multimap<G4int, store_type> |
using | uommap_t = std::unordered_multimap<G4int, store_type> |
Public Member Functions | |
G4VTHitsVector (G4int init_size=0) | |
G4VTHitsVector (G4String detName, G4String colNam, G4int init_size=0) | |
~G4VTHitsVector () override | |
G4bool | operator== (const this_type &rhs) const |
void | DrawAllHits () override |
void | PrintAllHits () override |
Vector_t * | GetContainer () const |
Vector_t::size_type | size () |
Vector_t::size_type | GetIndex (iterator itr) |
Vector_t::size_type | GetIndex (const_iterator itr) const |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
T * | GetObject (G4int idx) const |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
T * | GetObject (iterator itr) const |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
const T * | GetObject (const_iterator itr) const |
template<typename U = store_type, enable_if_t<(! is_pointer_t(U)), G4int > = 0> | |
T * | GetObject (G4int idx) const |
template<typename U = store_type, enable_if_t<(! is_pointer_t(U)), G4int > = 0> | |
T * | GetObject (iterator itr) const |
template<typename U = store_type, enable_if_t<(! is_pointer_t(U)), G4int > = 0> | |
const T * | GetObject (const_iterator itr) const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
Vector_t * | GetVector () const |
std::size_t | entries () const |
void | clear () |
G4VHit * | GetHit (std::size_t) const override |
std::size_t | GetSize () const override |
map_t * | GetMap () const |
template<typename U = T, typename V = store_type, enable_if_t<(is_fundamental_t(U) &&is_pointer_t(V)), G4int > = 0> | |
store_type | allocate () const |
template<typename U = T, typename V = store_type, enable_if_t<(! is_fundamental_t(U) &&is_pointer_t(V)), G4int > = 0> | |
store_type | allocate () const |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
store_type | null () const |
template<typename U = T, typename V = store_type, enable_if_t<(is_fundamental_t(U) &&! is_pointer_t(V)), G4int > = 0> | |
store_type | allocate () const |
template<typename U = T, typename V = store_type, enable_if_t<(! is_fundamental_t(U) &&! is_pointer_t(V)), G4int > = 0> | |
store_type | allocate () const |
template<typename U = store_type, enable_if_t<(! is_pointer_t(U)), G4int > = 0> | |
store_type | null () const |
template<typename U , typename VectorU_t , enable_if_t<(is_pointer_t(typename VectorU_t::value_type)), G4int > = 0> | |
this_type & | operator+= (const G4VTHitsVector< U, VectorU_t > &right) const |
template<typename U , typename VectorU_t , enable_if_t<(! is_pointer_t(typename VectorU_t::value_type)), G4int > = 0> | |
this_type & | operator+= (const G4VTHitsVector< U, VectorU_t > &right) const |
template<typename U , typename MapU_t , enable_if_t<(is_pointer_t(typename MapU_t::mapped_type)), G4int > = 0> | |
this_type & | operator+= (const G4VTHitsMap< U, MapU_t > &right) const |
template<typename U , typename MapU_t , enable_if_t<!(is_pointer_t(typename MapU_t::mapped_type)), G4int > = 0> | |
this_type & | operator+= (const G4VTHitsMap< U, MapU_t > &right) const |
template<typename U = T, enable_if_t< is_same_t(U, T), G4int > = 0> | |
std::size_t | add (const G4int &key, U *&aHit) const |
template<typename U = T, enable_if_t<! is_same_t(U, T), G4int > = 0> | |
std::size_t | add (const G4int &key, U *&aHit) const |
template<typename U = T, enable_if_t< is_same_t(U, T), G4int > = 0> | |
std::size_t | add (const G4int &key, U &aHit) const |
template<typename U = T, enable_if_t<! is_same_t(U, T), G4int > = 0> | |
std::size_t | add (const G4int &key, U &aHit) const |
template<typename U = T, enable_if_t< is_same_t(U, T), G4int > = 0> | |
std::size_t | set (const G4int &key, U *&aHit) const |
template<typename U = T, enable_if_t<! is_same_t(U, T), G4int > = 0> | |
std::size_t | set (const G4int &key, U *&aHit) const |
template<typename U = T, enable_if_t< is_same_t(U, T), G4int > = 0> | |
std::size_t | set (const G4int &key, U &aHit) const |
template<typename U = T, enable_if_t<! is_same_t(U, T), G4int > = 0> | |
std::size_t | set (const G4int &key, U &aHit) const |
T * | at (G4int key) const |
T * | operator[] (G4int key) const |
Public Member Functions inherited from G4HitsCollection | |
~G4HitsCollection () override=default | |
G4bool | operator== (const G4HitsCollection &right) const |
G4VHitsCollection ()=default | |
G4VHitsCollection (G4String detName, G4String colNam) | |
Public Member Functions inherited from G4VHitsCollection | |
G4VHitsCollection ()=default | |
G4VHitsCollection (G4String detName, G4String colNam) | |
virtual | ~G4VHitsCollection ()=default |
G4bool | operator== (const G4VHitsCollection &right) const |
const G4String & | GetName () const |
const G4String & | GetSDname () const |
void | SetColID (G4int i) |
G4int | GetColID () const |
virtual G4VHit * | GetHit (size_t) const |
Protected Member Functions | |
template<typename U = store_type, enable_if_t<(is_pointer_t(U)), G4int > = 0> | |
void | resize (vector_type *&theHitsVector, const G4int &key) const |
template<typename U = store_type, enable_if_t<(! is_pointer_t(U)), G4int > = 0> | |
void | resize (vector_type *&theHitsVector, const G4int &key) const |
vector_type * | GetVector (const G4int &key) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _assign (vector_type *&theHitsVector, const G4int &key, T &val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _assign (vector_type *&theHitsVector, const G4int &key, T *&val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, T &val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, T *&val) const |
template<typename V , typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, V &val) const |
template<typename V , typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, V *&val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
T & | get (U &val) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
void | delete_contents (vector_type *&theHitsVector) const |
template<typename U = store_type, enable_if_t< is_pointer_t(U), G4int > = 0> | |
T & | get_reference (U &val) const |
template<typename U = store_type, enable_if_t<! is_pointer_t(U), G4int > = 0> | |
void | _assign (vector_type *&theHitsVector, const G4int &key, T &val) const |
template<typename U = store_type, enable_if_t<! is_pointer_t(U), G4int > = 0> | |
void | _assign (vector_type *&theHitsVector, const G4int &key, T *&val) const |
template<typename U = store_type, enable_if_t<! is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, T &val) const |
template<typename U = store_type, enable_if_t<! is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, T *&val) const |
template<typename V , typename U = store_type, enable_if_t<! is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, V &val) const |
template<typename V , typename U = store_type, enable_if_t<! is_pointer_t(U), G4int > = 0> | |
void | _add (vector_type *&theHitsVector, const G4int &key, V *&val) const |
template<typename U = store_type, enable_if_t<! is_pointer_t(U), G4int > = 0> | |
void | delete_contents (vector_type *&) const |
template<typename U = store_type, enable_if_t<! is_pointer_t(U), G4int > = 0> | |
T & | get_reference (U &val) const |
Additional Inherited Members | |
Protected Attributes inherited from G4HitsCollection | |
void * | theCollection = nullptr |
Protected Attributes inherited from G4VHitsCollection | |
G4String | collectionName = "Unknown" |
G4String | SDname = "Unknown" |
G4int | colID = -1 |
Definition at line 51 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::const_iterator = typename vector_type::const_iterator |
Definition at line 58 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::iterator = typename vector_type::iterator |
Definition at line 57 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::map_t = std::map<G4int, store_type> |
Definition at line 62 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::mmap_t = std::multimap<G4int, store_type> |
Definition at line 64 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::pair_t = std::pair<G4int, store_type> |
Definition at line 61 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::store_type = typename Vector_t::value_type |
Definition at line 60 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::this_type = G4VTHitsVector<T, Vector_t> |
Definition at line 54 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::uomap_t = std::unordered_map<G4int, store_type> |
Definition at line 63 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::uommap_t = std::unordered_multimap<G4int, store_type> |
Definition at line 65 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::value_type = T |
Definition at line 55 of file G4THitsVector.hh.
using G4VTHitsVector< T, Vector_t >::vector_type = Vector_t |
Definition at line 56 of file G4THitsVector.hh.
G4VTHitsVector< T, Vector_t >::G4VTHitsVector | ( | G4int | init_size = 0 | ) |
Definition at line 548 of file G4THitsVector.hh.
G4VTHitsVector< T, Vector_t >::G4VTHitsVector | ( | G4String | detName, |
G4String | colNam, | ||
G4int | init_size = 0 ) |
Definition at line 560 of file G4THitsVector.hh.
|
override |
Definition at line 573 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 441 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::add(), and G4VTHitsVector< T, Vector_t >::add().
|
inlineprotected |
Definition at line 501 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 447 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 507 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 453 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 513 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 459 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 519 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 427 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::resize(), G4VTHitsVector< T, Vector_t >::set(), and G4VTHitsVector< T, Vector_t >::set().
|
inlineprotected |
Definition at line 488 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 434 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 494 of file G4THitsVector.hh.
|
inline |
Definition at line 303 of file G4THitsVector.hh.
|
inline |
Definition at line 313 of file G4THitsVector.hh.
|
inline |
Definition at line 281 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::operator+=(), and G4VTHitsVector< T, Vector_t >::operator+=().
|
inline |
Definition at line 291 of file G4THitsVector.hh.
|
inline |
Definition at line 175 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::add(), G4VTHitsVector< T, Vector_t >::operator+=(), G4VTHitsVector< T, Vector_t >::resize(), G4VTHitsVector< T, Vector_t >::set(), and G4VTHitsVector< T, Vector_t >::set().
|
inline |
Definition at line 184 of file G4THitsVector.hh.
|
inline |
Definition at line 202 of file G4THitsVector.hh.
|
inline |
Definition at line 210 of file G4THitsVector.hh.
|
inline |
Definition at line 379 of file G4THitsVector.hh.
|
inline |
Definition at line 146 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::GetIndex(), and G4VTHitsVector< T, Vector_t >::GetIndex().
|
inline |
Definition at line 148 of file G4THitsVector.hh.
|
inline |
Definition at line 150 of file G4THitsVector.hh.
|
inline |
Definition at line 151 of file G4THitsVector.hh.
|
inline |
Definition at line 634 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 525 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 471 of file G4THitsVector.hh.
|
overridevirtual |
Reimplemented from G4VHitsCollection.
Definition at line 605 of file G4THitsVector.hh.
|
inline |
Definition at line 147 of file G4THitsVector.hh.
|
inline |
Definition at line 149 of file G4THitsVector.hh.
|
inline |
Definition at line 158 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 465 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 478 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::add(), G4VTHitsVector< T, Vector_t >::at(), G4VTHitsVector< T, Vector_t >::operator[](), G4VTHitsVector< T, Vector_t >::set(), and G4VTHitsVector< T, Vector_t >::set().
|
inlineprotected |
Definition at line 529 of file G4THitsVector.hh.
|
inline |
Definition at line 99 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::begin(), G4VTHitsVector< T, Vector_t >::begin(), G4VTHitsVector< T, Vector_t >::cbegin(), G4VTHitsVector< T, Vector_t >::cend(), G4VTHitsVector< T, Vector_t >::end(), G4VTHitsVector< T, Vector_t >::end(), G4VTHitsVector< T, Vector_t >::GetObject(), and G4VTHitsVector< T, Vector_t >::size().
|
inlineoverride |
Definition at line 163 of file G4THitsVector.hh.
|
inline |
Definition at line 105 of file G4THitsVector.hh.
|
inline |
Definition at line 103 of file G4THitsVector.hh.
|
inline |
Definition at line 591 of file G4THitsVector.hh.
|
inline |
Definition at line 123 of file G4THitsVector.hh.
|
inline |
Definition at line 141 of file G4THitsVector.hh.
|
inline |
Definition at line 111 of file G4THitsVector.hh.
|
inline |
Definition at line 129 of file G4THitsVector.hh.
|
inline |
Definition at line 117 of file G4THitsVector.hh.
|
inline |
Definition at line 135 of file G4THitsVector.hh.
|
inlineoverridevirtual |
|
inline |
Definition at line 154 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::add(), G4VTHitsVector< T, Vector_t >::add(), G4VTHitsVector< T, Vector_t >::at(), G4VTHitsVector< T, Vector_t >::G4VTHitsVector(), G4VTHitsVector< T, Vector_t >::GetVector(), G4VTHitsVector< T, Vector_t >::operator+=(), G4VTHitsVector< T, Vector_t >::operator[](), G4VTHitsVector< T, Vector_t >::set(), and G4VTHitsVector< T, Vector_t >::set().
|
inlineprotected |
Definition at line 415 of file G4THitsVector.hh.
|
inline |
Definition at line 191 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::operator+=(), and G4VTHitsVector< T, Vector_t >::resize().
|
inline |
Definition at line 217 of file G4THitsVector.hh.
|
inline |
Definition at line 253 of file G4THitsVector.hh.
|
inline |
|
inline |
Definition at line 229 of file G4THitsVector.hh.
|
inline |
Definition at line 241 of file G4THitsVector.hh.
G4bool G4VTHitsVector< T, Vector_t >::operator== | ( | const this_type & | rhs | ) | const |
Definition at line 583 of file G4THitsVector.hh.
|
inline |
Definition at line 386 of file G4THitsVector.hh.
|
overridevirtual |
Reimplemented from G4VHitsCollection.
Definition at line 613 of file G4THitsVector.hh.
|
inlineprotected |
Definition at line 396 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::at(), G4VTHitsVector< T, Vector_t >::G4VTHitsVector(), G4VTHitsVector< T, Vector_t >::GetVector(), and G4VTHitsVector< T, Vector_t >::operator[]().
|
inlineprotected |
Definition at line 409 of file G4THitsVector.hh.
|
inline |
Definition at line 357 of file G4THitsVector.hh.
|
inline |
Definition at line 367 of file G4THitsVector.hh.
|
inline |
Definition at line 329 of file G4THitsVector.hh.
|
inline |
Definition at line 339 of file G4THitsVector.hh.
|
inline |
Definition at line 101 of file G4THitsVector.hh.
Referenced by G4VTHitsVector< T, Vector_t >::GetObject().