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 ()
 
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 ()
 
 Material (double d)
 
 Material (double z, double a, double d)
 
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 11 of file Material.h.

Constructor & Destructor Documentation

◆ Material() [1/3]

DDI::Material::Material ( )
inline

Definition at line 13 of file Material.h.

13 {}

◆ Material() [2/3]

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) {}

◆ Material() [3/3]

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

Definition at line 16 of file Material.h.

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

◆ ~Material()

virtual DDI::Material::~Material ( )
inlinevirtual

Definition at line 17 of file Material.h.

17 {}

Member Function Documentation

◆ a() [1/2]

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

Definition at line 24 of file Material.h.

24 { return a_; }

References a_.

◆ a() [2/2]

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

Definition at line 20 of file Material.h.

20 { return a_; }

References a_.

◆ addMaterial()

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

Definition at line 28 of file Material.h.

28  {
29  composites_.emplace_back(std::make_pair(m, fm));
30  return noOfConstituents();
31  }

References composites_, visualization-live-secondInstance_cfg::m, and noOfConstituents().

◆ constituent() [1/2]

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

Definition at line 35 of file Material.h.

35 { return composites_[i]; }

References composites_, and mps_fire::i.

◆ constituent() [2/2]

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

Definition at line 33 of file Material.h.

33 { return composites_[i]; }

References composites_, and mps_fire::i.

◆ density() [1/2]

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

Definition at line 26 of file Material.h.

26 { return density_; }

References density_.

◆ density() [2/2]

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

Definition at line 22 of file Material.h.

22 { return density_; }

References density_.

◆ noOfConsituents()

int DDI::Material::noOfConsituents ( ) const

◆ noOfConstituents()

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

Definition at line 37 of file Material.h.

37 { return composites_.size(); }

References composites_.

Referenced by addMaterial().

◆ z() [1/2]

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

Definition at line 25 of file Material.h.

25 { return z_; }

References z_.

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

◆ z() [2/2]

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

Definition at line 21 of file Material.h.

21 { return z_; }

References z_.

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

Member Data Documentation

◆ a_

double DDI::Material::a_
protected

Definition at line 40 of file Material.h.

Referenced by a().

◆ composites_

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

Definition at line 41 of file Material.h.

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

◆ density_

double DDI::Material::density_
protected

Definition at line 40 of file Material.h.

Referenced by density().

◆ z_

double DDI::Material::z_
protected

Definition at line 40 of file Material.h.

Referenced by z().

mps_fire.i
i
Definition: mps_fire.py:428
DDI::Material::z
double z() const
Definition: Material.h:21
DDI::Material::a
double a() const
Definition: Material.h:20
DDI::Material::noOfConstituents
int noOfConstituents() const
Definition: Material.h:37
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:79
DDI::Material::density_
double density_
Definition: Material.h:40
DDI::Material::composites_
DDMaterial::FractionV composites_
Definition: Material.h:41
ztail.d
d
Definition: ztail.py:151
DDI::Material::z_
double z_
Definition: Material.h:40
DDI::Material::a_
double a_
Definition: Material.h:40