VGM Version 5.3
Loading...
Searching...
No Matches
RootGM::Element Class Reference

VGM implementation for Root element using TGeoElement object. More...

#include <Element.h>

Inheritance diagram for RootGM::Element:

Public Member Functions

 Element (const std::string &name, const std::string &symbol, double z, double a)
 
 Element (const std::string &name, const std::string &symbol, const VGM::IsotopeVector &isotopes, const VGM::RelAbundanceVector &relAbundances)
 
 Element (TGeoElement *geoElement)
 
virtual ~Element ()
 
Elementoperator= (const Element &rhs)
 
virtual std::string Name () const
 Return the name of this element.
 
virtual std::string Symbol () const
 Return the symbol of this element.
 
virtual double Z () const
 Return the effective atomic number.
 
virtual double N () const
 Return the effective number of nucleons.
 
virtual double A () const
 Return the effective effective mass of a mole in g/mole.
 
virtual int NofIsotopes () const
 Return the number of isotopes constituing this element.
 
virtual VGM::IIsotopeIsotope (int i) const
 Return the i-th isotope constituing this element.
 
virtual double RelAbundance (int i) const
 Return the relative abundance (the fraction of nb of atomes per volume) of the i-th isotope constituing this material.
 
- Public Member Functions inherited from VGM::IElement
virtual ~IElement ()
 

Detailed Description

VGM implementation for Root element using TGeoElement object.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 31 of file Element.h.

Constructor & Destructor Documentation

◆ Element() [1/3]

RootGM::Element::Element ( const std::string & name,
const std::string & symbol,
double z,
double a )

Standard constructor to define element from parameters

Parameters
nameits name (must be unique in the factory)
symbolits symbol
zthe effective atomic number
athe effective mass of a mole in g/mole

Definition at line 32 of file Element.cxx.

◆ Element() [2/3]

RootGM::Element::Element ( const std::string & name,
const std::string & symbol,
const VGM::IsotopeVector & isotopes,
const VGM::RelAbundanceVector & relAbundances )

Standard constructor to define element from parameters

Parameters
nameits name (must be unique in the factory)
symbolits symbol
isotopesthe vector if isotopes
relAbundancesthe vector of relative abundances of isotopes

Definition at line 50 of file Element.cxx.

◆ Element() [3/3]

RootGM::Element::Element ( TGeoElement * geoElement)

Standard constructor to define element from TGeoElement

Parameters
geoElementTGeoElement

Definition at line 91 of file Element.cxx.

◆ ~Element()

RootGM::Element::~Element ( )
virtual

Definition at line 102 of file Element.cxx.

Member Function Documentation

◆ operator=()

Element & RootGM::Element::operator= ( const Element & rhs)

◆ Name()

std::string RootGM::Element::Name ( ) const
virtual

Return the name of this element.

Implements VGM::IElement.

Definition at line 127 of file Element.cxx.

◆ Symbol()

std::string RootGM::Element::Symbol ( ) const
virtual

Return the symbol of this element.

Implements VGM::IElement.

Definition at line 130 of file Element.cxx.

◆ Z()

double RootGM::Element::Z ( ) const
virtual

Return the effective atomic number.

Implements VGM::IElement.

Definition at line 133 of file Element.cxx.

◆ N()

double RootGM::Element::N ( ) const
virtual

Return the effective number of nucleons.

Implements VGM::IElement.

Definition at line 136 of file Element.cxx.

◆ A()

double RootGM::Element::A ( ) const
virtual

Return the effective effective mass of a mole in g/mole.

Implements VGM::IElement.

Definition at line 139 of file Element.cxx.

◆ NofIsotopes()

int RootGM::Element::NofIsotopes ( ) const
virtual

Return the number of isotopes constituing this element.

Implements VGM::IElement.

Definition at line 145 of file Element.cxx.

◆ Isotope()

VGM::IIsotope * RootGM::Element::Isotope ( int i) const
virtual

Return the i-th isotope constituing this element.

Implements VGM::IElement.

Definition at line 148 of file Element.cxx.

◆ RelAbundance()

double RootGM::Element::RelAbundance ( int i) const
virtual

Return the relative abundance (the fraction of nb of atomes per volume) of the i-th isotope constituing this material.

Implements VGM::IElement.

Definition at line 157 of file Element.cxx.


The documentation for this class was generated from the following files: