CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CocoaMaterialElementary Class Reference

#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
 

Detailed Description

Definition at line 16 of file CocoaMaterialElementary.h.

Constructor & Destructor Documentation

CocoaMaterialElementary::CocoaMaterialElementary ( ALIstring  name,
float  density,
ALIstring  symbol,
ALIint  A,
ALIint  Z 
)
CocoaMaterialElementary::~CocoaMaterialElementary ( )
inline

Definition at line 22 of file CocoaMaterialElementary.h.

22 { };

Member Function Documentation

ALIint CocoaMaterialElementary::getA ( ) const
inline

Definition at line 30 of file CocoaMaterialElementary.h.

References theA.

Referenced by CocoaToDDLMgr::ma(), and operator==().

30  {
31  return theA; }
float CocoaMaterialElementary::getDensity ( ) const
inline

Definition at line 26 of file CocoaMaterialElementary.h.

References theDensity.

Referenced by CocoaToDDLMgr::ma(), and operator==().

26  {
27  return theDensity; }
ALIstring CocoaMaterialElementary::getName ( ) const
inline

Definition at line 24 of file CocoaMaterialElementary.h.

References theName.

Referenced by plotting.Plot::draw(), CocoaToDDLMgr::lv(), and CocoaToDDLMgr::ma().

24  {
25  return theName; }
ALIstring CocoaMaterialElementary::getSymbol ( ) const
inline

Definition at line 28 of file CocoaMaterialElementary.h.

References theSymbol.

Referenced by CocoaToDDLMgr::ma(), and operator==().

28  {
29  return theSymbol; }
ALIint CocoaMaterialElementary::getZ ( ) const
inline

Definition at line 32 of file CocoaMaterialElementary.h.

References theZ.

Referenced by CocoaToDDLMgr::ma(), and operator==().

32  {
33  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.

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 }

Member Data Documentation

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
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==().