QwGeant4
QweakSimVDC_DriftCellParameterisation Class Reference

Parameterisation of the VDC Drift Cell locations. More...

#include <QweakSimVDC_DriftCellParameterisation.hh>

Inherits G4VPVParameterisation.

Public Member Functions

 QweakSimVDC_DriftCellParameterisation (G4int NumberOfDriftCells, G4double SpacingInX)
 
virtual ~QweakSimVDC_DriftCellParameterisation ()
 
void ComputeTransformation (const G4int copyNo, G4VPhysicalVolume *physVol) const
 

Private Attributes

G4int myNumberOfDriftCells
 
G4double mySpacingInX
 

Detailed Description

Parameterisation of the VDC Drift Cell locations.

Placeholder for a long explaination

Definition at line 58 of file QweakSimVDC_DriftCellParameterisation.hh.

Constructor & Destructor Documentation

QweakSimVDC_DriftCellParameterisation::QweakSimVDC_DriftCellParameterisation ( G4int  NumberOfDriftCells,
G4double  SpacingInX 
)
QweakSimVDC_DriftCellParameterisation::~QweakSimVDC_DriftCellParameterisation ( )
virtual

Definition at line 53 of file QweakSimVDC_DriftCellParameterisation.cc.

54 {}

Member Function Documentation

void QweakSimVDC_DriftCellParameterisation::ComputeTransformation ( const G4int  copyNo,
G4VPhysicalVolume *  physVol 
) const

Definition at line 58 of file QweakSimVDC_DriftCellParameterisation.cc.

References myNumberOfDriftCells, and mySpacingInX.

59 {
60  // assuming ODD numbers of drift cells, because then we have
61  // a wire going through the center of the wire plane
62 
63  G4double Xposition = (-0.5*(myNumberOfDriftCells - 1))*mySpacingInX + (copyNo * mySpacingInX);
64 
65  G4ThreeVector origin(Xposition,0,0);
66  physVol->SetTranslation(origin);
67  physVol->SetRotation(0);
68 
69 }

Field Documentation

G4int QweakSimVDC_DriftCellParameterisation::myNumberOfDriftCells
private
G4double QweakSimVDC_DriftCellParameterisation::mySpacingInX
private

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