#include <CCalMaterial.hh>
Definition at line 36 of file CCalMaterial.hh.
◆ FractionType
◆ CCalMaterial() [1/3]
Definition at line 35 of file CCalMaterial.cc.
41 for (i=0; i<nconst; i++)
49 for (i=0; i<nconst; i++) {
53 factor=constituents[i]->
Density();
54 for (
int j=0; j<constituents[i]->
NElements(); j++) {
void computeDensity(int nconst, CCalMaterial **constituents, double *weights, FractionType ft)
G4String Element(int i) const
static const G4double factor
double Weight(int i) const
◆ CCalMaterial() [2/3]
◆ ~CCalMaterial()
CCalMaterial::~CCalMaterial |
( |
| ) |
|
|
virtual |
◆ CCalMaterial() [3/3]
CCalMaterial::CCalMaterial |
( |
| ) |
|
|
inlineprotected |
◆ closeMaterial()
void CCalMaterial::closeMaterial |
( |
| ) |
|
|
protected |
Definition at line 129 of file CCalMaterial.cc.
134 for (
int i=0; i<
nElem; i++) {
138 for (
int j=i+1; j<
nElem; j++) {
147 if (trueConst != nElem) {
149 double* newWeight =
new double[trueConst];
152 for(
int i=0; i<
nElem; i++){
161 G4cout <<
"\tGoing from " << nElem <<
" constituents to " << trueConst <<
G4endl;
172 for (
int i=0; i<
nElem; i++)
G4GLOB_DLL std::ostream G4cout
◆ computeDensity()
Definition at line 84 of file CCalMaterial.cc.
89 for (
int i=0; i<nconst; i++) {
92 volume+=(weights[i]/constituents[i]->
Density());
95 mass+=(weights[i]*constituents[i]->
Density());
◆ Density()
double CCalMaterial::Density |
( |
| ) |
const |
|
inline |
◆ Element()
G4String CCalMaterial::Element |
( |
int |
i | ) |
const |
|
inline |
◆ Name()
◆ NElements()
int CCalMaterial::NElements |
( |
| ) |
const |
|
inline |
◆ operator!=()
◆ operator=()
◆ operator==()
◆ Weight()
double CCalMaterial::Weight |
( |
int |
i | ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const CCalMaterial & |
mat |
|
) |
| |
|
friend |
Definition at line 177 of file CCalMaterial.cc.
179 os <<
"Density= " << mat.
density <<
" g/cm3. Number of Elements: " 181 for (
int i=0; i<mat.
nElem; i++)
◆ density
double CCalMaterial::density |
|
protected |
◆ name
◆ nElem
◆ theElements
◆ theWeights
double* CCalMaterial::theWeights |
|
protected |
The documentation for this class was generated from the following files: