LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
G4HCofThisEvent Class Reference

#include "G4HCofThisEvent.hh"

Inheritance diagram for G4HCofThisEvent:
ShadowedMarshaledG4HCofThisEvent ShadowedMarshaledG4HCofThisEvent

Public Member Functions

 G4HCofThisEvent ()
 
 G4HCofThisEvent (G4int cap)
 
 ~G4HCofThisEvent ()
 
void * operator new (size_t)
 
void operator delete (void *anHCoTE)
 
void AddHitsCollection (G4int HCID, G4VHitsCollection *aHC)
 
G4VHitsCollectionGetHC (G4int i)
 
G4int GetNumberOfCollections ()
 
G4int GetCapacity ()
 
 G4HCofThisEvent ()
 
 G4HCofThisEvent (G4int cap)
 
 ~G4HCofThisEvent ()
 
void * operator new (size_t)
 
void operator delete (void *anHCoTE)
 
void AddHitsCollection (G4int HCID, G4VHitsCollection *aHC)
 
G4VHitsCollectionGetHC (G4int i)
 
G4int GetNumberOfCollections ()
 
G4int GetCapacity ()
 

Private Attributes

std::vector< G4VHitsCollection * > * HC
 

Detailed Description

Definition at line 64 of file G4HCofThisEvent.hh.

Constructor & Destructor Documentation

G4HCofThisEvent::G4HCofThisEvent ( )
G4HCofThisEvent::G4HCofThisEvent ( G4int  cap)
G4HCofThisEvent::~G4HCofThisEvent ( )
G4HCofThisEvent::G4HCofThisEvent ( )
G4HCofThisEvent::G4HCofThisEvent ( G4int  cap)
G4HCofThisEvent::~G4HCofThisEvent ( )

Member Function Documentation

void G4HCofThisEvent::AddHitsCollection ( G4int  HCID,
G4VHitsCollection aHC 
)
void G4HCofThisEvent::AddHitsCollection ( G4int  HCID,
G4VHitsCollection aHC 
)
G4int G4HCofThisEvent::GetCapacity ( )
inline

Definition at line 102 of file G4HCofThisEvent.hh.

References anHCoTHAllocator.

103  {
104  return HC->size();
105  }
std::vector< G4VHitsCollection * > * HC
G4int G4HCofThisEvent::GetCapacity ( )
inline

Definition at line 102 of file G4HCofThisEvent.hh.

References anHCoTHAllocator.

103  {
104  return HC->size();
105  }
std::vector< G4VHitsCollection * > * HC
G4VHitsCollection* G4HCofThisEvent::GetHC ( G4int  i)
inline

Definition at line 83 of file G4HCofThisEvent.hh.

Referenced by MarshaledG4HCofThisEvent::marshal1().

84  { return (*HC)[i]; }
std::vector< G4VHitsCollection * > * HC
G4VHitsCollection* G4HCofThisEvent::GetHC ( G4int  i)
inline

Definition at line 83 of file G4HCofThisEvent.hh.

84  { return (*HC)[i]; }
std::vector< G4VHitsCollection * > * HC
G4int G4HCofThisEvent::GetNumberOfCollections ( )
inline

Definition at line 90 of file G4HCofThisEvent.hh.

References n.

Referenced by MarshaledG4HCofThisEvent::marshal1().

91  {
92  G4int n = 0;
93  for(size_t i=0;i<HC->size();i++)
94  {
95  if((*HC)[i]) n++;
96  }
97  return n;
98  }
std::vector< G4VHitsCollection * > * HC
Char_t n[5]
G4int G4HCofThisEvent::GetNumberOfCollections ( )
inline

Definition at line 90 of file G4HCofThisEvent.hh.

References n.

91  {
92  G4int n = 0;
93  for(size_t i=0;i<HC->size();i++)
94  {
95  if((*HC)[i]) n++;
96  }
97  return n;
98  }
std::vector< G4VHitsCollection * > * HC
Char_t n[5]
void G4HCofThisEvent::operator delete ( void *  anHCoTE)
inline
void G4HCofThisEvent::operator delete ( void *  anHCoTE)
inline

Definition at line 122 of file G4HCofThisEvent.hh.

References anHCoTHAllocator.

123 {
124  anHCoTHAllocator.FreeSingle((G4HCofThisEvent*)anHCoTH);
125 }
G4DLLIMPORT G4Allocator< G4HCofThisEvent > anHCoTHAllocator
void* G4HCofThisEvent::operator new ( size_t  )
inline
void * G4HCofThisEvent::operator new ( size_t  )
inline

Definition at line 115 of file G4HCofThisEvent.hh.

References anHCoTHAllocator.

116 {
117  void* anHCoTH;
118  anHCoTH = (void*)anHCoTHAllocator.MallocSingle();
119  return anHCoTH;
120 }
G4DLLIMPORT G4Allocator< G4HCofThisEvent > anHCoTHAllocator

Member Data Documentation

std::vector< G4VHitsCollection * > * G4HCofThisEvent::HC
private

Definition at line 76 of file G4HCofThisEvent.hh.


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