CMS 3D CMS Logo

DDI::Material Class Reference

#include <DetectorDescription/Core/src/Material.h>

List of all members.

Public Member Functions

double & a ()
double a () const
int addMaterial (const DDMaterial &m, double fm)
DDMaterial::FractionV::value_type & constituent (int i)
const
DDMaterial::FractionV::value_type & 
constituent (int i) const
double & density ()
double density () const
 Material (double d)
 Material (double z, double a, double d)
 Material ()
int noOfConsituents () const
int noOfConstituents () const
double & z ()
double z () const
virtual ~Material ()

Protected Attributes

double a_
DDMaterial::FractionV composites_
double density_
double z_


Detailed Description

Definition at line 12 of file Material.h.


Constructor & Destructor Documentation

DDI::Material::Material (  )  [inline]

Definition at line 15 of file Material.h.

00015 {}

DDI::Material::Material ( double  z,
double  a,
double  d 
) [inline]

Definition at line 16 of file Material.h.

00017      : z_(z), a_(a), density_(d) { }

DDI::Material::Material ( double  d  )  [inline]

Definition at line 19 of file Material.h.

00019 : z_(0), a_(0), density_(d) { }  

virtual DDI::Material::~Material (  )  [inline, virtual]

Definition at line 20 of file Material.h.

00020 {}


Member Function Documentation

double& DDI::Material::a (  )  [inline]

Definition at line 27 of file Material.h.

References a_.

00027 { return a_; }

double DDI::Material::a (  )  const [inline]

Definition at line 23 of file Material.h.

References a_.

00023 { return a_; }

int DDI::Material::addMaterial ( const DDMaterial m,
double  fm 
) [inline]

Definition at line 31 of file Material.h.

References composites_, and noOfConstituents().

00032      { composites_.push_back(std::make_pair(m,fm));
00033        return noOfConstituents();
00034      }

DDMaterial::FractionV::value_type& DDI::Material::constituent ( int  i  )  [inline]

Definition at line 39 of file Material.h.

References composites_.

00040      { return composites_[i]; }

const DDMaterial::FractionV::value_type& DDI::Material::constituent ( int  i  )  const [inline]

Definition at line 36 of file Material.h.

References composites_.

00037      { return composites_[i]; }

double& DDI::Material::density (  )  [inline]

Definition at line 29 of file Material.h.

References density_.

00029 { return density_; }

double DDI::Material::density (  )  const [inline]

Definition at line 25 of file Material.h.

References density_.

00025 { return density_; }

int DDI::Material::noOfConsituents (  )  const

int DDI::Material::noOfConstituents (  )  const [inline]

Definition at line 42 of file Material.h.

References composites_.

Referenced by addMaterial().

00042 { return composites_.size(); } 

double& DDI::Material::z (  )  [inline]

Definition at line 28 of file Material.h.

References z_.

00028 { return z_; }

double DDI::Material::z (  )  const [inline]

Definition at line 24 of file Material.h.

References z_.

00024 { return z_; }


Member Data Documentation

double DDI::Material::a_ [protected]

Definition at line 45 of file Material.h.

Referenced by a().

DDMaterial::FractionV DDI::Material::composites_ [protected]

Definition at line 46 of file Material.h.

Referenced by addMaterial(), constituent(), and noOfConstituents().

double DDI::Material::density_ [protected]

Definition at line 45 of file Material.h.

Referenced by density().

double DDI::Material::z_ [protected]

Definition at line 45 of file Material.h.

Referenced by z().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:37:09 2009 for CMSSW by  doxygen 1.5.4