CMS 3D CMS Logo

Public Member Functions | Private Attributes

CocoaMaterialElementary Class Reference

#include <CocoaMaterialElementary.h>

List of all members.

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 
)

Definition at line 13 of file CocoaMaterialElementary.cc.

References funct::A, AlCaRecoCosmics_cfg::name, theA, theDensity, theName, theSymbol, theZ, and Gflash::Z.

{ 

  theName = name;
  theDensity = density;
  theSymbol = symbol;
  theA = A;
  theZ = Z;
}
CocoaMaterialElementary::~CocoaMaterialElementary ( ) [inline]

Definition at line 22 of file CocoaMaterialElementary.h.

{ };

Member Function Documentation

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;
  }

}

Member Data Documentation

Definition at line 42 of file CocoaMaterialElementary.h.

Referenced by CocoaMaterialElementary(), getA(), and operator==().

Definition at line 40 of file CocoaMaterialElementary.h.

Referenced by CocoaMaterialElementary(), getDensity(), and operator==().

Definition at line 39 of file CocoaMaterialElementary.h.

Referenced by CocoaMaterialElementary(), and getName().

Definition at line 41 of file CocoaMaterialElementary.h.

Referenced by CocoaMaterialElementary(), getSymbol(), and operator==().

Definition at line 43 of file CocoaMaterialElementary.h.

Referenced by CocoaMaterialElementary(), getZ(), and operator==().