Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CrystalAtomBase Class Reference

#include <G4CrystalAtomBase.hh>

Public Member Functions

 G4CrystalAtomBase ()=default
 
 G4CrystalAtomBase (const G4ThreeVector &apos)
 
 ~G4CrystalAtomBase ()=default
 
std::vector< G4ThreeVectorGetPos ()
 
G4ThreeVector GetPos (G4int idx)
 
void AddPos (const G4ThreeVector &a3vec)
 
void SetPos (std::vector< G4ThreeVector > a3vecvec)
 
void DelPos (G4int idx)
 

Detailed Description

Definition at line 46 of file G4CrystalAtomBase.hh.

Constructor & Destructor Documentation

◆ G4CrystalAtomBase() [1/2]

G4CrystalAtomBase::G4CrystalAtomBase ( )
default

◆ G4CrystalAtomBase() [2/2]

G4CrystalAtomBase::G4CrystalAtomBase ( const G4ThreeVector & apos)
inline

Definition at line 53 of file G4CrystalAtomBase.hh.

53{ AddPos(apos); };
void AddPos(const G4ThreeVector &a3vec)

◆ ~G4CrystalAtomBase()

G4CrystalAtomBase::~G4CrystalAtomBase ( )
default

Member Function Documentation

◆ AddPos()

void G4CrystalAtomBase::AddPos ( const G4ThreeVector & a3vec)
inline

Definition at line 59 of file G4CrystalAtomBase.hh.

59{ thePos.push_back(a3vec); }

Referenced by G4CrystalAtomBase().

◆ DelPos()

void G4CrystalAtomBase::DelPos ( G4int idx)
inline

Definition at line 61 of file G4CrystalAtomBase.hh.

61{ thePos.erase(thePos.begin() + idx); }

◆ GetPos() [1/2]

std::vector< G4ThreeVector > G4CrystalAtomBase::GetPos ( )
inline

Definition at line 56 of file G4CrystalAtomBase.hh.

56{ return thePos; }

◆ GetPos() [2/2]

G4ThreeVector G4CrystalAtomBase::GetPos ( G4int idx)
inline

Definition at line 58 of file G4CrystalAtomBase.hh.

58{ return thePos[idx]; }

◆ SetPos()

void G4CrystalAtomBase::SetPos ( std::vector< G4ThreeVector > a3vecvec)
inline

Definition at line 60 of file G4CrystalAtomBase.hh.

60{ thePos = std::move(a3vecvec); }

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