Main Page
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
d
e
f
l
m
o
p
s
t
u
v
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Alignment
CocoaDDLObjects
src
CocoaMaterialElementary.cc
Go to the documentation of this file.
1
// COCOA class implementation file
2
// Id: CocoaMaterialElementary.cc
3
// CAT: Model
4
//
5
// History: v1.0
6
// Pedro Arce
7
#include <cmath>
// include floating-point std::abs functions
8
#include <fstream>
9
#include <map>
10
11
#include "
Alignment/CocoaDDLObjects/interface/CocoaMaterialElementary.h
"
12
13
CocoaMaterialElementary::CocoaMaterialElementary
(
ALIstring
name
,
float
density
,
ALIstring
symbol,
float
A
,
ALIint
Z
)
14
: theName(
name
), theDensity(
density
), theSymbol(symbol), theA(
A
),
theZ
(
Z
) {}
15
16
ALIbool
CocoaMaterialElementary::operator==
(
const
CocoaMaterialElementary
&mate)
const
{
17
// GM: Using numeric_limits<float>::epsilon() might be better instead of a
18
// magic number 'kTolerance'. Not changing this to not break code
19
// potentially relying on this number.
20
const
float
kTolerance = 1.E-9;
21
return
(
std::abs
(mate.
getDensity
() -
theDensity
) < kTolerance && mate.
getSymbol
() ==
theSymbol
&&
22
std::abs
(mate.
getA
() -
theA
) < kTolerance && mate.
getZ
() ==
theZ
);
23
}
CocoaMaterialElementary.h
ALIbool
bool ALIbool
Definition:
CocoaGlobals.h:19
CocoaMaterialElementary::CocoaMaterialElementary
CocoaMaterialElementary(ALIstring name, float density, ALIstring symbol, float A, ALIint Z)
Definition:
CocoaMaterialElementary.cc:13
CocoaMaterialElementary::theA
float theA
Definition:
CocoaMaterialElementary.h:34
CocoaMaterialElementary::getA
float getA() const
Definition:
CocoaMaterialElementary.h:25
ALIstring
std::string ALIstring
Definition:
CocoaGlobals.h:9
CocoaMaterialElementary::getZ
ALIint getZ() const
Definition:
CocoaMaterialElementary.h:26
theZ
T theZ
Definition:
Basic3DVectorLD.h:243
CocoaMaterialElementary::theZ
ALIint theZ
Definition:
CocoaMaterialElementary.h:35
CocoaMaterialElementary::getDensity
float getDensity() const
Definition:
CocoaMaterialElementary.h:23
A
CocoaMaterialElementary::theSymbol
ALIstring theSymbol
Definition:
CocoaMaterialElementary.h:33
CocoaMaterialElementary::theDensity
float theDensity
Definition:
CocoaMaterialElementary.h:32
CocoaMaterialElementary::operator==
ALIbool operator==(const CocoaMaterialElementary &mate) const
Definition:
CocoaMaterialElementary.cc:16
Skims_PA_cff.name
name
Definition:
Skims_PA_cff.py:17
ALIint
int ALIint
Definition:
CocoaGlobals.h:15
funct::abs
Abs< T >::type abs(const T &t)
Definition:
Abs.h:22
BeamSpotPI::Z
Definition:
BeamSpotPayloadInspectorHelper.h:33
CocoaMaterialElementary::getSymbol
ALIstring getSymbol() const
Definition:
CocoaMaterialElementary.h:24
CocoaMaterialElementary
Definition:
CocoaMaterialElementary.h:16
fastSimProducer_cff.density
density
Definition:
fastSimProducer_cff.py:61
Generated for CMSSW Reference Manual by
1.8.16