59 if (instance !=
nullptr)
66G4PolarizationManager::G4PolarizationManager()
67 : messenger(nullptr), verboseLevel(0), activated(true)
78 if (volumePolarizations.size()==0)
return;
79 G4cout<<
" Polarization for "<<volumePolarizations.size()
80 <<
" registered volume(s) : "<<
G4endl;
83 for (
auto vp : volumePolarizations) {
84 G4cout << vp.first->GetName() <<
" : " << vp.second <<
G4endl;
90 volumePolarizations[lVol]=pol;
91 if (verboseLevel>=1)
G4cout<<
" SetVolumePolarization "
98 for (
auto& vp : volumePolarizations) {
99 if (vp.first->GetName()==lVolName) {
101 if (verboseLevel>=1)
G4cout<<
" SetVolumePolarization "
107 G4cout<<
" logical volume '"<<lVolName<<
"'not registered yet \n"
108 <<
" please register before using '/polarization/volume/set' "<<
G4endl;
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
void SetVolumePolarization(G4LogicalVolume *lVol, const G4ThreeVector &pol)
virtual ~G4PolarizationManager()
static G4PolarizationManager * GetInstance()