Belle II Software  release-08-01-10
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 }
Defines for I/O streams used for error and debug printing.
std::ostream printOut
Default stream for output of Print calls.
double Z
Density in g / cm^3.
Definition: Material.h:10
double A
Atomic number.
Definition: Material.h:11
double mEE
Radiation Length in cm.
Definition: Material.h:13
double radiationLength
Mass number in g / mol.
Definition: Material.h:12