File indexing completed on 2025-08-06 08:19:18
0001 #include "PHG4InttFPHXParameterisation.h"
0002
0003 #include <Geant4/G4ThreeVector.hh>
0004 #include <Geant4/G4Types.hh> // for G4double, G4int
0005 #include <Geant4/G4VPhysicalVolume.hh>
0006
0007
0008
0009 PHG4InttFPHXParameterisation::PHG4InttFPHXParameterisation(const double offsetx, const double offsety, const double offsetz, const double dz, const int ncopy)
0010 {
0011 for (G4int icopy = 0; icopy < ncopy; icopy++)
0012 {
0013 fXFPHX[icopy] = offsetx;
0014 fYFPHX[icopy] = offsety;
0015 fZFPHX[icopy] = offsetz + icopy * dz;
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 }
0027 }
0028
0029 void PHG4InttFPHXParameterisation::ComputeTransformation(const G4int icopy, G4VPhysicalVolume *physVol) const
0030 {
0031 physVol->SetTranslation(G4ThreeVector(fXFPHX[icopy], fYFPHX[icopy], fZFPHX[icopy]));
0032 }