45 #ifndef G4PolarizationManager_h
46 #define G4PolarizationManager_h 1
99 if (!activated)
return zeroPolarization;
100 PolarizationMap::const_iterator cit=volumePolarizations.find(lVol);
101 if (cit!=volumePolarizations.end())
return cit->second;
102 return zeroPolarization;
109 if (!activated)
return false;
110 PolarizationMap::const_iterator cit=volumePolarizations.find(lVol);
111 return (cit!=volumePolarizations.end());
virtual ~G4PolarizationManager()
static G4PolarizationManager * GetInstance()
void SetActivated(G4bool val)
bool IsPolarized(G4LogicalVolume *lVol) const
void SetVerbose(G4int val)
std::map< G4LogicalVolume *, G4ThreeVector > PolarizationMap
void SetVolumePolarization(G4LogicalVolume *lVol, const G4ThreeVector &pol)
const G4ThreeVector & GetVolumePolarization(G4LogicalVolume *lVol) const