#include <G4PolarizationManager.hh>
Definition at line 59 of file G4PolarizationManager.hh.
G4PolarizationManager::~G4PolarizationManager |
( |
| ) |
|
|
virtual |
void G4PolarizationManager::Clean |
( |
| ) |
|
|
inline |
void G4PolarizationManager::Dispose |
( |
| ) |
|
|
static |
G4int G4PolarizationManager::GetVerbose |
( |
| ) |
const |
|
inline |
Definition at line 97 of file G4PolarizationManager.hh.
99 if (!activated)
return zeroPolarization;
100 PolarizationMap::const_iterator cit=volumePolarizations.find(lVol);
101 if (cit!=volumePolarizations.end())
return cit->second;
102 return zeroPolarization;
bool G4PolarizationManager::IsActivated |
( |
| ) |
const |
|
inline |
Definition at line 107 of file G4PolarizationManager.hh.
109 if (!activated)
return false;
110 PolarizationMap::const_iterator cit=volumePolarizations.find(lVol);
111 return (cit!=volumePolarizations.end());
void G4PolarizationManager::ListVolumes |
( |
| ) |
|
Definition at line 77 of file G4PolarizationManager.cc.
79 if (volumePolarizations.size()==0)
return;
80 G4cout<<
" Polarization for "<<volumePolarizations.size()
81 <<
" registered volume(s) : "<<
G4endl;
84 for (
auto vp : volumePolarizations) {
85 G4cout << vp.first->GetName() <<
" : " << vp.second <<
G4endl;
G4GLOB_DLL std::ostream G4cout
void G4PolarizationManager::SetActivated |
( |
G4bool |
val | ) |
|
|
inline |
void G4PolarizationManager::SetVerbose |
( |
G4int |
val | ) |
|
|
inline |
Definition at line 89 of file G4PolarizationManager.cc.
91 volumePolarizations[lVol]=pol;
92 if (verboseLevel>=1)
G4cout<<
" SetVolumePolarization "
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
Definition at line 97 of file G4PolarizationManager.cc.
99 for (
auto& vp : volumePolarizations) {
100 if (vp.first->GetName()==lVolName) {
102 if (verboseLevel>=1)
G4cout<<
" SetVolumePolarization "
108 G4cout<<
" logical volume '"<<lVolName<<
"'not registerd yet \n"
109 <<
" please register before using '/polarization/volume/set' "<<
G4endl;
G4GLOB_DLL std::ostream G4cout
The documentation for this class was generated from the following files: