#include <G4ParameterisationTrd.hh>
Inheritance diagram for G4VParameterisationTrd:
Public Member Functions | |
G4VParameterisationTrd (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType) | |
virtual | ~G4VParameterisationTrd () |
Protected Attributes | |
G4bool | bDivInTrap |
Definition at line 66 of file G4ParameterisationTrd.hh.
G4VParameterisationTrd::G4VParameterisationTrd | ( | EAxis | axis, | |
G4int | nCopies, | |||
G4double | offset, | |||
G4double | step, | |||
G4VSolid * | msolid, | |||
DivisionType | divType | |||
) |
Definition at line 49 of file G4ParameterisationTrd.cc.
References G4VDivisionParameterisation::fDeleteSolid, G4VDivisionParameterisation::fmotherSolid, G4VDivisionParameterisation::fReflectedSolid, G4VSolid::GetEntityType(), G4VSolid::GetName(), G4Trd::GetXHalfLength1(), G4Trd::GetXHalfLength2(), G4Trd::GetYHalfLength1(), G4Trd::GetYHalfLength2(), and G4Trd::GetZHalfLength().
00052 : G4VDivisionParameterisation( axis, nDiv, width, offset, divType, msolid ), 00053 bDivInTrap(false) 00054 { 00055 G4Trd* msol = (G4Trd*)(msolid); 00056 if (msolid->GetEntityType() == "G4ReflectedSolid") 00057 { 00058 // Get constituent solid 00059 G4VSolid* mConstituentSolid 00060 = ((G4ReflectedSolid*)msolid)->GetConstituentMovedSolid(); 00061 msol = (G4Trd*)(mConstituentSolid); 00062 00063 // Create a new solid with inversed parameters 00064 G4Trd* newSolid 00065 = new G4Trd(msol->GetName(), 00066 msol->GetXHalfLength2(), msol->GetXHalfLength1(), 00067 msol->GetYHalfLength2(), msol->GetYHalfLength1(), 00068 msol->GetZHalfLength()); 00069 msol = newSolid; 00070 fmotherSolid = newSolid; 00071 fReflectedSolid = true; 00072 fDeleteSolid = true; 00073 } 00074 }
G4VParameterisationTrd::~G4VParameterisationTrd | ( | ) | [virtual] |
G4bool G4VParameterisationTrd::bDivInTrap [protected] |
Definition at line 78 of file G4ParameterisationTrd.hh.
Referenced by G4ParameterisationTrdX::ComputeSolid(), G4ParameterisationTrdX::ComputeTransformation(), and G4ParameterisationTrdX::G4ParameterisationTrdX().