#include "RDBMaterialManager.h"
#include "GeoModelUtilities/DecodeVersionKey.h"
#include "GeoModelInterfaces/IGeoModelSvc.h"
#include "GeoModelKernel/GeoMaterial.h"
#include "GeoModelKernel/Units.h"
#include "StoreGate/DataHandle.h"
#include "RDBAccessSvc/IRDBAccessSvc.h"
#include "RDBAccessSvc/IRDBRecordset.h"
#include "RDBAccessSvc/IRDBRecord.h"
#include "AthenaKernel/getMessageSvc.h"
#include "GaudiKernel/IMessageSvc.h"
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/SystemOfUnits.h"
#include "AthenaBaseComps/AthCheckMacros.h"
#include <algorithm>
#include <iostream>
#include <stdexcept>
Go to the source code of this file.
◆ CheckElement()
int CheckElement |
( |
std::string & |
name | ) |
|
◆ printElement() [1/2]
int printElement |
( |
const GeoElement *& |
p_element | ) |
|
Definition at line 74 of file RDBMaterialManager.cxx.
76 std::string
name = p_element->getName();
77 std::string symbol = p_element->getSymbol();
78 double a = p_element->getA();
79 double z = p_element->getZ();
81 std::cout <<
" ***** PrintElement(): Print the Element: " <<
name <<
"\n";
82 std::cout <<
" ***** The Element: name, symbol, A, Z \n";
◆ printElement() [2/2]
int printElement |
( |
GeoElement *& |
p_element | ) |
|
Definition at line 60 of file RDBMaterialManager.cxx.
62 std::string
name = p_element->getName();
63 std::string symbol = p_element->getSymbol();
64 double a = p_element->getA();
65 double z = p_element->getZ();
67 std::cout <<
" ***** CheckElement(): Print the Element: " <<
name <<
"\n";
68 std::cout <<
" ***** The Element: name, symbol, A, Z \n" ;
◆ printFullMaterial()
int printFullMaterial |
( |
GeoMaterial *& |
p_material | ) |
|
Definition at line 100 of file RDBMaterialManager.cxx.
102 std::string
name = p_material->getName();
105 std::cout <<
" ***** PrintFullMaterial(): Print the Material: " <<
name <<
"\n";
106 std::cout <<
" ***** The Material: name, density\n" ;
107 std::cout <<
" ***** "<<
name <<
" "<<density <<
" " << std::endl;
110 int element_number = p_material->getNumElements();
113 if ( element_number == 0){
114 std::cout <<
" ***** No Elements now in this printMaterial( ) " << std::endl;
118 element_number = p_material->getNumElements();
120 for(
int i =0;
i< element_number;
i ++)
122 const GeoElement* tmp_element = p_material->getElement(
i);
123 double element_fraction = p_material->getFraction(
i);
125 std::cout<<
" ***** ***** Number: " <<
i <<
" Fraction: " << element_fraction<< std::endl;
◆ printMaterial()
int printMaterial |
( |
GeoMaterial *& |
p_material | ) |
|
Definition at line 88 of file RDBMaterialManager.cxx.
90 std::string
name = p_material->getName();
93 std::cout <<
" ***** PrintMaterial(): Print the Material: " <<
name <<
"\n";
94 std::cout <<
" ***** The Material: name, density \n" ;
95 std::cout <<
" ***** "<<
name <<
" "<<density <<
" " << std::endl;