CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
11 
12 
14 {
15 
16  theName = name;
17  theDensity = density;
18  theSymbol = symbol;
19  theA = A;
20  theZ = Z;
21 }
22 
23 
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 }
const double Z[kNumberCalorimeter]
int ALIint
Definition: CocoaGlobals.h:15
bool ALIbool
Definition: CocoaGlobals.h:19
ALIbool operator==(const CocoaMaterialElementary &mate) const
CocoaMaterialElementary(ALIstring name, float density, ALIstring symbol, ALIint A, ALIint Z)
std::string ALIstring
Definition: CocoaGlobals.h:9