Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
G02ChamberParameterisation Class Reference

Chamber parametrisation used in the GDML read/write example. More...

#include <Doxymodules_persistency.h>

Inheritance diagram for G02ChamberParameterisation:
G4VPVParameterisation

Public Member Functions

 G02ChamberParameterisation (G4int NoChambers, G4double startZ, G4double spacing, G4double widthChamber, G4double lengthInitial, G4double lengthFinal)
 
 ~G02ChamberParameterisation ()
 
void ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const
 
void ComputeDimensions (G4Box &trackerLayer, const G4int copyNo, const G4VPhysicalVolume *physVol) const
 

Private Member Functions

void ComputeDimensions (G4Trd &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Trap &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Cons &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Sphere &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Orb &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Ellipsoid &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Torus &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Para &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Hype &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Tubs &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Polycone &, const G4int, const G4VPhysicalVolume *) const
 
void ComputeDimensions (G4Polyhedra &, const G4int, const G4VPhysicalVolume *) const
 

Private Attributes

G4int fNoChambers
 
G4double fStartZ
 
G4double fHalfWidth
 
G4double fSpacing
 
G4double fHalfLengthFirst
 
G4double fHalfLengthIncr
 

Detailed Description

Chamber parametrisation used in the GDML read/write example.

Definition at line 34 of file Doxymodules_persistency.h.

Constructor & Destructor Documentation

◆ G02ChamberParameterisation()

G02ChamberParameterisation::G02ChamberParameterisation ( G4int  NoChambers,
G4double  startZ,
G4double  spacing,
G4double  widthChamber,
G4double  lengthInitial,
G4double  lengthFinal 
)

Definition at line 43 of file G02ChamberParameterisation.cc.

51{
52 fNoChambers = NoChambers;
53 fStartZ = startZ;
54 fHalfWidth = widthChamber*0.5;
55 fSpacing = spacingZ;
56 fHalfLengthFirst = 0.5 * lengthInitial;
57
58 if( NoChambers > 0 )
59 {
60 fHalfLengthIncr = 0.5 * (lengthFinal-lengthInitial)/NoChambers;
61 if (spacingZ < widthChamber)
62 {
63 G4Exception("ExN02G02ChamberParameterisation::G02ChamberParameterisation()",
64 "InvalidSetup", FatalException,
65 "Invalid construction: Width>Spacing");
66 }
67 }
68}

◆ ~G02ChamberParameterisation()

G02ChamberParameterisation::~G02ChamberParameterisation ( )

Definition at line 72 of file G02ChamberParameterisation.cc.

73{}

Member Function Documentation

◆ ComputeTransformation()

void G02ChamberParameterisation::ComputeTransformation ( const G4int  copyNo,
G4VPhysicalVolume physVol 
) const

Definition at line 77 of file G02ChamberParameterisation.cc.

79{
80 G4double Zposition = fStartZ + (copyNo+1) * fSpacing;
81 G4ThreeVector origin(0.,0.,Zposition);
82 physVol->SetTranslation(origin);
83 physVol->SetRotation(0);
84}

◆ ComputeDimensions() [1/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Box trackerLayer,
const G4int  copyNo,
const G4VPhysicalVolume physVol 
) const

Definition at line 88 of file G02ChamberParameterisation.cc.

91{
92 G4double halfLength = fHalfLengthFirst + copyNo * fHalfLengthIncr;
93 trackerChamber.SetXHalfLength(halfLength);
94 trackerChamber.SetYHalfLength(halfLength);
95 trackerChamber.SetZHalfLength(fHalfWidth);
96}

◆ ComputeDimensions() [2/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Trd ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 88 of file G02ChamberParameterisation.hh.

88{}

◆ ComputeDimensions() [3/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Trap ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 89 of file G02ChamberParameterisation.hh.

89{}

◆ ComputeDimensions() [4/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Cons ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 90 of file G02ChamberParameterisation.hh.

90{}

◆ ComputeDimensions() [5/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Sphere ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 91 of file G02ChamberParameterisation.hh.

91{}

◆ ComputeDimensions() [6/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Orb ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 92 of file G02ChamberParameterisation.hh.

92{}

◆ ComputeDimensions() [7/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Ellipsoid ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 93 of file G02ChamberParameterisation.hh.

93{}

◆ ComputeDimensions() [8/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Torus ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 94 of file G02ChamberParameterisation.hh.

94{}

◆ ComputeDimensions() [9/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Para ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 95 of file G02ChamberParameterisation.hh.

95{}

◆ ComputeDimensions() [10/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Hype ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 96 of file G02ChamberParameterisation.hh.

96{}

◆ ComputeDimensions() [11/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Tubs ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 97 of file G02ChamberParameterisation.hh.

97{}

◆ ComputeDimensions() [12/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Polycone ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 98 of file G02ChamberParameterisation.hh.

98{}

◆ ComputeDimensions() [13/13]

void G02ChamberParameterisation::ComputeDimensions ( G4Polyhedra ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineprivate

Definition at line 99 of file G02ChamberParameterisation.hh.

99{}

Member Data Documentation

◆ fNoChambers

G4int G02ChamberParameterisation::fNoChambers
private

Definition at line 103 of file G02ChamberParameterisation.hh.

◆ fStartZ

G4double G02ChamberParameterisation::fStartZ
private

Definition at line 104 of file G02ChamberParameterisation.hh.

◆ fHalfWidth

G4double G02ChamberParameterisation::fHalfWidth
private

Definition at line 105 of file G02ChamberParameterisation.hh.

◆ fSpacing

G4double G02ChamberParameterisation::fSpacing
private

Definition at line 106 of file G02ChamberParameterisation.hh.

◆ fHalfLengthFirst

G4double G02ChamberParameterisation::fHalfLengthFirst
private

Definition at line 107 of file G02ChamberParameterisation.hh.

◆ fHalfLengthIncr

G4double G02ChamberParameterisation::fHalfLengthIncr
private

Definition at line 108 of file G02ChamberParameterisation.hh.


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

Applications | User Support | Publications | Collaboration