EIC Software
 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 }