Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
VoxelParam Class Reference

#include <VoxelParam.hh>

Inheritance diagram for VoxelParam:
G4VPVParameterisation

Public Member Functions

 VoxelParam ()
 
 ~VoxelParam ()
 
virtual void ComputeTransformation (const G4int id, G4VPhysicalVolume *vol) const
 
virtual void ComputeDimensions (G4Box &box, const G4int id, const G4VPhysicalVolume *vol) const
 
virtual void ComputeDimensions (G4Trd &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Trap &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Cons &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Sphere &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Orb &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Torus &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Para &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Hype &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Tubs &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const
 
virtual void ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const
 
- Public Member Functions inherited from G4VPVParameterisation
 G4VPVParameterisation ()
 
virtual ~G4VPVParameterisation ()
 
virtual G4VSolidComputeSolid (const G4int, G4VPhysicalVolume *)
 
virtual G4MaterialComputeMaterial (const G4int repNo, G4VPhysicalVolume *currentVol, const G4VTouchable *parentTouch=0)
 
virtual G4bool IsNested () const
 
virtual G4VVolumeMaterialScannerGetMaterialScanner ()
 

Detailed Description

Definition at line 36 of file VoxelParam.hh.

Constructor & Destructor Documentation

VoxelParam::VoxelParam ( )

Definition at line 37 of file VoxelParam.cc.

38 {
39 }
VoxelParam::~VoxelParam ( )

Definition at line 42 of file VoxelParam.cc.

43 {
44 }

Member Function Documentation

void VoxelParam::ComputeDimensions ( G4Box box,
const G4int  id,
const G4VPhysicalVolume vol 
) const
virtual

Reimplemented from G4VPVParameterisation.

Definition at line 66 of file VoxelParam.cc.

References python.hepunit::mm, G4Box::SetXHalfLength(), G4Box::SetYHalfLength(), and G4Box::SetZHalfLength().

68 {
69  const G4double dxyz = 0.5*mm;
70 
71  box.SetXHalfLength(dxyz);
72  box.SetYHalfLength(dxyz);
73  box.SetZHalfLength(dxyz);
74 }
void SetZHalfLength(G4double dz)
Definition: G4Box.cc:172
void SetYHalfLength(G4double dy)
Definition: G4Box.cc:152
void SetXHalfLength(G4double dx)
Definition: G4Box.cc:132
double G4double
Definition: G4Types.hh:76
virtual void VoxelParam::ComputeDimensions ( G4Trd ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 48 of file VoxelParam.hh.

48 {}
virtual void VoxelParam::ComputeDimensions ( G4Trap ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 51 of file VoxelParam.hh.

51 {}
virtual void VoxelParam::ComputeDimensions ( G4Cons ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 54 of file VoxelParam.hh.

54 {}
virtual void VoxelParam::ComputeDimensions ( G4Sphere ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 57 of file VoxelParam.hh.

57 {}
virtual void VoxelParam::ComputeDimensions ( G4Orb ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 60 of file VoxelParam.hh.

60 {}
virtual void VoxelParam::ComputeDimensions ( G4Ellipsoid ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 63 of file VoxelParam.hh.

63 {}
virtual void VoxelParam::ComputeDimensions ( G4Torus ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 66 of file VoxelParam.hh.

66 {}
virtual void VoxelParam::ComputeDimensions ( G4Para ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 69 of file VoxelParam.hh.

69 {}
virtual void VoxelParam::ComputeDimensions ( G4Hype ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 72 of file VoxelParam.hh.

72 {}
virtual void VoxelParam::ComputeDimensions ( G4Tubs ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 75 of file VoxelParam.hh.

75 {}
virtual void VoxelParam::ComputeDimensions ( G4Polycone ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 78 of file VoxelParam.hh.

78 {}
virtual void VoxelParam::ComputeDimensions ( G4Polyhedra ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlinevirtual

Reimplemented from G4VPVParameterisation.

Definition at line 81 of file VoxelParam.hh.

81 {}
void VoxelParam::ComputeTransformation ( const G4int  id,
G4VPhysicalVolume vol 
) const
virtual

Implements G4VPVParameterisation.

Definition at line 47 of file VoxelParam.cc.

References python.hepunit::cm, and python.hepunit::mm.

49 {
50  const G4int NX = 100;
51 
52  G4int iy = id / NX;
53  G4int ix = id % NX;
54 
55  const G4double dxyz = 1.*mm;
56  const G4double DXY = 10.*cm;
57 
58  G4double x0 = -DXY/2. + ix*dxyz;
59  G4double y0 = -DXY/2. + iy*dxyz;
60 
61  vol-> SetTranslation(G4ThreeVector(x0,y0,0.));
62  vol-> SetRotation(0);
63 }
CLHEP::Hep3Vector G4ThreeVector
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

The documentation for this class was generated from the following files: