#include <CocoaMaterialElementary.h>
Public Member Functions | |
CocoaMaterialElementary (ALIstring name, float density, ALIstring symbol, ALIint A, ALIint Z) | |
ALIint | getA () const |
float | getDensity () const |
ALIstring | getName () const |
ALIstring | getSymbol () const |
ALIint | getZ () const |
ALIbool | operator== (const CocoaMaterialElementary &mate) const |
~CocoaMaterialElementary () | |
Private Attributes | |
ALIint | theA |
float | theDensity |
ALIstring | theName |
ALIstring | theSymbol |
ALIint | theZ |
Definition at line 16 of file CocoaMaterialElementary.h.
CocoaMaterialElementary::CocoaMaterialElementary | ( | ALIstring | name, |
float | density, | ||
ALIstring | symbol, | ||
ALIint | A, | ||
ALIint | Z | ||
) |
Definition at line 13 of file CocoaMaterialElementary.cc.
References funct::A, mergeVDriftHistosByStation::name, theA, theDensity, theName, theSymbol, theZ, and Gflash::Z.
CocoaMaterialElementary::~CocoaMaterialElementary | ( | ) | [inline] |
Definition at line 22 of file CocoaMaterialElementary.h.
{ };
ALIint CocoaMaterialElementary::getA | ( | ) | const [inline] |
Definition at line 30 of file CocoaMaterialElementary.h.
References theA.
Referenced by CocoaToDDLMgr::ma(), and operator==().
{ return theA; }
float CocoaMaterialElementary::getDensity | ( | ) | const [inline] |
Definition at line 26 of file CocoaMaterialElementary.h.
References theDensity.
Referenced by CocoaToDDLMgr::ma(), and operator==().
{ return theDensity; }
ALIstring CocoaMaterialElementary::getName | ( | ) | const [inline] |
Definition at line 24 of file CocoaMaterialElementary.h.
References theName.
Referenced by CocoaToDDLMgr::lv(), and CocoaToDDLMgr::ma().
{ return theName; }
ALIstring CocoaMaterialElementary::getSymbol | ( | ) | const [inline] |
Definition at line 28 of file CocoaMaterialElementary.h.
References theSymbol.
Referenced by CocoaToDDLMgr::ma(), and operator==().
{ return theSymbol; }
ALIint CocoaMaterialElementary::getZ | ( | ) | const [inline] |
Definition at line 32 of file CocoaMaterialElementary.h.
References theZ.
Referenced by CocoaToDDLMgr::ma(), and operator==().
{ return theZ; }
ALIbool CocoaMaterialElementary::operator== | ( | const CocoaMaterialElementary & | mate | ) | const |
Definition at line 24 of file CocoaMaterialElementary.cc.
References getA(), getDensity(), getSymbol(), getZ(), theA, theDensity, theSymbol, and theZ.
{ float kTolerance = 1.E-9; if( mate.getDensity() - theDensity < kTolerance && mate.getSymbol() == theSymbol && mate.getA() == theA && mate.getZ() == theZ ) { return 1; } else { return 0; } }
ALIint CocoaMaterialElementary::theA [private] |
Definition at line 42 of file CocoaMaterialElementary.h.
Referenced by CocoaMaterialElementary(), getA(), and operator==().
float CocoaMaterialElementary::theDensity [private] |
Definition at line 40 of file CocoaMaterialElementary.h.
Referenced by CocoaMaterialElementary(), getDensity(), and operator==().
ALIstring CocoaMaterialElementary::theName [private] |
Definition at line 39 of file CocoaMaterialElementary.h.
Referenced by CocoaMaterialElementary(), and getName().
ALIstring CocoaMaterialElementary::theSymbol [private] |
Definition at line 41 of file CocoaMaterialElementary.h.
Referenced by CocoaMaterialElementary(), getSymbol(), and operator==().
ALIint CocoaMaterialElementary::theZ [private] |
Definition at line 43 of file CocoaMaterialElementary.h.
Referenced by CocoaMaterialElementary(), getZ(), and operator==().