Geant4-11
Data Structures | Public Types | Public Member Functions | Private Attributes
G4Voxel Class Reference

#include <G4DNAMesh.hh>

Data Structures

struct  Index
 

Public Types

using MapList = std::map< MolType, size_t >
 
using MolType = const G4MolecularConfiguration *
 

Public Member Functions

 G4Voxel (MapList &&list, Index &index, G4DNABoundingBox &&box)
 
const IndexGetIndex () const
 
MapListGetMapList ()
 
G4double GetVolume () const
 
void SetMapList (MapList &&mapList)
 
 ~G4Voxel ()=default
 

Private Attributes

G4DNABoundingBox fBox
 
Index fIndex
 
MapList fMapList
 

Detailed Description

Definition at line 41 of file G4DNAMesh.hh.

Member Typedef Documentation

◆ MapList

using G4Voxel::MapList = std::map<MolType, size_t>

Definition at line 77 of file G4DNAMesh.hh.

◆ MolType

Definition at line 76 of file G4DNAMesh.hh.

Constructor & Destructor Documentation

◆ G4Voxel()

G4Voxel::G4Voxel ( MapList &&  list,
Index index,
G4DNABoundingBox &&  box 
)
inline

Definition at line 79 of file G4DNAMesh.hh.

80 : fMapList(std::move(list))
81 , fIndex(index)
82 , fBox(std::move(box))
83 {}
G4DNABoundingBox fBox
Definition: G4DNAMesh.hh:109
MapList fMapList
Definition: G4DNAMesh.hh:107
Index fIndex
Definition: G4DNAMesh.hh:108

◆ ~G4Voxel()

G4Voxel::~G4Voxel ( )
default

Member Function Documentation

◆ GetIndex()

const Index & G4Voxel::GetIndex ( ) const
inline

Definition at line 87 of file G4DNAMesh.hh.

87{ return fIndex; }

References fIndex.

◆ GetMapList()

MapList & G4Voxel::GetMapList ( )
inline

Definition at line 89 of file G4DNAMesh.hh.

89{ return fMapList; }

References fMapList.

Referenced by G4DNAMesh::GetNumberOfType().

◆ GetVolume()

G4double G4Voxel::GetVolume ( ) const
inline

Definition at line 93 of file G4DNAMesh.hh.

94 {
95 auto xlo = fBox.Getxlo();
96 auto ylo = fBox.Getylo();
97 auto zlo = fBox.Getzlo();
98
99 auto xhi = fBox.Getxhi();
100 auto yhi = fBox.Getyhi();
101 auto zhi = fBox.Getzhi();
102
103 return (xhi - xlo) * (yhi - ylo) * (zhi - zlo);
104 }
G4double Getxlo() const
G4double Getyhi() const
G4double Getylo() const
G4double Getxhi() const
G4double Getzlo() const
G4double Getzhi() const

References fBox, G4DNABoundingBox::Getxhi(), G4DNABoundingBox::Getxlo(), G4DNABoundingBox::Getyhi(), G4DNABoundingBox::Getylo(), G4DNABoundingBox::Getzhi(), and G4DNABoundingBox::Getzlo().

◆ SetMapList()

void G4Voxel::SetMapList ( MapList &&  mapList)
inline

Definition at line 91 of file G4DNAMesh.hh.

91{ fMapList = std::move(mapList); }

References fMapList.

Field Documentation

◆ fBox

G4DNABoundingBox G4Voxel::fBox
private

Definition at line 109 of file G4DNAMesh.hh.

Referenced by GetVolume().

◆ fIndex

Index G4Voxel::fIndex
private

Definition at line 108 of file G4DNAMesh.hh.

Referenced by GetIndex().

◆ fMapList

MapList G4Voxel::fMapList
private

Definition at line 107 of file G4DNAMesh.hh.

Referenced by GetMapList(), and SetMapList().


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