CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
DDI::Material Class Reference

#include <Material.h>

Public Member Functions

double a () const
 
double & a ()
 
int addMaterial (const DDMaterial &m, double fm)
 
const
DDMaterial::FractionV::value_type & 
constituent (int i) const
 
DDMaterial::FractionV::value_type & constituent (int i)
 
double density () const
 
double & density ()
 
 Material ()
 
 Material (double z, double a, double d)
 
 Material (double d)
 
int noOfConsituents () const
 
int noOfConstituents () const
 
double z () const
 
double & z ()
 
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.

15 {}
DDI::Material::Material ( double  z,
double  a,
double  d 
)
inline

Definition at line 16 of file Material.h.

17  : z_(z), a_(a), density_(d) { }
double z_
Definition: Material.h:45
double a_
Definition: Material.h:45
double z() const
Definition: Material.h:24
double a() const
Definition: Material.h:23
double density_
Definition: Material.h:45
DDI::Material::Material ( double  d)
inline

Definition at line 19 of file Material.h.

19 : z_(0), a_(0), density_(d) { }
double z_
Definition: Material.h:45
double a_
Definition: Material.h:45
double density_
Definition: Material.h:45
virtual DDI::Material::~Material ( )
inlinevirtual

Definition at line 20 of file Material.h.

20 {}

Member Function Documentation

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

Definition at line 23 of file Material.h.

References a_.

23 { return a_; }
double a_
Definition: Material.h:45
double& DDI::Material::a ( )
inline

Definition at line 27 of file Material.h.

References a_.

27 { return a_; }
double a_
Definition: Material.h:45
int DDI::Material::addMaterial ( const DDMaterial m,
double  fm 
)
inline

Definition at line 31 of file Material.h.

References composites_, and noOfConstituents().

32  { composites_.push_back(std::make_pair(m,fm));
33  return noOfConstituents();
34  }
DDMaterial::FractionV composites_
Definition: Material.h:46
int noOfConstituents() const
Definition: Material.h:42
const DDMaterial::FractionV::value_type& DDI::Material::constituent ( int  i) const
inline

Definition at line 36 of file Material.h.

References composites_, and i.

37  { return composites_[i]; }
int i
Definition: DBlmapReader.cc:9
DDMaterial::FractionV composites_
Definition: Material.h:46
DDMaterial::FractionV::value_type& DDI::Material::constituent ( int  i)
inline

Definition at line 39 of file Material.h.

References composites_, and i.

40  { return composites_[i]; }
int i
Definition: DBlmapReader.cc:9
DDMaterial::FractionV composites_
Definition: Material.h:46
double DDI::Material::density ( ) const
inline

Definition at line 25 of file Material.h.

References density_.

25 { return density_; }
double density_
Definition: Material.h:45
double& DDI::Material::density ( )
inline

Definition at line 29 of file Material.h.

References density_.

29 { return density_; }
double density_
Definition: Material.h:45
int DDI::Material::noOfConsituents ( ) const
int DDI::Material::noOfConstituents ( ) const
inline

Definition at line 42 of file Material.h.

References composites_.

Referenced by addMaterial().

42 { return composites_.size(); }
DDMaterial::FractionV composites_
Definition: Material.h:46
double DDI::Material::z ( ) const
inline

Definition at line 24 of file Material.h.

References z_.

Referenced by geometryXMLparser.Alignable::pos().

24 { return z_; }
double z_
Definition: Material.h:45
double& DDI::Material::z ( )
inline

Definition at line 28 of file Material.h.

References z_.

Referenced by geometryXMLparser.Alignable::pos().

28 { return z_; }
double z_
Definition: Material.h:45

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().