85 fNameExtension(fDefaultNameExtension)
129 G4cout <<
"Place " << name <<
" lv " << LV <<
" "
159 motherLV, isMany, copyNo, surfCheck);
169 isMany, copyNo, surfCheck);
184 motherLV, isMany, copyNo, surfCheck);
194 LV, name, reflMotherLV, isMany, copyNo, surfCheck);
220 G4cout <<
"Replicate " << name <<
" lv " << LV <<
" "
225 =
new G4PVReplica(name, LV, motherLV, axis, nofReplicas, width, offset);
234 axis, nofReplicas, width, offset);
259 G4cout <<
"Divide " << name <<
" lv " << LV <<
" "
275 axis, nofDivisions, width, offset);
300 G4cout <<
"Divide " << name <<
" lv " << LV <<
" "
316 axis, nofDivisions, offset);
341 G4cout <<
"Divide " << name <<
" lv " << LV <<
" "
348 -> CreatePVDivision(name, LV, motherLV, axis, width, offset);
357 axis, width, offset);
414 message <<
"Invalid reflection for volume: "
416 <<
"Cannot be applied to a volume already reflected !";
417 G4Exception(
"G4ReflectionFactory::CreateReflectedLV()",
456 G4cout <<
"G4ReflectionFactory::ReflectDaughters(): "
594 axis, nofReplicas,
width, offset);
604 axis, nofReplicas,
width, offset);
676 message <<
"Not yet implemented. Volume: " << dPV->
GetName() <<
G4endl
677 <<
"Reflection of parameterised volumes is not yet implemented.";
678 G4Exception(
"G4ReflectionFactory::ReflectPVParameterised()",
776 G4cout <<
"lv: " << (*it).first <<
" lv_refl: " << (*it).second <<
G4endl;
792 for (
G4int i=0; i<4; i++)
793 for (
G4int j=0; j<4; j++)
799 message <<
"Unexpected scale in input !" <<
G4endl
800 <<
" Difference: " << diff;
815 if (!divisionFactory)
818 message <<
"A concrete G4PVDivisionFactory instantiated is required !"
820 <<
" It has been requested to reflect divided volumes."
822 <<
" In this case, it is required to instantiate a concrete"
824 <<
" factory G4PVDivisionFactory in your program -before-"
826 <<
" executing the reflection !";
827 G4Exception(
"G4ReflectionFactory::GetPVDivisionFactory()",
831 return divisionFactory;
void AddRootLogicalVolume(G4LogicalVolume *lv)
static const G4Scale3D fScale
G4LogicalVolume * GetReflectedLV(G4LogicalVolume *lv) const
std::pair< G4VPhysicalVolume *, G4VPhysicalVolume * > G4PhysicalVolumesPair
G4LogicalVolume * GetLogicalVolume() const
G4double GetScalePrecision() const
G4VSensitiveDetector * GetSensitiveDetector() const
void SetVerboseLevel(G4int verboseLevel)
virtual G4VPVParameterisation * GetParameterisation() const =0
const G4ReflectedVolumesMap & GetReflectedVolumesMap() const
void message(RunManager *runmanager)
G4int GetNoDaughters() const
virtual G4VPhysicalVolume * CreatePVDivision(const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMother, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset)=0
G4ReflectedVolumesMap::const_iterator LogicalVolumesMapIterator
G4VPVDivisionFactory * GetPVDivisionFactory() const
G4bool IsConstituent(G4LogicalVolume *lv) const
G4LogicalVolume * ReflectLV(G4LogicalVolume *LV, G4bool surfCheck=false)
G4Material * GetMaterial() const
void SetScalePrecision(G4double scaleValue)
static G4VPVDivisionFactory * Instance()
G4int GetVerboseLevel() const
G4double GetBiasWeight() const
void ReflectPVParameterised(G4VPhysicalVolume *PV, G4LogicalVolume *refLV, G4bool surfCheck=false)
G4bool IsReflection(const G4Scale3D &scale) const
void SetVolumesNameExtension(const G4String &nameExtension)
virtual ~G4ReflectionFactory()
void ReflectPVPlacement(G4VPhysicalVolume *PV, G4LogicalVolume *refLV, G4bool surfCheck=false)
virtual G4bool IsMany() const =0
G4RotationMatrix GetObjectRotationValue() const
void ReflectPVDivision(G4VPhysicalVolume *PV, G4LogicalVolume *refLV)
virtual G4int GetCopyNo() const =0
G4LogicalVolume * CreateReflectedLV(G4LogicalVolume *LV)
const G4VisAttributes * GetVisAttributes() const
void SetVisAttributes(const G4VisAttributes *pVA)
void ReflectPVReplica(G4VPhysicalVolume *PV, G4LogicalVolume *refLV)
G4ReflectedVolumesMap fReflectedLVMap
G4bool IsRootRegion() const
static G4ThreadLocal G4ReflectionFactory * fInstance
std::map< G4LogicalVolume *, G4LogicalVolume *, std::less< G4LogicalVolume * > > G4ReflectedVolumesMap
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void ReflectDaughters(G4LogicalVolume *LV, G4LogicalVolume *refLV, G4bool surfCheck=false)
G4PhysicalVolumesPair Replicate(const G4String &name, G4LogicalVolume *LV, G4LogicalVolume *motherLV, EAxis axis, G4int nofReplicas, G4double width, G4double offset=0)
const G4String & GetVolumesNameExtension() const
void PrintConstituentLVMap()
virtual void GetReplicationData(EAxis &axis, G4int &nReplicas, G4double &width, G4double &offset, G4bool &consuming) const =0
G4GLOB_DLL std::ostream G4cout
G4FieldManager * GetFieldManager() const
virtual G4bool IsReplicated() const =0
G4VSolid * GetSolid() const
G4bool IsReflected(G4LogicalVolume *lv) const
void CheckScale(const G4Scale3D &scale) const
static G4GeometryTolerance * GetInstance()
G4UserLimits * GetUserLimits() const
G4ReflectedVolumesMap fConstituentLVMap
G4PhysicalVolumesPair Divide(const G4String &name, G4LogicalVolume *LV, G4LogicalVolume *motherLV, EAxis axis, G4int nofDivisions, G4double width, G4double offset)
G4ThreeVector GetObjectTranslation() const
G4PhysicalVolumesPair Place(const G4Transform3D &transform3D, const G4String &name, G4LogicalVolume *LV, G4LogicalVolume *motherLV, G4bool isMany, G4int copyNo, G4bool surfCheck=false)
G4Region * GetRegion() const
static const G4String fDefaultNameExtension
G4double GetSurfaceTolerance() const
const G4String & GetName() const
G4VPhysicalVolume * GetDaughter(const G4int i) const
G4LogicalVolume * GetConstituentLV(G4LogicalVolume *reflLV) const
const G4String & GetName() const
static G4ReflectionFactory * Instance()