Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4THitsCollection< T > Class Template Reference

#include <G4THitsCollection.hh>

Inheritance diagram for G4THitsCollection< T >:
G4HitsCollection G4HitsCollection G4HitsCollection G4VHitsCollection G4VHitsCollection G4VHitsCollection G4VHitsCollection G4VHitsCollection G4VHitsCollection G4VHitsCollection G4VHitsCollection G4VHitsCollection ShadowedMarshaledG4THitsCollection< T > ShadowedMarshaledG4THitsCollection< T > ShadowedMarshaledG4THitsCollection< T > ShadowedMarshaledG4THitsCollection< T >

Public Member Functions

 G4THitsCollection ()
 
 G4THitsCollection (G4String detName, G4String colNam)
 
virtual ~G4THitsCollection ()
 
G4int operator== (const G4THitsCollection< T > &right) const
 
voidoperator new (size_t)
 
void operator delete (void *anHC)
 
virtual void DrawAllHits ()
 
virtual void PrintAllHits ()
 
T * operator[] (size_t i) const
 
std::vector< T * > * GetVector () const
 
G4int insert (T *aHit)
 
G4int entries () const
 
virtual G4VHitGetHit (size_t i) const
 
virtual size_t GetSize () const
 
 G4THitsCollection ()
 
 G4THitsCollection (G4String detName, G4String colNam)
 
virtual ~G4THitsCollection ()
 
G4int operator== (const G4THitsCollection< T > &right) const
 
voidoperator new (size_t)
 
void operator delete (void *anHC)
 
virtual void DrawAllHits ()
 
virtual void PrintAllHits ()
 
T * operator[] (size_t i) const
 
std::vector< T * > * GetVector () const
 
G4int insert (T *aHit)
 
G4int entries () const
 
virtual G4VHitGetHit (size_t i) const
 
virtual size_t GetSize () const
 
 G4THitsCollection ()
 
 G4THitsCollection (G4String detName, G4String colNam)
 
virtual ~G4THitsCollection ()
 
G4int operator== (const G4THitsCollection< T > &right) const
 
voidoperator new (size_t)
 
void operator delete (void *anHC)
 
virtual void DrawAllHits ()
 
virtual void PrintAllHits ()
 
T * operator[] (size_t i) const
 
std::vector< T * > * GetVector () const
 
G4int insert (T *aHit)
 
G4int entries () const
 
virtual G4VHitGetHit (size_t i) 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
 
G4String GetName ()
 
G4String GetSDname ()
 

Additional Inherited Members

- Protected Attributes inherited from G4HitsCollection
voidtheCollection
 
- Protected Attributes inherited from G4VHitsCollection
G4String collectionName
 
G4String SDname
 

Detailed Description

template<class T>
class G4THitsCollection< T >

Definition at line 79 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

Constructor & Destructor Documentation

template<class T >
G4THitsCollection< T >::G4THitsCollection ( )

Definition at line 145 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

146 {
147  std::vector<T*> * theHitsCollection
148  = new std::vector<T*>;
149  theCollection = (void*)theHitsCollection;
150 }
template<class T >
G4THitsCollection< T >::G4THitsCollection ( G4String  detName,
G4String  colNam 
)

Definition at line 152 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

References G4HitsCollection::theCollection.

153 : G4HitsCollection(detName,colNam)
154 {
155  std::vector<T*> * theHitsCollection
156  = new std::vector<T*>;
157  theCollection = (void*)theHitsCollection;
158 }
template<class T >
G4THitsCollection< T >::~G4THitsCollection ( )
virtual

Definition at line 160 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

161 {
162  std::vector<T*> * theHitsCollection
163  = (std::vector<T*>*)theCollection;
164  //theHitsCollection->clearAndDestroy();
165  for(size_t i=0;i<theHitsCollection->size();i++)
166  { delete (*theHitsCollection)[i]; }
167  theHitsCollection->clear();
168  delete theHitsCollection;
169 }
template<class T>
G4THitsCollection< T >::G4THitsCollection ( )
template<class T>
G4THitsCollection< T >::G4THitsCollection ( G4String  detName,
G4String  colNam 
)
template<class T>
virtual G4THitsCollection< T >::~G4THitsCollection ( )
virtual
template<class T>
G4THitsCollection< T >::G4THitsCollection ( )
template<class T>
G4THitsCollection< T >::G4THitsCollection ( G4String  detName,
G4String  colNam 
)
template<class T>
virtual G4THitsCollection< T >::~G4THitsCollection ( )
virtual

Member Function Documentation

template<class T>
virtual void G4THitsCollection< T >::DrawAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

template<class T >
void G4THitsCollection< T >::DrawAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

Definition at line 174 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

References n.

Referenced by LXeEventAction::EndOfEventAction(), and DMXEventAction::EndOfEventAction().

175 {
176  std::vector<T*> * theHitsCollection
177  = (std::vector<T*>*)theCollection;
178  size_t n = theHitsCollection->size();
179  for(size_t i=0;i<n;i++)
180  { (*theHitsCollection)[i]->Draw(); }
181 }
const G4int n
template<class T>
virtual void G4THitsCollection< T >::DrawAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

template<class T>
G4int G4THitsCollection< T >::entries ( ) const
inline

Definition at line 107 of file source/digits_hits/hits/include/G4THitsCollection.hh.

References anHCAllocator_G4MT_TLS_, and G4HitsCollection::theCollection.

108  {
110  std::vector<T*>*theHitsCollection = (std::vector<T*>*)theCollection;
111  return theHitsCollection->size();
112  }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4HitsCollection > * anHCAllocator_G4MT_TLS_
template<class T>
G4int G4THitsCollection< T >::entries ( ) const
inline

Definition at line 114 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

References G4HitsCollection::theCollection.

Referenced by GammaRayTelDigitizer::Digitize(), eRositaTrackerSD::EndOfEvent(), ExTGTrackerSD::EndOfEvent(), SensitiveDetector::EndOfEvent(), ExN02TrackerSD::EndOfEvent(), ExP01TrackerSD::EndOfEvent(), B2TrackerSD::EndOfEvent(), B4cCalorimeterSD::EndOfEvent(), DMXScintSD::EndOfEvent(), DMXPmtSD::EndOfEvent(), ExGflashEventAction::EndOfEventAction(), RE05EventAction::EndOfEventAction(), B5EventAction::EndOfEventAction(), RE01EventAction::EndOfEventAction(), G4HumanPhantomEventAction::EndOfEventAction(), CCalEndOfEventAction::EndOfEventAction(), B4cEventAction::EndOfEventAction(), LXeEventAction::EndOfEventAction(), Em10EventAction::EndOfEventAction(), GammaRayTelEventAction::EndOfEventAction(), DMXEventAction::EndOfEventAction(), UltraEventAction::EndOfEventAction(), XrayFluoEventAction::EndOfEventAction(), RE01StackingAction::NewStage(), ExN04StackingAction::NewStage(), RE05StackingAction::NewStage(), ExN04MuonSD::ProcessHits(), RE05MuonSD::ProcessHits(), B5HodoscopeSD::ProcessHits(), B4cCalorimeterSD::ProcessHits(), and LXePMTSD::ProcessHits_constStep().

115  {
116  std::vector<T*>*theHitsCollection
117  = (std::vector<T*>*)theCollection;
118  return theHitsCollection->size();
119  }
template<class T>
G4int G4THitsCollection< T >::entries ( ) const
inline

Definition at line 147 of file examples/extended/parallel/TopC/ParN04/AnnotatedFiles/G4THitsCollection.hh.

References G4HitsCollection::theCollection.

148  {
149  std::vector<T*>*theHitsCollection
150  = (std::vector<T*>*)theCollection;
151  return theHitsCollection->size();
152  }
template<class T>
virtual G4VHit* G4THitsCollection< T >::GetHit ( size_t  i) const
inlinevirtual

Reimplemented from G4VHitsCollection.

Definition at line 116 of file source/digits_hits/hits/include/G4THitsCollection.hh.

References anHCAllocator_G4MT_TLS_, and G4HitsCollection::theCollection.

117  {
119  return (*((std::vector<T*>*)theCollection))[i];
120  }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4HitsCollection > * anHCAllocator_G4MT_TLS_
template<class T>
virtual G4VHit* G4THitsCollection< T >::GetHit ( size_t  i) const
inlinevirtual
template<class T>
virtual G4VHit* G4THitsCollection< T >::GetHit ( size_t  i) const
inlinevirtual
template<class T>
virtual size_t G4THitsCollection< T >::GetSize ( ) const
inlinevirtual

Reimplemented from G4VHitsCollection.

Definition at line 121 of file source/digits_hits/hits/include/G4THitsCollection.hh.

References anHCAllocator_G4MT_TLS_, and G4HitsCollection::theCollection.

122  {
124  return ((std::vector<T*>*)theCollection)->size(); }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4HitsCollection > * anHCAllocator_G4MT_TLS_
template<class T>
virtual size_t G4THitsCollection< T >::GetSize ( ) const
inlinevirtual
template<class T>
virtual size_t G4THitsCollection< T >::GetSize ( ) const
inlinevirtual
template<class T>
std::vector<T*>* G4THitsCollection< T >::GetVector ( ) const
inline

Definition at line 93 of file source/digits_hits/hits/include/G4THitsCollection.hh.

References anHCAllocator_G4MT_TLS_, and G4HitsCollection::theCollection.

94  {
96  return (std::vector<T*>*)theCollection; }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4HitsCollection > * anHCAllocator_G4MT_TLS_
template<class T>
std::vector<T*>* G4THitsCollection< T >::GetVector ( ) const
inline
template<class T>
std::vector<T*>* G4THitsCollection< T >::GetVector ( ) const
inline
template<class T>
G4int G4THitsCollection< T >::insert ( T *  aHit)
inline

Definition at line 98 of file source/digits_hits/hits/include/G4THitsCollection.hh.

References anHCAllocator_G4MT_TLS_, and G4HitsCollection::theCollection.

99  {
101  std::vector<T*>*theHitsCollection = (std::vector<T*>*)theCollection;
102  theHitsCollection->push_back(aHit);
103  return theHitsCollection->size();
104  }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4HitsCollection > * anHCAllocator_G4MT_TLS_
template<class T>
G4int G4THitsCollection< T >::insert ( T *  aHit)
inline

Definition at line 105 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

References G4HitsCollection::theCollection.

Referenced by RMC01SD::EndOfEvent(), B5HadCalorimeterSD::Initialize(), B5EmCalorimeterSD::Initialize(), B4cCalorimeterSD::Initialize(), Par01CalorimeterSD::ProcessHits(), ExN04CalorimeterSD::ProcessHits(), ExN04MuonSD::ProcessHits(), ExN04TrackerSD::ProcessHits(), RE05TrackerSD::ProcessHits(), RE05CalorimeterSD::ProcessHits(), RE05MuonSD::ProcessHits(), eRositaTrackerSD::ProcessHits(), ExTGTrackerSD::ProcessHits(), G4HumanPhantomSD::ProcessHits(), LXeScintSD::ProcessHits(), B5HodoscopeSD::ProcessHits(), ExGflashSensitiveDetector::ProcessHits(), B5DriftChamberSD::ProcessHits(), RE01TrackerSD::ProcessHits(), RE01CalorimeterSD::ProcessHits(), ExN02TrackerSD::ProcessHits(), F02CalorimeterSD::ProcessHits(), XAluminumElectrodeSensitivity::ProcessHits(), ExP01TrackerSD::ProcessHits(), F01CalorimeterSD::ProcessHits(), F03CalorimeterSD::ProcessHits(), Em10CalorimeterSD::ProcessHits(), GammaRayTelAnticoincidenceSD::ProcessHits(), GammaRayTelCalorimeterSD::ProcessHits(), GammaRayTelTrackerSD::ProcessHits(), B2TrackerSD::ProcessHits(), DMXScintSD::ProcessHits(), UltraPMTSD::ProcessHits(), XrayFluoHPGeSD::ProcessHits(), RMC01SD::ProcessHits(), XrayFluoSD::ProcessHits(), and LXePMTSD::ProcessHits_constStep().

106  {
107  std::vector<T*>*theHitsCollection
108  = (std::vector<T*>*)theCollection;
109  theHitsCollection->push_back(aHit);
110  return theHitsCollection->size();
111  }
template<class T>
G4int G4THitsCollection< T >::insert ( T *  aHit)
inline

Definition at line 138 of file examples/extended/parallel/TopC/ParN04/AnnotatedFiles/G4THitsCollection.hh.

References G4HitsCollection::theCollection.

139  {
140  std::vector<T*>*theHitsCollection
141  = (std::vector<T*>*)theCollection;
142  theHitsCollection->push_back(aHit);
143  return theHitsCollection->size();
144  }
template<class T>
void G4THitsCollection< T >::operator delete ( void anHC)
inline
template<class T >
void G4THitsCollection< T >::operator delete ( void anHC)
inline

Definition at line 140 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

References anHCAllocator.

141 {
142  anHCAllocator.FreeSingle((G4HitsCollection*)anHC);
143 }
G4DLLIMPORT G4Allocator< G4HitsCollection > anHCAllocator
template<class T>
void G4THitsCollection< T >::operator delete ( void anHC)
inline
template<class T>
void* G4THitsCollection< T >::operator new ( size_t  )
inline
template<class T >
void * G4THitsCollection< T >::operator new ( size_t  )
inline

Definition at line 133 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

References anHCAllocator.

134 {
135  void* anHC;
136  anHC = (void*)anHCAllocator.MallocSingle();
137  return anHC;
138 }
G4DLLIMPORT G4Allocator< G4HitsCollection > anHCAllocator
template<class T>
void* G4THitsCollection< T >::operator new ( size_t  )
inline
template<class T>
G4int G4THitsCollection< T >::operator== ( const G4THitsCollection< T > &  right) const
template<class T >
G4int G4THitsCollection< T >::operator== ( const G4THitsCollection< T > &  right) const
template<class T>
G4int G4THitsCollection< T >::operator== ( const G4THitsCollection< T > &  right) const
template<class T>
T* G4THitsCollection< T >::operator[] ( size_t  i) const
inline

Definition at line 87 of file source/digits_hits/hits/include/G4THitsCollection.hh.

References anHCAllocator_G4MT_TLS_, and G4HitsCollection::theCollection.

88  {
90  return (*((std::vector<T*>*)theCollection))[i];
91  }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4HitsCollection > * anHCAllocator_G4MT_TLS_
template<class T>
T* G4THitsCollection< T >::operator[] ( size_t  i) const
inline
template<class T>
T* G4THitsCollection< T >::operator[] ( size_t  i) const
inline
template<class T>
virtual void G4THitsCollection< T >::PrintAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

template<class T >
void G4THitsCollection< T >::PrintAllHits ( )
virtual

Reimplemented from G4VHitsCollection.

Definition at line 183 of file examples/extended/parallel/TopC/ParN02/AnnotatedFiles/G4THitsCollection.hh.

References n.

Referenced by DMXScintSD::EndOfEvent(), DMXPmtSD::EndOfEvent(), and CCaloSD::PrintAll().

184 {
185  std::vector<T*> * theHitsCollection
186  = (std::vector<T*>*)theCollection;
187  size_t n = theHitsCollection->size();
188  for(size_t i=0;i<n;i++)
189  { (*theHitsCollection)[i]->Print(); }
190 }
const G4int n
template<class T>
virtual void G4THitsCollection< T >::PrintAllHits ( )
virtual

Reimplemented from G4VHitsCollection.


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