Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
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 <map>
8
#include <fstream>
9
10
#include "
Alignment/CocoaDDLObjects/interface/CocoaMaterialElementary.h
"
11
12
13
CocoaMaterialElementary::CocoaMaterialElementary
(
ALIstring
name
,
float
density,
ALIstring
symbol,
ALIint
A
,
ALIint
Z
)
14
{
15
16
theName
=
name
;
17
theDensity
= density;
18
theSymbol
= symbol;
19
theA
=
A
;
20
theZ
=
Z
;
21
}
22
23
24
ALIbool
CocoaMaterialElementary::operator==
(
const
CocoaMaterialElementary
& mate )
const
25
{
26
float
kTolerance = 1.E-9;
27
if
( mate.
getDensity
() -
theDensity
< kTolerance
28
&& mate.
getSymbol
() ==
theSymbol
29
&& mate.
getA
() ==
theA
30
&& mate.
getZ
() ==
theZ
) {
31
return
1;
32
}
else
{
33
return
0;
34
}
35
36
}
Gflash::Z
const double Z[kNumberCalorimeter]
Definition:
GflashNameSpace.h:58
HLT_25ns14e33_v1_cff.A
tuple A
Definition:
HLT_25ns14e33_v1_cff.py:396
CocoaMaterialElementary.h
CocoaMaterialElementary::getDensity
float getDensity() const
Definition:
CocoaMaterialElementary.h:26
CocoaMaterialElementary::getSymbol
ALIstring getSymbol() const
Definition:
CocoaMaterialElementary.h:28
CocoaMaterialElementary::getA
ALIint getA() const
Definition:
CocoaMaterialElementary.h:30
ALIint
int ALIint
Definition:
CocoaGlobals.h:15
mergeVDriftHistosByStation.name
string name
Definition:
mergeVDriftHistosByStation.py:77
CocoaMaterialElementary::theName
ALIstring theName
Definition:
CocoaMaterialElementary.h:39
CocoaMaterialElementary::getZ
ALIint getZ() const
Definition:
CocoaMaterialElementary.h:32
ALIbool
bool ALIbool
Definition:
CocoaGlobals.h:19
CocoaMaterialElementary::theA
ALIint theA
Definition:
CocoaMaterialElementary.h:42
CocoaMaterialElementary::operator==
ALIbool operator==(const CocoaMaterialElementary &mate) const
Definition:
CocoaMaterialElementary.cc:24
CocoaMaterialElementary
Definition:
CocoaMaterialElementary.h:16
CocoaMaterialElementary::theZ
ALIint theZ
Definition:
CocoaMaterialElementary.h:43
CocoaMaterialElementary::theSymbol
ALIstring theSymbol
Definition:
CocoaMaterialElementary.h:41
CocoaMaterialElementary::CocoaMaterialElementary
CocoaMaterialElementary(ALIstring name, float density, ALIstring symbol, ALIint A, ALIint Z)
Definition:
CocoaMaterialElementary.cc:13
ALIstring
std::string ALIstring
Definition:
CocoaGlobals.h:9
CocoaMaterialElementary::theDensity
float theDensity
Definition:
CocoaMaterialElementary.h:40
Generated for CMSSW Reference Manual by
1.8.5