Geant4  10.00.p01
CCalMaterial Class Reference

#include <CCalMaterial.hh>

+ Inheritance diagram for CCalMaterial:
+ Collaboration diagram for CCalMaterial:

Public Types

enum  FractionType { FTWeight, FTVolume }
 

Public Member Functions

 CCalMaterial (G4String mat, double dens, int nelem, CCalMaterial **constituents, double *weights, FractionType=FTWeight)
 
 CCalMaterial (const CCalMaterial &)
 
virtual ~CCalMaterial ()
 
G4String Name () const
 
double Density () const
 
int NElements () const
 
G4String Element (int i) const
 
double Weight (int i) const
 
G4bool operator== (const CCalMaterial &) const
 
G4bool operator!= (const CCalMaterial &) const
 
CCalMaterialoperator= (const CCalMaterial &)
 

Protected Member Functions

 CCalMaterial ()
 
void computeDensity (int nconst, CCalMaterial **constituents, double *weights, FractionType ft)
 
void closeMaterial ()
 

Protected Attributes

G4String name
 
double density
 
int nElem
 
G4StringtheElements
 
double * theWeights
 

Friends

std::ostream & operator<< (std::ostream &, const CCalMaterial &)
 

Detailed Description

Definition at line 36 of file CCalMaterial.hh.

Member Enumeration Documentation

Enumerator
FTWeight 
FTVolume 

Definition at line 41 of file CCalMaterial.hh.

Constructor & Destructor Documentation

CCalMaterial::CCalMaterial ( G4String  mat,
double  dens,
int  nelem,
CCalMaterial **  constituents,
double *  weights,
FractionType  ft = FTWeight 
)

Definition at line 35 of file CCalMaterial.cc.

References closeMaterial(), computeDensity(), Density(), density, Element(), FTWeight, nElem, NElements(), theElements, theWeights, and Weight().

+ Here is the call graph for this function:

CCalMaterial::CCalMaterial ( const CCalMaterial mat)

Definition at line 67 of file CCalMaterial.cc.

References nElem, theElements, and theWeights.

CCalMaterial::~CCalMaterial ( )
virtual

Definition at line 77 of file CCalMaterial.cc.

References theElements, and theWeights.

CCalMaterial::CCalMaterial ( )
inlineprotected

Definition at line 63 of file CCalMaterial.hh.

Member Function Documentation

void CCalMaterial::closeMaterial ( )
protected

Definition at line 129 of file CCalMaterial.cc.

References G4cout, G4endl, nElem, theElements, and theWeights.

Referenced by CCalAMaterial::CCalAMaterial(), and CCalMaterial().

+ Here is the caller graph for this function:

void CCalMaterial::computeDensity ( int  nconst,
CCalMaterial **  constituents,
double *  weights,
FractionType  ft 
)
protected

Definition at line 84 of file CCalMaterial.cc.

References Density(), density, and FTWeight.

Referenced by CCalAMaterial::CCalAMaterial(), and CCalMaterial().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

double CCalMaterial::Density ( ) const
inline

Definition at line 52 of file CCalMaterial.hh.

References density.

Referenced by CCalMaterial(), computeDensity(), and CCalMaterialFactory::findMaterial().

+ Here is the caller graph for this function:

G4String CCalMaterial::Element ( int  i) const
inline

Definition at line 54 of file CCalMaterial.hh.

References theElements.

Referenced by CCalAMaterial::CCalAMaterial(), CCalMaterial(), and CCalMaterialFactory::findMaterial().

+ Here is the caller graph for this function:

G4String CCalMaterial::Name ( ) const
inline

Definition at line 51 of file CCalMaterial.hh.

References name.

Referenced by CCalMaterialFactory::findMaterial().

+ Here is the caller graph for this function:

int CCalMaterial::NElements ( ) const
inline

Definition at line 53 of file CCalMaterial.hh.

References nElem.

Referenced by CCalAMaterial::CCalAMaterial(), CCalMaterial(), and CCalMaterialFactory::findMaterial().

+ Here is the caller graph for this function:

G4bool CCalMaterial::operator!= ( const CCalMaterial mat) const

Definition at line 125 of file CCalMaterial.cc.

References name.

CCalMaterial & CCalMaterial::operator= ( const CCalMaterial mat)

Definition at line 102 of file CCalMaterial.cc.

References density, name, nElem, theElements, and theWeights.

G4bool CCalMaterial::operator== ( const CCalMaterial mat) const

Definition at line 121 of file CCalMaterial.cc.

References name.

double CCalMaterial::Weight ( int  i) const
inline

Definition at line 55 of file CCalMaterial.hh.

References theWeights.

Referenced by CCalAMaterial::CCalAMaterial(), CCalMaterial(), and CCalMaterialFactory::findMaterial().

+ Here is the caller graph for this function:

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const CCalMaterial mat 
)
friend

Definition at line 177 of file CCalMaterial.cc.

Member Data Documentation

double CCalMaterial::density
protected
G4String CCalMaterial::name
protected
int CCalMaterial::nElem
protected
double* CCalMaterial::theWeights
protected

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