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

VGM implementation for Root medium. More...

#include <Medium.h>

Inheritance diagram for RootGM::Medium:

Public Member Functions

 Medium (const std::string &name, int mediumId, VGM::IMaterial *material, int nofParameters, double *parameters)
 
 Medium (TGeoMedium *medium)
 
virtual ~Medium ()
 
virtual std::string Name () const
 Return its name.
 
virtual int Id () const
 Return its unique identifier.
 
virtual double Parameter (int i) const
 Return the i-th parameter.
 
- Public Member Functions inherited from BaseVGM::VMedium
 VMedium (VGM::IMaterial *material)
 
virtual ~VMedium ()
 
virtual VGM::IMaterialMaterial () const
 Return its associated material.
 
virtual int NofParameters () const
 Return the number of defined parameters.
 
- Public Member Functions inherited from VGM::IMedium
virtual ~IMedium ()
 

Protected Member Functions

 Medium ()
 
 Medium (const Medium &rhs)
 
- Protected Member Functions inherited from BaseVGM::VMedium
 VMedium ()
 
 VMedium (const VMedium &rhs)
 

Additional Inherited Members

- Protected Attributes inherited from BaseVGM::VMedium
VGM::IMaterialfMaterial
 
- Static Protected Attributes inherited from BaseVGM::VMedium
static const int fgkParamSize = 20
 

Detailed Description

VGM implementation for Root medium.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 31 of file Medium.h.

Constructor & Destructor Documentation

◆ Medium() [1/4]

RootGM::Medium::Medium ( const std::string & name,
int mediumId,
VGM::IMaterial * material,
int nofParameters,
double * parameters )

Standard constructor to define medium from parameters

Parameters
nameits name (must be unique in the factory)
mediumIdits unique identifier
materialassociated material
nofParametersnumber of defined parameters
parametersarray of parameters

Definition at line 31 of file Medium.cxx.

◆ Medium() [2/4]

RootGM::Medium::Medium ( TGeoMedium * medium)

Standard constructor to define medium from Root object

Definition at line 60 of file Medium.cxx.

◆ ~Medium()

RootGM::Medium::~Medium ( )
virtual

Definition at line 83 of file Medium.cxx.

◆ Medium() [3/4]

RootGM::Medium::Medium ( )
protected

Protected default constructor

Definition at line 70 of file Medium.cxx.

◆ Medium() [4/4]

RootGM::Medium::Medium ( const Medium & rhs)
protected

Protected copy constructor

Definition at line 76 of file Medium.cxx.

Member Function Documentation

◆ Name()

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

Return its name.

Implements VGM::IMedium.

Definition at line 107 of file Medium.cxx.

◆ Id()

int RootGM::Medium::Id ( ) const
virtual

Return its unique identifier.

Implements VGM::IMedium.

Definition at line 113 of file Medium.cxx.

◆ Parameter()

double RootGM::Medium::Parameter ( int i) const
virtual

Return the i-th parameter.

Implements VGM::IMedium.

Definition at line 120 of file Medium.cxx.


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