LArSoft  v09_90_00
Liquid Argon Software toolkit - https://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 63 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 101 of file G4HCofThisEvent.hh.

References anHCoTHAllocator.

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

Definition at line 101 of file G4HCofThisEvent.hh.

References anHCoTHAllocator.

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

Definition at line 82 of file G4HCofThisEvent.hh.

Referenced by MarshaledG4HCofThisEvent::marshal1().

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

Definition at line 82 of file G4HCofThisEvent.hh.

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

Definition at line 89 of file G4HCofThisEvent.hh.

References n.

Referenced by MarshaledG4HCofThisEvent::marshal1().

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

Definition at line 89 of file G4HCofThisEvent.hh.

References n.

90  {
91  G4int n = 0;
92  for(size_t i=0;i<HC->size();i++)
93  {
94  if((*HC)[i]) n++;
95  }
96  return n;
97  }
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 121 of file G4HCofThisEvent.hh.

References anHCoTHAllocator.

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

Definition at line 114 of file G4HCofThisEvent.hh.

References anHCoTHAllocator.

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

Member Data Documentation

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

Definition at line 75 of file G4HCofThisEvent.hh.


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