Geant4  10.03
G4THitsMap< T > Singleton Reference

#include <G4THitsMap.hh>

+ Inheritance diagram for G4THitsMap< T >:
+ Collaboration diagram for G4THitsMap< T >:

Public Member Functions

 G4THitsMap ()
 
 G4THitsMap (G4String detName, G4String colNam)
 
virtual ~G4THitsMap ()
 
G4int operator== (const G4THitsMap< T > &right) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4THitsMap< T > & operator+= (const G4THitsMap< T > &right) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4THitsMap< T > & operator+= (const G4THitsMap< U > &right) const
 
virtual void DrawAllHits ()
 
virtual void PrintAllHits ()
 
T * operator[] (G4int key) const
 
std::map< G4int, T * > * GetMap () const
 
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4int add (const G4int &key, T *&aHit) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4int add (const G4int &key, T &aHit) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4int add (const G4int &key, U *&aHit) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4int add (const G4int &key, U &aHit) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4int set (const G4int &key, T *&aHit) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4int set (const G4int &key, T &aHit) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4int set (const G4int &key, U *&aHit) const
 
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4int set (const G4int &key, U &aHit) const
 
G4int entries () const
 
void clear ()
 
virtual G4VHitGetHit (size_t) const
 
virtual size_t GetSize () const
 
- Public Member Functions inherited from G4HitsCollection
 G4HitsCollection ()
 
 G4HitsCollection (G4String detName, G4String colNam)
 
virtual ~G4HitsCollection ()
 
G4int operator== (const G4HitsCollection &right) const
 
 G4HitsCollection ()
 
 G4HitsCollection (G4String detName, G4String colNam)
 
virtual ~G4HitsCollection ()
 
G4int operator== (const G4HitsCollection &right) const
 
 G4HitsCollection ()
 
 G4HitsCollection (G4String detName, G4String colNam)
 
virtual ~G4HitsCollection ()
 
G4int operator== (const G4HitsCollection &right) const
 
- Public Member Functions inherited from G4VHitsCollection
 G4VHitsCollection ()
 
 G4VHitsCollection (G4String detName, G4String colNam)
 
virtual ~G4VHitsCollection ()
 
G4int operator== (const G4VHitsCollection &right) const
 
G4String GetName ()
 
G4String GetSDname ()
 
 G4VHitsCollection ()
 
 G4VHitsCollection (G4String detName, G4String colNam)
 
virtual ~G4VHitsCollection ()
 
G4int operator== (const G4VHitsCollection &right) const
 
G4String GetName ()
 
G4String GetSDname ()
 
 G4VHitsCollection ()
 
 G4VHitsCollection (G4String detName, G4String colNam)
 
virtual ~G4VHitsCollection ()
 
G4int operator== (const G4VHitsCollection &right) const
 
G4StringGetName ()
 
G4StringGetSDname ()
 
void SetColID (G4int i)
 
G4int GetColID () const
 

Additional Inherited Members

- Protected Attributes inherited from G4HitsCollection
void * theCollection
 
- Protected Attributes inherited from G4VHitsCollection
G4String collectionName
 
G4String SDname
 
G4int colID
 

Detailed Description

template<typename T>
singleton G4THitsMap< T >

Definition at line 48 of file G4THitsMap.hh.

Constructor & Destructor Documentation

template<typename T >
G4THitsMap< T >::G4THitsMap ( )

Definition at line 213 of file G4THitsMap.hh.

template<typename T >
G4THitsMap< T >::G4THitsMap ( G4String  detName,
G4String  colNam 
)

Definition at line 218 of file G4THitsMap.hh.

References G4HitsCollection::theCollection.

template<typename T >
G4THitsMap< T >::~G4THitsMap ( )
virtual

Definition at line 224 of file G4THitsMap.hh.

Member Function Documentation

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4int G4THitsMap< T >::add ( const G4int key,
T &  aHit 
) const
inline

Definition at line 118 of file G4THitsMap.hh.

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4int G4THitsMap< T >::add ( const G4int key,
U *&  aHit 
) const
inline

Definition at line 130 of file G4THitsMap.hh.

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4int G4THitsMap< T >::add ( const G4int key,
U &  aHit 
) const
inline

Definition at line 142 of file G4THitsMap.hh.

template<typename T >
void G4THitsMap< T >::DrawAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

Definition at line 248 of file G4THitsMap.hh.

template<typename T>
virtual G4VHit* G4THitsMap< T >::GetHit ( size_t  ) const
inlinevirtual

Reimplemented from G4VHitsCollection.

Definition at line 207 of file G4THitsMap.hh.

template<typename T>
std::map<G4int,T*>* G4THitsMap< T >::GetMap ( ) const
inline

Definition at line 99 of file G4THitsMap.hh.

Referenced by G4THitsMap< G4double >::add(), G4GMocrenFileSceneHandler::AddCompound(), G4TheMTRayTracer::CreateBitMap(), G4ScoringCylinder::Draw(), G4ScoringBox::Draw(), G4ScoringCylinder::DrawColumn(), G4ScoringBox::DrawColumn(), B02Run::DumpAllScorer(), B01Run::DumpAllScorer(), B03Run::DumpAllScorer(), RE02Run::DumpAllScorer(), ElectronRun::DumpData(), B3aEventAction::EndOfEventAction(), DicomRunAction::EndOfRunAction(), TSRunAction::EndOfRunAction(), RE06Run::FindMinimum(), B4dEventAction::GetSum(), RE06Run::GetTotal(), RE06Run::Merge(), G4THitsMap< G4double >::operator+=(), G4MPIscorerMerger::Pack(), CexmcEnergyDepositInCalorimeter::PrintAll(), CexmcTrackPointsInCalorimeter::PrintAll(), G4PSEnergyDeposit::PrintAll(), CexmcEnergyDepositInLeftRightSet::PrintAll(), CexmcTrackPointsInLeftRightSet::PrintAll(), G4PSCellCharge::PrintAll(), G4PSDoseDeposit::PrintAll(), G4PSNofStep::PrintAll(), G4PSPassageTrackLength::PrintAll(), G4PSNofCollision::PrintAll(), G4PSMinKinEAtGeneration::PrintAll(), G4PSTrackCounter::PrintAll(), G4PSTermination::PrintAll(), CexmcSimpleEnergyDeposit::PrintAll(), G4PSPassageCellCurrent::PrintAll(), G4PSPopulation::PrintAll(), CexmcTrackPoints::PrintAll(), G4PSPassageCellFlux::PrintAll(), G4PSTrackLength::PrintAll(), G4PSNofSecondary::PrintAll(), G4PSCellFlux::PrintAll(), G4PSSphereSurfaceCurrent::PrintAll(), G4PSCylinderSurfaceFlux::PrintAll(), G4PSCylinderSurfaceCurrent::PrintAll(), G4PSFlatSurfaceCurrent::PrintAll(), G4PSSphereSurfaceFlux::PrintAll(), G4PSFlatSurfaceFlux::PrintAll(), ScoreSpecies::PrintAll(), RE06Run::RecordEvent(), B3bRun::RecordEvent(), Run::RecordEvent(), TSRun::RecordEvent(), and G4THitsMap< G4double >::set().

template<typename T>
virtual size_t G4THitsMap< T >::GetSize ( ) const
inlinevirtual

Reimplemented from G4VHitsCollection.

Definition at line 208 of file G4THitsMap.hh.

Referenced by G4VScoringMesh::Accumulate(), G4MPIscorerMerger::CalculatePackSize(), RE06Run::FindMinimum(), RE06Run::GetTotal(), and G4MPIscorerMerger::Pack().

+ Here is the caller graph for this function:

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4THitsMap<T>& G4THitsMap< T >::operator+= ( const G4THitsMap< T > &  right) const
inline

Definition at line 63 of file G4THitsMap.hh.

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4THitsMap<T>& G4THitsMap< T >::operator+= ( const G4THitsMap< U > &  right) const
inline

Definition at line 76 of file G4THitsMap.hh.

template<typename T>
G4int G4THitsMap< T >::operator== ( const G4THitsMap< T > &  right) const

Definition at line 235 of file G4THitsMap.hh.

References G4VHitsCollection::collectionName.

template<typename T >
T * G4THitsMap< T >::operator[] ( G4int  key) const
inline

Definition at line 239 of file G4THitsMap.hh.

template<typename T >
void G4THitsMap< T >::PrintAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

Definition at line 251 of file G4THitsMap.hh.

References G4cout, and G4endl.

Referenced by G4VScoringMesh::Accumulate().

+ Here is the caller graph for this function:

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4int G4THitsMap< T >::set ( const G4int key,
T *&  aHit 
) const
inline

Definition at line 156 of file G4THitsMap.hh.

Referenced by RE06Run::Merge(), G4PSMinKinEAtGeneration::ProcessHits(), CexmcTrackPoints::ProcessHits(), RE06Run::RecordEvent(), and G4MPIscorerMerger::UnPackHitStatDoubleMap().

+ Here is the caller graph for this function:

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, T >::value, int >::type = 0>
G4int G4THitsMap< T >::set ( const G4int key,
T &  aHit 
) const
inline

Definition at line 167 of file G4THitsMap.hh.

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4int G4THitsMap< T >::set ( const G4int key,
U *&  aHit 
) const
inline

Definition at line 178 of file G4THitsMap.hh.

template<typename T>
template<typename U = T, typename std::enable_if< std::is_same< U, G4double >::value &&std::is_same< T, G4StatDouble >::value, int >::type = 0>
G4int G4THitsMap< T >::set ( const G4int key,
U &  aHit 
) const
inline

Definition at line 190 of file G4THitsMap.hh.


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