GENFIT Rev: NoNumberAvailable
Loading...
Searching...
No Matches
Material.cc
Go to the documentation of this file.
1#include "Material.h"
2
3#include "IO.h"
4
5namespace 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
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}
Defines for I/O streams used for error and debug printing.
bool operator==(const DetPlane &lhs, const DetPlane &rhs)
Definition DetPlane.cc:240
std::ostream printOut
bool operator!=(const DetPlane &lhs, const DetPlane &rhs)
Definition DetPlane.cc:262
void Print(const Option_t *="") const
Definition Material.cc:23
double A
Atomic number.
Definition Material.h:11
double Z
Density in g / cm^3.
Definition Material.h:10
double radiationLength
Mass number in g / mol.
Definition Material.h:12
double mEE
Radiation Length in cm.
Definition Material.h:13
double density
Definition Material.h:9