Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
Core
src
Material.h
Go to the documentation of this file.
1
#ifndef DDI_Material_h
2
#define DDI_Material_h
3
4
#include <iostream>
5
#include <vector>
6
#include <utility>
7
#include "
DetectorDescription/Core/interface/DDMaterial.h
"
8
9
10
namespace
DDI
{
11
12
class
Material
13
{
14
public
:
15
Material
(){}
16
Material
(
double
z
,
double
a
,
double
d
)
17
:
z_
(z),
a_
(a),
density_
(d) { }
18
19
Material
(
double
d
) :
z_
(0),
a_
(0),
density_
(d) { }
20
virtual
~Material
(){}
21
int
noOfConsituents
()
const
;
22
23
double
a
()
const
{
return
a_
; }
24
double
z
()
const
{
return
z_
; }
25
double
density
()
const
{
return
density_
; }
26
27
double
&
a
(){
return
a_
; }
28
double
&
z
(){
return
z_
; }
29
double
&
density
(){
return
density_
; }
30
31
int
addMaterial
(
const
DDMaterial
&
m
,
double
fm)
32
{
composites_
.emplace_back(std::make_pair(m,fm));
33
return
noOfConstituents
();
34
}
35
36
const
DDMaterial::FractionV::value_type
&
constituent
(
int
i
)
const
37
{
return
composites_
[
i
]; }
38
39
DDMaterial::FractionV::value_type
&
constituent
(
int
i
)
40
{
return
composites_
[
i
]; }
41
42
int
noOfConstituents
()
const
{
return
composites_
.size(); }
43
44
protected
:
45
double
z_
,
a_
,
density_
;
46
DDMaterial::FractionV
composites_
;
47
};
48
49
}
50
#endif
DDI::Material::noOfConsituents
int noOfConsituents() const
DDMaterial.h
DDI::Material::composites_
DDMaterial::FractionV composites_
Definition:
Material.h:46
mps_fire.i
i
Definition:
mps_fire.py:277
DDI::Material::~Material
virtual ~Material()
Definition:
Material.h:20
DDMaterial
DDMaterial is used to define and access material information.
Definition:
DDMaterial.h:43
DDI::Material::z_
double z_
Definition:
Material.h:45
DDI::Material::addMaterial
int addMaterial(const DDMaterial &m, double fm)
Definition:
Material.h:31
DDI::Material::constituent
DDMaterial::FractionV::value_type & constituent(int i)
Definition:
Material.h:39
DDI::Material::z
double & z()
Definition:
Material.h:28
DDI::Material::a
double & a()
Definition:
Material.h:27
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
DDI::Material
Definition:
Material.h:12
DDI::Material::a_
double a_
Definition:
Material.h:45
DDI::Material::constituent
const DDMaterial::FractionV::value_type & constituent(int i) const
Definition:
Material.h:36
edmIntegrityCheck.d
d
Definition:
edmIntegrityCheck.py:66
DDI::Material::Material
Material(double d)
Definition:
Material.h:19
DDI::Material::noOfConstituents
int noOfConstituents() const
Definition:
Material.h:42
DDI::Material::z
double z() const
Definition:
Material.h:24
DDI::Material::density
double density() const
Definition:
Material.h:25
DDI::Material::Material
Material()
Definition:
Material.h:15
DDI
Definition:
DDCompactView.h:24
funct::m
m
Definition:
Factorize.h:55
DDI::Material::Material
Material(double z, double a, double d)
Definition:
Material.h:16
DDI::Material::density
double & density()
Definition:
Material.h:29
DDI::Material::a
double a() const
Definition:
Material.h:23
DDI::Material::density_
double density_
Definition:
Material.h:45
DDMaterial::FractionV
std::vector< std::pair< DDMaterial, double >> FractionV
Definition:
DDMaterial.h:48
Generated for CMSSW Reference Manual by
1.8.11