#include <G4PVDivisionFactory.hh>
|
| ~G4PVDivisionFactory () override=default |
|
G4VPhysicalVolume * | CreatePVDivision (const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMother, const EAxis pAxis, const G4int nReplicas, const G4double width, const G4double offset) override |
|
G4VPhysicalVolume * | CreatePVDivision (const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMotherLogical, const EAxis pAxis, const G4int nReplicas, const G4double offset) override |
|
G4VPhysicalVolume * | CreatePVDivision (const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMotherLogical, const EAxis pAxis, const G4double width, const G4double offset) override |
|
G4VPhysicalVolume * | CreatePVDivision (const G4String &pName, G4LogicalVolume *pLogical, G4LogicalVolume *pMotherLogical, const G4VPVParameterisation *param) override |
|
G4bool | IsPVDivision (const G4VPhysicalVolume *pv) const override |
|
virtual | ~G4VPVDivisionFactory ()=default |
|
Definition at line 43 of file G4PVDivisionFactory.hh.
◆ ~G4PVDivisionFactory()
G4PVDivisionFactory::~G4PVDivisionFactory |
( |
| ) |
|
|
overridedefault |
◆ G4PVDivisionFactory()
G4PVDivisionFactory::G4PVDivisionFactory |
( |
| ) |
|
|
protecteddefault |
◆ CreatePVDivision() [1/4]
◆ CreatePVDivision() [2/4]
◆ CreatePVDivision() [3/4]
◆ CreatePVDivision() [4/4]
Implements G4VPVDivisionFactory.
Definition at line 101 of file G4PVDivisionFactory.cc.
105{
106
107
108
109
110
111 const auto divParam = dynamic_cast<const G4VDivisionParameterisation*>(param);
112
113 if (divParam == nullptr)
114 {
115 G4Exception(
"G4PVDivisionFactory::CreatePVDivision()",
117 "Unexpected parameterisation type!");
118 return nullptr;
119 }
120 else
121 {
122 EAxis axis = divParam->GetAxis();
123 G4int nofDivisions = divParam->GetNoDiv();
124 G4double width = divParam->GetWidth();
126
127 return new G4PVDivision(pName, pLogical, pMotherLogical,
128 axis, nofDivisions, width,
offset);
129 }
130}
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
◆ GetInstance()
◆ IsPVDivision()
The documentation for this class was generated from the following files: