45 #ifndef G4PolarizationManager_h
46 #define G4PolarizationManager_h 1
100 if (!activated)
return zeroPolarization;
101 PolarizationMap::const_iterator cit=volumePolarizations.find(lVol);
102 if (cit!=volumePolarizations.end())
return cit->second;
103 return zeroPolarization;
110 if (!activated)
return false;
111 PolarizationMap::const_iterator cit=volumePolarizations.find(lVol);
112 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