60 if (instance !=
nullptr)
67 G4PolarizationManager::G4PolarizationManager()
68 : messenger(nullptr), verboseLevel(0), activated(true)
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;
91 volumePolarizations[lVol]=pol;
92 if (verboseLevel>=1)
G4cout<<
" SetVolumePolarization "
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;
virtual ~G4PolarizationManager()
static G4PolarizationManager * GetInstance()
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
void SetVolumePolarization(G4LogicalVolume *lVol, const G4ThreeVector &pol)