Belle II Software development
GeoMaterialProperty Class Reference

Property of a material. More...

#include <GeoMaterialProperty.h>

Inheritance diagram for GeoMaterialProperty:

Public Member Functions

 GeoMaterialProperty ()=default
 default constructor
 
 GeoMaterialProperty (const std::string &name, const std::vector< double > &energies, const std::vector< double > &values)
 full constructor
 
void setName (const std::string &name)
 set name of the property
 
void setEnergies (const std::vector< double > &energies)
 set energies for the property
 
void setValues (const std::vector< double > &values)
 set values at the given energies
 
const std::string & getName () const
 get name of the property
 
const std::vector< double > & getEnergies () const
 get energies for the property
 
const std::vector< double > & getValues () const
 get values at the given energies
 
int getN () const
 get the number of values
 

Private Member Functions

 ClassDef (GeoMaterialProperty, 1)
 Add ROOT reflection info.
 

Private Attributes

std::string m_name
 name of the property
 
std::vector< double > m_energies
 energies for the property
 
std::vector< double > m_values
 values at the given energies
 

Detailed Description

Property of a material.

Definition at line 19 of file GeoMaterialProperty.h.

Constructor & Destructor Documentation

◆ GeoMaterialProperty()

GeoMaterialProperty ( const std::string &  name,
const std::vector< double > &  energies,
const std::vector< double > &  values 
)
inline

full constructor

Definition at line 24 of file GeoMaterialProperty.h.

24 :
25 m_name(name), m_energies(energies), m_values(values) {}
std::vector< double > m_energies
energies for the property
std::vector< double > m_values
values at the given energies
std::string m_name
name of the property

Member Function Documentation

◆ getEnergies()

const std::vector< double > & getEnergies ( ) const
inline

get energies for the property

Definition at line 35 of file GeoMaterialProperty.h.

35{ return m_energies; }

◆ getN()

int getN ( ) const
inline

get the number of values

Definition at line 39 of file GeoMaterialProperty.h.

39{ return m_energies.size(); }

◆ getName()

const std::string & getName ( ) const
inline

get name of the property

Definition at line 33 of file GeoMaterialProperty.h.

33{ return m_name; }

◆ getValues()

const std::vector< double > & getValues ( ) const
inline

get values at the given energies

Definition at line 37 of file GeoMaterialProperty.h.

37{ return m_values; }

◆ setEnergies()

void setEnergies ( const std::vector< double > &  energies)
inline

set energies for the property

Definition at line 29 of file GeoMaterialProperty.h.

29{ m_energies = energies; }

◆ setName()

void setName ( const std::string &  name)
inline

set name of the property

Definition at line 27 of file GeoMaterialProperty.h.

27{ m_name = name; }

◆ setValues()

void setValues ( const std::vector< double > &  values)
inline

set values at the given energies

Definition at line 31 of file GeoMaterialProperty.h.

31{ m_values = values; }

Member Data Documentation

◆ m_energies

std::vector<double> m_energies
private

energies for the property

Definition at line 44 of file GeoMaterialProperty.h.

◆ m_name

std::string m_name
private

name of the property

Definition at line 42 of file GeoMaterialProperty.h.

◆ m_values

std::vector<double> m_values
private

values at the given energies

Definition at line 46 of file GeoMaterialProperty.h.


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