#include <CCalMaterial.hh>
Definition at line 36 of file CCalMaterial.hh.
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++) {
double Weight(int i) const
void computeDensity(int nconst, CCalMaterial **constituents, double *weights, FractionType ft)
G4String Element(int i) const
CCalMaterial::~CCalMaterial |
( |
| ) |
|
|
virtual |
CCalMaterial::CCalMaterial |
( |
| ) |
|
|
inlineprotected |
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
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());
double CCalMaterial::Density |
( |
| ) |
const |
|
inline |
int CCalMaterial::NElements |
( |
| ) |
const |
|
inline |
double CCalMaterial::Weight |
( |
int |
i | ) |
const |
|
inline |
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++)
double CCalMaterial::density |
|
protected |
double* CCalMaterial::theWeights |
|
protected |
The documentation for this class was generated from the following files:
- source/geant4.10.03.p03/examples/advanced/composite_calorimeter/include/CCalMaterial.hh
- source/geant4.10.03.p03/examples/advanced/composite_calorimeter/src/CCalMaterial.cc