Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
B2b::ChamberParameterisation Class Reference
basic » B2 » B2b

A parameterisation that describes a series of boxes along Z. More...

#include <Doxymodules_basic.h>

Inheritance diagram for B2b::ChamberParameterisation:
G4VPVParameterisation

Public Member Functions

 ChamberParameterisation (G4int noChambers, G4double startZ, G4double spacing, G4double widthChamber, G4double lengthInitial, G4double lengthFinal)
 
 ~ChamberParameterisation () override=default
 
void ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const override
 
void ComputeDimensions (G4Tubs &trackerLayer, const G4int copyNo, const G4VPhysicalVolume *physVol) const override
 

Private Member Functions

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

Private Attributes

G4int fNoChambers
 
G4double fStartZ
 
G4double fHalfWidth
 
G4double fSpacing
 
G4double fRmaxFirst
 
G4double fRmaxIncr
 

Detailed Description

A parameterisation that describes a series of boxes along Z.

The boxes have equal width, & their lengths are a linear equation. They are spaced an equal distance apart, starting from given location.

Definition at line 65 of file Doxymodules_basic.h.

Constructor & Destructor Documentation

◆ ChamberParameterisation()

B2b::ChamberParameterisation::ChamberParameterisation ( G4int  noChambers,
G4double  startZ,
G4double  spacing,
G4double  widthChamber,
G4double  lengthInitial,
G4double  lengthFinal 
)

Definition at line 42 of file ChamberParameterisation.cc.

49{
50 fNoChambers = noChambers;
51 fStartZ = startZ;
52 fHalfWidth = 0.5*widthChamber;
53 fSpacing = spacingZ;
54 fRmaxFirst = 0.5 * lengthInitial;
55 if( noChambers > 0 ){
56 fRmaxIncr = 0.5 * (lengthFinal-lengthInitial)/(noChambers-1);
57 if (spacingZ < widthChamber) {
58 G4Exception("ChamberParameterisation::ChamberParameterisation()",
59 "InvalidSetup", FatalException,
60 "Width>Spacing");
61 }
62 }
63}

◆ ~ChamberParameterisation()

B2b::ChamberParameterisation::~ChamberParameterisation ( )
overridedefault

Member Function Documentation

◆ ComputeTransformation()

void B2b::ChamberParameterisation::ComputeTransformation ( const G4int  copyNo,
G4VPhysicalVolume physVol 
) const
override

Definition at line 67 of file ChamberParameterisation.cc.

69{
70 // Note: copyNo will start with zero!
71 G4double Zposition = fStartZ + copyNo * fSpacing;
72 G4ThreeVector origin(0,0,Zposition);
73 physVol->SetTranslation(origin);
74 physVol->SetRotation(nullptr);
75}

◆ ComputeDimensions() [1/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Tubs trackerLayer,
const G4int  copyNo,
const G4VPhysicalVolume physVol 
) const
override

Definition at line 79 of file ChamberParameterisation.cc.

81{
82 // Note: copyNo will start with zero!
83 G4double rmax = fRmaxFirst + copyNo * fRmaxIncr;
84 trackerChamber.SetInnerRadius(0);
85 trackerChamber.SetOuterRadius(rmax);
86 trackerChamber.SetZHalfLength(fHalfWidth);
87 trackerChamber.SetStartPhiAngle(0.*deg);
88 trackerChamber.SetDeltaPhiAngle(360.*deg);
89}

◆ ComputeDimensions() [2/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Box ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 80 of file ChamberParameterisation.hh.

81 {}

◆ ComputeDimensions() [3/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Trd ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 82 of file ChamberParameterisation.hh.

83 {}

◆ ComputeDimensions() [4/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Trap ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 84 of file ChamberParameterisation.hh.

85 {}

◆ ComputeDimensions() [5/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Cons ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 86 of file ChamberParameterisation.hh.

87 {}

◆ ComputeDimensions() [6/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Sphere ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 88 of file ChamberParameterisation.hh.

89 {}

◆ ComputeDimensions() [7/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Orb ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 90 of file ChamberParameterisation.hh.

91 {}

◆ ComputeDimensions() [8/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Ellipsoid ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 92 of file ChamberParameterisation.hh.

93 {}

◆ ComputeDimensions() [9/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Torus ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 94 of file ChamberParameterisation.hh.

95 {}

◆ ComputeDimensions() [10/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Para ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 96 of file ChamberParameterisation.hh.

97 {}

◆ ComputeDimensions() [11/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Hype ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 98 of file ChamberParameterisation.hh.

99 {}

◆ ComputeDimensions() [12/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Polycone ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 100 of file ChamberParameterisation.hh.

101 {}

◆ ComputeDimensions() [13/13]

void B2b::ChamberParameterisation::ComputeDimensions ( G4Polyhedra ,
const G4int  ,
const G4VPhysicalVolume  
) const
inlineoverrideprivate

Definition at line 102 of file ChamberParameterisation.hh.

103 {}

Member Data Documentation

◆ fNoChambers

G4int B2b::ChamberParameterisation::fNoChambers
private

Definition at line 106 of file ChamberParameterisation.hh.

◆ fStartZ

G4double B2b::ChamberParameterisation::fStartZ
private

Definition at line 107 of file ChamberParameterisation.hh.

◆ fHalfWidth

G4double B2b::ChamberParameterisation::fHalfWidth
private

Definition at line 108 of file ChamberParameterisation.hh.

◆ fSpacing

G4double B2b::ChamberParameterisation::fSpacing
private

Definition at line 109 of file ChamberParameterisation.hh.

◆ fRmaxFirst

G4double B2b::ChamberParameterisation::fRmaxFirst
private

Definition at line 110 of file ChamberParameterisation.hh.

◆ fRmaxIncr

G4double B2b::ChamberParameterisation::fRmaxIncr
private

Definition at line 111 of file ChamberParameterisation.hh.


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

Applications | User Support | Publications | Collaboration