Main Page
Namespaces
Classes
Package Documentation
DetectorDescription
Core
interface
DDMaterial.h
Go to the documentation of this file.
1
#ifndef DDMaterial_h
2
#define DDMaterial_h
3
4
#include <iostream>
5
#include <memory>
6
#include <vector>
7
#include <utility>
8
#include "
DetectorDescription/Core/interface/DDName.h
"
9
#include "
DetectorDescription/Core/interface/DDBase.h
"
10
11
namespace
DDI
{
class
Material
; }
12
14
43
class
DDMaterial
:
public
DDBase
<DDName,std::unique_ptr<DDI::Material>>
44
{
45
friend
std::ostream &
operator<<
(std::ostream &,
const
DDMaterial
&);
46
47
public
:
48
using
FractionV
= std::vector<std::pair<DDMaterial, double>>;
49
51
DDMaterial
();
52
54
DDMaterial
(
const
DDName
&
name
);
55
57
DDMaterial
(
const
DDName
&
name
,
double
z,
double
a
,
double
d
);
58
60
DDMaterial
(
const
DDName
&
name
,
double
density);
61
63
int
noOfConstituents()
const
;
64
66
FractionV::value_type
constituent(
int
i
)
const
;
67
69
int
addMaterial(
const
DDMaterial
&
m
,
double
fm);
70
72
double
a
()
const
;
73
75
double
z()
const
;
76
78
double
density()
const
;
79
};
80
81
std::ostream &
operator<<
(std::ostream &,
const
DDMaterial
&);
82
83
#endif
DDBase
Definition:
DDBase.h:10
mps_fire.i
i
Definition:
mps_fire.py:277
DDMaterial
DDMaterial is used to define and access material information.
Definition:
DDMaterial.h:43
DDName
DDName is used to identify DDD entities uniquely.
Definition:
DDName.h:15
g4SimHits_cfi.Material
Material
Definition:
g4SimHits_cfi.py:504
reco::JetExtendedAssociation::value_type
Container::value_type value_type
Definition:
JetExtendedAssociation.h:30
edmIntegrityCheck.d
d
Definition:
edmIntegrityCheck.py:66
operator<<
std::ostream & operator<<(std::ostream &, const DDMaterial &)
Definition:
DDMaterial.cc:132
DDI
Definition:
DDCompactView.h:24
funct::m
m
Definition:
Factorize.h:55
DDBase.h
a
double a
Definition:
hdecay.h:121
DDMaterial::FractionV
std::vector< std::pair< DDMaterial, double >> FractionV
Definition:
DDMaterial.h:48
dataset.name
name
Definition:
dataset.py:45
DDName.h
Generated for CMSSW Reference Manual by
1.8.11