EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Material.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Material.cc
1
#include "
Material.h
"
2
3
#include "
IO.h
"
4
5
namespace
genfit {
6
7
bool
operator==
(
const
Material
& lhs,
const
Material
& rhs){
8
if
(&lhs == &rhs)
9
return
true
;
10
11
return
!(lhs.
density
!= rhs.
density
or
12
lhs.
Z
!= rhs.
Z
or
13
lhs.
A
!= rhs.
A
or
14
lhs.
radiationLength
!= rhs.
radiationLength
or
15
lhs.
mEE
!= rhs.
mEE
);
16
17
}
18
19
bool
operator!=
(
const
Material
& lhs,
const
Material
& rhs) {
20
return
!(lhs==rhs);
21
}
22
23
void
Material::Print
(
const
Option_t*)
const
{
24
printOut
<<
"Density = "
<<
density
<<
", \t"
25
<<
"Z = "
<<
Z
<<
", \t"
26
<<
"A = "
<<
A
<<
", \t"
27
<<
"radiationLength = "
<<
radiationLength
<<
", \t"
28
<<
"mEE = "
<<
mEE
<<
"\n"
;
29
}
30
31
}
fun4all_GenFit
blob
master
core
src
Material.cc
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:53
using
1.8.2 with
EIC GitHub integration