#include <G4HCofThisEvent.hh>
Definition at line 49 of file G4HCofThisEvent.hh.
◆ G4HCofThisEvent() [1/3]
G4HCofThisEvent::G4HCofThisEvent |
( |
| ) |
|
◆ G4HCofThisEvent() [2/3]
G4HCofThisEvent::G4HCofThisEvent |
( |
G4int | cap | ) |
|
|
explicit |
Definition at line 39 of file G4HCofThisEvent.cc.
40{
41 HC = new std::vector<G4VHitsCollection*>(cap, nullptr);
42}
◆ ~G4HCofThisEvent()
G4HCofThisEvent::~G4HCofThisEvent |
( |
| ) |
|
◆ G4HCofThisEvent() [3/3]
Definition at line 60 of file G4HCofThisEvent.cc.
61{
62 HC = new std::vector<G4VHitsCollection*>(rhs.HC->size());
63 for (unsigned int i = 0; i < rhs.HC->size(); ++i)
64 *(HC->at(i)) = *(rhs.HC->at(i));
65}
◆ AddHitsCollection()
Definition at line 52 of file G4HCofThisEvent.cc.
53{
54 if (HCID >= 0 && HCID <
G4int(HC->size())) {
56 (*HC)[HCID] = aHC;
57 }
58}
Referenced by G4PSCellCharge::Initialize(), G4PSCellFlux::Initialize(), G4PSCylinderSurfaceCurrent::Initialize(), G4PSCylinderSurfaceFlux::Initialize(), G4PSDoseDeposit::Initialize(), G4PSEnergyDeposit::Initialize(), G4PSFlatSurfaceCurrent::Initialize(), G4PSFlatSurfaceFlux::Initialize(), G4PSMinKinEAtGeneration::Initialize(), G4PSNofCollision::Initialize(), G4PSNofSecondary::Initialize(), G4PSNofStep::Initialize(), G4PSPassageCellCurrent::Initialize(), G4PSPassageCellFlux::Initialize(), G4PSPassageTrackLength::Initialize(), G4PSPopulation::Initialize(), G4PSSphereSurfaceCurrent::Initialize(), G4PSSphereSurfaceFlux::Initialize(), G4PSTermination::Initialize(), G4PSTrackCounter::Initialize(), G4PSTrackLength::Initialize(), and G4PSVolumeFlux::Initialize().
◆ GetCapacity()
size_t G4HCofThisEvent::GetCapacity |
( |
| ) |
|
|
inline |
◆ GetHC()
◆ GetNumberOfCollections()
G4int G4HCofThisEvent::GetNumberOfCollections |
( |
| ) |
|
|
inline |
◆ operator delete()
void G4HCofThisEvent::operator delete |
( |
void * | anHCoTE | ) |
|
|
inline |
Definition at line 101 of file G4HCofThisEvent.hh.
102{
104}
G4DLLIMPORT G4Allocator< G4HCofThisEvent > *& anHCoTHAllocator_G4MT_TLS_()
◆ operator new()
void * G4HCofThisEvent::operator new |
( |
size_t | | ) |
|
|
inline |
◆ operator=()
Definition at line 67 of file G4HCofThisEvent.cc.
68{
69 if (this == &rhs) return *this;
70
72 delete it;
73 }
74 HC->resize(rhs.HC->size());
75 for (unsigned int i = 0; i < rhs.HC->size(); ++i)
76 *(HC->at(i)) = *(rhs.HC->at(i));
77 return *this;
78}
The documentation for this class was generated from the following files: