CMS 3D CMS Logo

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 11 of file Material.h.

Constructor & Destructor Documentation

DDI::Material::Material ( )
inline

Definition at line 13 of file Material.h.

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

Definition at line 14 of file Material.h.

14 : z_(z), a_(a), density_(d) {}
double z_
Definition: Material.h:40
double a_
Definition: Material.h:40
d
Definition: ztail.py:151
double z() const
Definition: Material.h:21
double a() const
Definition: Material.h:20
double density_
Definition: Material.h:40
DDI::Material::Material ( double  d)
inline

Definition at line 16 of file Material.h.

16 : z_(0), a_(0), density_(d) {}
double z_
Definition: Material.h:40
double a_
Definition: Material.h:40
d
Definition: ztail.py:151
double density_
Definition: Material.h:40
virtual DDI::Material::~Material ( )
inlinevirtual

Definition at line 17 of file Material.h.

References noOfConsituents().

17 {}

Member Function Documentation

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

Definition at line 20 of file Material.h.

References a_.

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

Definition at line 24 of file Material.h.

References a_.

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

Definition at line 28 of file Material.h.

References composites_, and noOfConstituents().

28  {
29  composites_.emplace_back(std::make_pair(m, fm));
30  return noOfConstituents();
31  }
DDMaterial::FractionV composites_
Definition: Material.h:41
int noOfConstituents() const
Definition: Material.h:37
const DDMaterial::FractionV::value_type& DDI::Material::constituent ( int  i) const
inline

Definition at line 33 of file Material.h.

References composites_, and mps_fire::i.

33 { return composites_[i]; }
DDMaterial::FractionV composites_
Definition: Material.h:41
DDMaterial::FractionV::value_type& DDI::Material::constituent ( int  i)
inline

Definition at line 35 of file Material.h.

References composites_, and mps_fire::i.

35 { return composites_[i]; }
DDMaterial::FractionV composites_
Definition: Material.h:41
double DDI::Material::density ( ) const
inline

Definition at line 22 of file Material.h.

References density_.

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

Definition at line 26 of file Material.h.

References density_.

26 { return density_; }
double density_
Definition: Material.h:40
int DDI::Material::noOfConsituents ( ) const

Referenced by ~Material().

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

Definition at line 37 of file Material.h.

References composites_.

Referenced by addMaterial().

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

Definition at line 21 of file Material.h.

References z_.

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

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

Definition at line 25 of file Material.h.

References z_.

Referenced by geometryXMLparser.Alignable::pos(), and ntupleDataFormat._HitObject::r3D().

25 { return z_; }
double z_
Definition: Material.h:40

Member Data Documentation

double DDI::Material::a_
protected

Definition at line 40 of file Material.h.

Referenced by a().

DDMaterial::FractionV DDI::Material::composites_
protected

Definition at line 41 of file Material.h.

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

double DDI::Material::density_
protected

Definition at line 40 of file Material.h.

Referenced by density().

double DDI::Material::z_
protected

Definition at line 40 of file Material.h.

Referenced by z().