1
//Parameterisation of mind piece positions.
2
#include "MindPieceParam.hh"
4
#include "G4VPhysicalVolume.hh"
5
#include "G4ThreeVector.hh"
7
MindPieceParam::MindPieceParam(G4int npieces, G4double pieceLen)
11
for ( unsigned int i = 0; i < npieces; ++i )
12
y[i] = ( (double)i - (double)npieces / 2.0 ) * pieceLen + pieceLen / 2.0;
16
MindPieceParam::~MindPieceParam()
20
void MindPieceParam::ComputeTransformation( const G4int copyNo, G4VPhysicalVolume* physVol ) const
22
physVol->SetTranslation( G4ThreeVector( 0.0, 0.0, y[ copyNo ] ) );