Geant4_10
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
CCalMaterial Class Reference

#include <CCalMaterial.hh>

Inheritance diagram for CCalMaterial:
Inheritance graph
[legend]
Collaboration diagram for CCalMaterial:
Collaboration graph
[legend]

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.

Here is the call graph for this function:

CCalMaterial::CCalMaterial ( const CCalMaterial mat)

Definition at line 67 of file CCalMaterial.cc.

CCalMaterial::~CCalMaterial ( )
virtual

Definition at line 77 of file CCalMaterial.cc.

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.

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.

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.

Here is the caller graph for this function:

G4String CCalMaterial::Element ( int  i) const
inline

Definition at line 54 of file CCalMaterial.hh.

Here is the caller graph for this function:

G4String CCalMaterial::Name ( ) const
inline

Definition at line 51 of file CCalMaterial.hh.

Here is the caller graph for this function:

int CCalMaterial::NElements ( ) const
inline

Definition at line 53 of file CCalMaterial.hh.

Here is the caller graph for this function:

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

Definition at line 125 of file CCalMaterial.cc.

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

Definition at line 102 of file CCalMaterial.cc.

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

Definition at line 121 of file CCalMaterial.cc.

double CCalMaterial::Weight ( int  i) const
inline

Definition at line 55 of file CCalMaterial.hh.

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

Definition at line 71 of file CCalMaterial.hh.

G4String CCalMaterial::name
protected

Definition at line 70 of file CCalMaterial.hh.

int CCalMaterial::nElem
protected

Definition at line 72 of file CCalMaterial.hh.

G4String* CCalMaterial::theElements
protected

Definition at line 73 of file CCalMaterial.hh.

double* CCalMaterial::theWeights
protected

Definition at line 74 of file CCalMaterial.hh.


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