G4VParameterisationTrd Class Reference

#include <G4ParameterisationTrd.hh>

Inheritance diagram for G4VParameterisationTrd:

G4VDivisionParameterisation G4VPVParameterisation G4ParameterisationTrdX G4ParameterisationTrdY G4ParameterisationTrdZ

Public Member Functions

 G4VParameterisationTrd (EAxis axis, G4int nCopies, G4double offset, G4double step, G4VSolid *msolid, DivisionType divType)
virtual ~G4VParameterisationTrd ()

Protected Attributes

G4bool bDivInTrap

Detailed Description

Definition at line 66 of file G4ParameterisationTrd.hh.


Constructor & Destructor Documentation

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]

Definition at line 77 of file G4ParameterisationTrd.cc.

00078 {
00079 }


Field Documentation

G4bool G4VParameterisationTrd::bDivInTrap [protected]

Definition at line 78 of file G4ParameterisationTrd.hh.

Referenced by G4ParameterisationTrdX::ComputeSolid(), G4ParameterisationTrdX::ComputeTransformation(), and G4ParameterisationTrdX::G4ParameterisationTrdX().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:52 2013 for Geant4 by  doxygen 1.4.7