ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Public Types | |
typedef T | base_type |
typedef G4atomic< T > | value_type |
typedef std::deque< value_type * > | container_type |
Protected Attributes | |
container_type * | theCollection |
G4Mutex | fMutex |
Protected Attributes inherited from G4VHitsCollection | |
G4String | collectionName |
G4String | SDname |
G4int | colID |
This is an implementation of G4THitsCollection<T> where the underlying type is G4atomic<T>, not just T. A static assert is provided to ensure that T is fundamental. This class should be used in lieu of G4THitsCollection<T> when memory is a concern. Atomics are thread-safe and generally faster that mutexes (as long as the STL implementation is lock-free) but the synchronization does not come without a cost. If performance is the primary concern, use G4THitsCollection<T> in thread-local instances.
Definition at line 85 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 85 of file G4TAtomicHitsCollection.hh
typedef T G4TAtomicHitsCollection< T >::base_type |
Definition at line 89 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 89 of file G4TAtomicHitsCollection.hh
typedef std::deque<value_type*> G4TAtomicHitsCollection< T >::container_type |
Definition at line 94 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 94 of file G4TAtomicHitsCollection.hh
typedef G4atomic<T> G4TAtomicHitsCollection< T >::value_type |
Definition at line 93 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 93 of file G4TAtomicHitsCollection.hh
G4TAtomicHitsCollection< T >::G4TAtomicHitsCollection | ( | ) |
Definition at line 162 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 162 of file G4TAtomicHitsCollection.hh
G4TAtomicHitsCollection< T >::G4TAtomicHitsCollection | ( | G4String | detName, |
G4String | colNam | ||
) |
Definition at line 167 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 167 of file G4TAtomicHitsCollection.hh
|
virtual |
Definition at line 173 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 173 of file G4TAtomicHitsCollection.hh
|
virtual |
Reimplemented from G4VHitsCollection.
Definition at line 189 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 189 of file G4TAtomicHitsCollection.hh
|
inline |
Definition at line 136 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 136 of file G4TAtomicHitsCollection.hh
References G4TAtomicHitsCollection< T >::fMutex, and G4TAtomicHitsCollection< T >::theCollection.
|
inlinevirtual |
Reimplemented from G4VHitsCollection.
Definition at line 144 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 144 of file G4TAtomicHitsCollection.hh
References G4TAtomicHitsCollection< T >::theCollection.
|
inlinevirtual |
Reimplemented from G4VHitsCollection.
Definition at line 148 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 148 of file G4TAtomicHitsCollection.hh
References G4TAtomicHitsCollection< T >::fMutex, and G4TAtomicHitsCollection< T >::theCollection.
|
inline |
Definition at line 123 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 123 of file G4TAtomicHitsCollection.hh
References G4TAtomicHitsCollection< T >::theCollection.
|
inline |
Definition at line 128 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 128 of file G4TAtomicHitsCollection.hh
References G4TAtomicHitsCollection< T >::fMutex, and G4TAtomicHitsCollection< T >::theCollection.
G4bool G4TAtomicHitsCollection< T >::operator== | ( | const G4TAtomicHitsCollection< T > & | right | ) | const |
Definition at line 183 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 183 of file G4TAtomicHitsCollection.hh
References G4VHitsCollection::collectionName.
|
inline |
Definition at line 118 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 118 of file G4TAtomicHitsCollection.hh
References G4TAtomicHitsCollection< T >::theCollection.
|
virtual |
Reimplemented from G4VHitsCollection.
Definition at line 197 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 197 of file G4TAtomicHitsCollection.hh
|
protected |
Definition at line 156 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 156 of file G4TAtomicHitsCollection.hh
Referenced by G4TAtomicHitsCollection< T >::entries(), G4TAtomicHitsCollection< T >::GetSize(), and G4TAtomicHitsCollection< T >::insert().
|
protected |
Definition at line 155 of file G4TAtomicHitsCollection.hh.
View newest version in sPHENIX GitHub at line 155 of file G4TAtomicHitsCollection.hh
Referenced by G4TAtomicHitsCollection< T >::entries(), G4TAtomicHitsCollection< T >::GetHit(), G4TAtomicHitsCollection< T >::GetSize(), G4TAtomicHitsCollection< T >::GetVector(), G4TAtomicHitsCollection< T >::insert(), and G4TAtomicHitsCollection< T >::operator[]().