VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
RootGM
source
materials
ElementNonGeo.cxx
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
12
//
13
// Class Element
14
// ---------------
15
// VGM implementations for Root element which is not represented via TGeoElement
17
//
18
// Author: Ivana Hrivnacova; IPN Orsay
19
20
#include "
RootGM/materials/ElementNonGeo.h
"
21
#include "
RootGM/common/Units.h
"
22
#include "
RootGM/materials/Isotope.h
"
23
24
#include "TGeoElement.h"
25
#include "TGeoManager.h"
26
27
#include <cstdlib>
28
#include <math.h>
29
30
//_____________________________________________________________________________
31
RootGM::ElementNonGeo::ElementNonGeo
(
32
const
std::string& name,
const
std::string& symbol,
double
z,
double
a)
33
:
VGM
::IElement(), fName(name), fSymbol(symbol), fZ(z), fN(a), fA(a)
34
{
41
}
42
43
//_____________________________________________________________________________
44
RootGM::ElementNonGeo::~ElementNonGeo
()
45
{
46
//
47
}
48
49
//
50
// public functions
51
//
52
53
//_____________________________________________________________________________
54
std::string
RootGM::ElementNonGeo::Name
()
const
{
return
fName; }
55
56
//_____________________________________________________________________________
57
std::string
RootGM::ElementNonGeo::Symbol
()
const
{
return
fSymbol; }
58
59
//_____________________________________________________________________________
60
double
RootGM::ElementNonGeo::Z
()
const
{
return
fZ; }
61
62
//_____________________________________________________________________________
63
double
RootGM::ElementNonGeo::N
()
const
{
return
fN; }
64
65
//_____________________________________________________________________________
66
double
RootGM::ElementNonGeo::A
()
const
67
{
68
return
fA *
RootGM::Units::AtomicWeight
();
69
}
70
71
//_____________________________________________________________________________
72
int
RootGM::ElementNonGeo::NofIsotopes
()
const
{
return
0; }
73
74
//_____________________________________________________________________________
75
VGM::IIsotope
*
RootGM::ElementNonGeo::Isotope
(
int
/*i*/
)
const
{
return
0; }
76
77
//_____________________________________________________________________________
78
double
RootGM::ElementNonGeo::RelAbundance
(
int
/*i*/
)
const
{
return
0; }
ElementNonGeo.h
Units.h
Isotope.h
RootGM::ElementNonGeo::Z
virtual double Z() const
Return the effective atomic number.
Definition
ElementNonGeo.cxx:60
RootGM::ElementNonGeo::Isotope
virtual VGM::IIsotope * Isotope(int i) const
Return the i-th isotope constituing this element.
Definition
ElementNonGeo.cxx:75
RootGM::ElementNonGeo::ElementNonGeo
ElementNonGeo(const std::string &name, const std::string &symbol, double z, double a)
object in Root geometry.
Definition
ElementNonGeo.cxx:31
RootGM::ElementNonGeo::Symbol
virtual std::string Symbol() const
Return the symbol of this element.
Definition
ElementNonGeo.cxx:57
RootGM::ElementNonGeo::~ElementNonGeo
virtual ~ElementNonGeo()
Definition
ElementNonGeo.cxx:44
RootGM::ElementNonGeo::Name
virtual std::string Name() const
Return the name of this element.
Definition
ElementNonGeo.cxx:54
RootGM::ElementNonGeo::N
virtual double N() const
Return the effective number of nucleons.
Definition
ElementNonGeo.cxx:63
RootGM::ElementNonGeo::NofIsotopes
virtual int NofIsotopes() const
Return the number of isotopes constituing this element.
Definition
ElementNonGeo.cxx:72
RootGM::ElementNonGeo::A
virtual double A() const
Return the effective effective mass of a mole in g/mole.
Definition
ElementNonGeo.cxx:66
RootGM::ElementNonGeo::RelAbundance
virtual double RelAbundance(int i) const
Return the relative abundance (the fraction of nb of atomes per volume) of the i-th isotope constitui...
Definition
ElementNonGeo.cxx:78
RootGM::Units::AtomicWeight
static double AtomicWeight()
Return Root atomic weight unit in VGM units.
Definition
Units.h:87
VGM::IIsotope
The VGM interface to elements.
Definition
IIsotope.h:28
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0