67G4PolarizationManager::G4PolarizationManager()
68 : messenger(0), verboseLevel(0), activated(true)
79 if (volumePolarizations.size()==0)
return;
80 G4cout<<
" Polarization for "<<volumePolarizations.size()
81 <<
" registered volume(s) : "<<
G4endl;
84 for (PolarizationMap::const_iterator cit=volumePolarizations.begin();
85 cit!=volumePolarizations.end();cit++) {
86 G4cout<<cit->first->GetName()<<
" : "<<cit->second<<
G4endl;
92 volumePolarizations[lVol]=pol;
93 if (verboseLevel>=1)
G4cout<<
" SetVolumePolarization "
100 for (PolarizationMap::iterator it=volumePolarizations.begin();
101 it!=volumePolarizations.end();it++) {
102 if (it->first->GetName()==lVolName) {
104 if (verboseLevel>=1)
G4cout<<
" SetVolumePolarization "
110 G4cout<<
" logical volume '"<<lVolName<<
"'not registerd yet \n"
111 <<
" please register before using '/polarization/volume/set' "<<
G4endl;
G4DLLIMPORT std::ostream G4cout
void SetVolumePolarization(G4LogicalVolume *lVol, const G4ThreeVector &pol)
virtual ~G4PolarizationManager()
static G4PolarizationManager * GetInstance()