LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
ShadowedMarshaledG4THitsCollection< T > Class Template Reference

#include "MarshaledG4THitsCollection.h"

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

Public Member Functions

G4int operator== (const G4THitsCollection< T > &right) const
 
G4int operator== (const G4THitsCollection< T > &right) const
 
G4int operator== (const G4HitsCollection &right) const
 
G4int operator== (const G4VHitsCollection &right) const
 
void * operator new (size_t)
 
void * operator new (size_t)
 
void operator delete (void *anHC)
 
void operator delete (void *anHC)
 
virtual void DrawAllHits ()
 
virtual void DrawAllHits ()
 
virtual void PrintAllHits ()
 
virtual void PrintAllHits ()
 
T * operator[] (size_t i) const
 
T * operator[] (size_t i) const
 
std::vector< T * > * GetVector () const
 
std::vector< T * > * GetVector () const
 
G4int insert (T *aHit)
 
G4int insert (T *aHit)
 
G4int entries () const
 
G4int entries () const
 
virtual G4VHit * GetHit (size_t i) const
 
virtual G4VHit * GetHit (size_t i) const
 
virtual size_t GetSize () const
 
virtual size_t GetSize () const
 
G4String GetName ()
 
G4String GetName ()
 
G4String GetSDname ()
 
G4String GetSDname ()
 

Protected Attributes

void * theCollection
 
G4String collectionName
 
G4String SDname
 

Friends

class MarshaledG4THitsCollection< T >
 

Detailed Description

template<class T>
class ShadowedMarshaledG4THitsCollection< T >

Definition at line 26 of file MarshaledG4THitsCollection.h.

Member Function Documentation

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

Reimplemented from G4VHitsCollection.

Definition at line 174 of file G4THitsCollection.hh.

References n, and G4HitsCollection::theCollection.

Referenced by G4THitsCollection< T >::GetSize().

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 }
Char_t n[5]
template<class T>
virtual void G4THitsCollection< T >::DrawAllHits ( )
virtualinherited

Reimplemented from G4VHitsCollection.

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

Definition at line 114 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

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

Definition at line 147 of file 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
inlinevirtualinherited

Reimplemented from G4VHitsCollection.

Definition at line 123 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

124  { return (*((std::vector<T*>*)theCollection))[i]; }
template<class T>
virtual G4VHit* G4THitsCollection< T >::GetHit ( size_t  i) const
inlinevirtualinherited

Reimplemented from G4VHitsCollection.

Definition at line 156 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

157  { return (*((std::vector<T*>*)theCollection))[i]; }
G4String G4VHitsCollection::GetName ( )
inlineinherited
G4String G4VHitsCollection::GetName ( )
inlineinherited

Definition at line 78 of file G4VHitsCollection.hh.

References G4VHitsCollection::collectionName.

79  { return collectionName; }
G4String G4VHitsCollection::GetSDname ( )
inlineinherited

Definition at line 78 of file G4VHitsCollection.hh.

References G4VHitsCollection::SDname.

Referenced by MarshaledG4VHitsCollection::marshal2().

79  { return SDname; }
G4String G4VHitsCollection::GetSDname ( )
inlineinherited

Definition at line 80 of file G4VHitsCollection.hh.

References G4VHitsCollection::SDname.

81  { return SDname; }
template<class T>
virtual size_t G4THitsCollection< T >::GetSize ( ) const
inlinevirtualinherited

Reimplemented from G4VHitsCollection.

Definition at line 125 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

126  { return ((std::vector<T*>*)theCollection)->size(); }
template<class T>
std::vector<T*>* G4THitsCollection< T >::GetVector ( ) const
inlineinherited

Definition at line 102 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

103  { return (std::vector<T*>*)theCollection; }
template<class T>
std::vector<T*>* G4THitsCollection< T >::GetVector ( ) const
inlineinherited

Definition at line 135 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

136  { return (std::vector<T*>*)theCollection; }
template<class T>
G4int G4THitsCollection< T >::insert ( T *  aHit)
inlineinherited

Definition at line 105 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

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)
inlineinherited

Definition at line 138 of file 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)
inlineinherited

Definition at line 140 of file 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)
inlineinherited
template<class T >
void * G4THitsCollection< T >::operator new ( size_t  )
inlineinherited

Definition at line 133 of file 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  )
inlineinherited
G4int G4VHitsCollection::operator== ( const G4VHitsCollection right) const
inherited
G4int G4HitsCollection::operator== ( const G4HitsCollection right) const
inherited
template<class T >
G4int G4THitsCollection< T >::operator== ( const G4THitsCollection< T > &  right) const
inherited

Definition at line 171 of file G4THitsCollection.hh.

References G4VHitsCollection::collectionName.

Referenced by G4THitsCollection< T >::GetSize().

172 { return (collectionName==right.collectionName); }
template<class T>
G4int G4THitsCollection< T >::operator== ( const G4THitsCollection< T > &  right) const
inherited
template<class T>
T* G4THitsCollection< T >::operator[] ( size_t  i) const
inlineinherited

Definition at line 99 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

100  { return (*((std::vector<T*>*)theCollection))[i]; }
template<class T>
T* G4THitsCollection< T >::operator[] ( size_t  i) const
inlineinherited

Definition at line 132 of file G4THitsCollection.hh.

References G4HitsCollection::theCollection.

133  { return (*((std::vector<T*>*)theCollection))[i]; }
template<class T >
void G4THitsCollection< T >::PrintAllHits ( )
virtualinherited

Reimplemented from G4VHitsCollection.

Definition at line 183 of file G4THitsCollection.hh.

References n, and G4HitsCollection::theCollection.

Referenced by G4THitsCollection< T >::GetSize().

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 }
Char_t n[5]
template<class T>
virtual void G4THitsCollection< T >::PrintAllHits ( )
virtualinherited

Reimplemented from G4VHitsCollection.

Friends And Related Function Documentation

template<class T>
friend class MarshaledG4THitsCollection< T >
friend

Definition at line 27 of file MarshaledG4THitsCollection.h.

Member Data Documentation

G4String G4VHitsCollection::SDname
protectedinherited

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