VGM Version 5.3
Loading...
Searching...
No Matches
ElementNonGeo.h
Go to the documentation of this file.
1// $Id$
2
3// -----------------------------------------------------------------------
4// The RootGM package of the Virtual Geometry Model
5// Copyright (C) 2007 - 2010 Ivana Hrivnacova
6// All rights reserved.
7//
8// For the licensing terms see vgm/LICENSE.
9// Contact: ivana@ipno.in2p3.fr
10// -----------------------------------------------------------------------
11
13//
20
21#ifndef ROOT_GM_ELEMENT_NON_GEO_H
22#define ROOT_GM_ELEMENT_NON_GEO_H
23
25
26#include <string>
27
28namespace RootGM {
29
30class ElementNonGeo : public virtual VGM::IElement
31{
32 public:
34 const std::string& name, const std::string& symbol, double z, double a);
35 virtual ~ElementNonGeo();
36
37 // methods
38 virtual std::string Name() const;
39 virtual std::string Symbol() const;
40
41 virtual double Z() const;
42 virtual double N() const;
43 virtual double A() const;
44
45 virtual int NofIsotopes() const;
46 virtual VGM::IIsotope* Isotope(int i) const;
47 virtual double RelAbundance(int i) const;
48
49 private:
50 ElementNonGeo(const ElementNonGeo& rhs);
52
53 void CheckIndex(int iel) const;
54
55 std::string fName;
56 std::string fSymbol;
57 double fZ;
58 double fN;
59 double fA;
60};
61
62} // namespace RootGM
63
64#endif // ROOT_GM_ELEMENT_NON_GEO_H
VGM implementation for Root element which is not represented via TGeoElement object in Root geometry.
virtual double Z() const
Return the effective atomic number.
virtual VGM::IIsotope * Isotope(int i) const
Return the i-th isotope constituing this element.
virtual std::string Symbol() const
Return the symbol of this element.
virtual std::string Name() const
Return the name of this element.
virtual double N() const
Return the effective number of nucleons.
virtual int NofIsotopes() const
Return the number of isotopes constituing this element.
virtual double A() const
Return the effective effective mass of a mole in g/mole.
virtual double RelAbundance(int i) const
Return the relative abundance (the fraction of nb of atomes per volume) of the i-th isotope constitui...
The VGM interface to elements.
Definition IElement.h:34
The VGM interface to elements.
Definition IIsotope.h:28
VGM implementation for Root.
Definition axis.h:28