ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4InttFPHXParameterisation.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4InttFPHXParameterisation.cc
2 
3 #include <Geant4/G4ThreeVector.hh>
4 #include <Geant4/G4Types.hh> // for G4double, G4int
5 #include <Geant4/G4VPhysicalVolume.hh>
6 
7 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
8 
9 PHG4InttFPHXParameterisation::PHG4InttFPHXParameterisation(const double offsetx, const double offsety, const double offsetz, const double dz, const int ncopy)
10 {
11  for (G4int icopy = 0; icopy < ncopy; icopy++)
12  {
13  fXFPHX[icopy] = offsetx;
14  fYFPHX[icopy] = offsety;
15  fZFPHX[icopy] = offsetz + icopy * dz;
16  /*
17  std::cout << " icopy " << icopy
18  << " offsety " << offsety
19  << " offsetz " << offsetz
20  << " dz " << dz
21  << " fXFPHX[icopy] " << fXFPHX[icopy]
22  << " fYFPHX[icopy] " << fYFPHX[icopy]
23  << " fZFPHX[icopy] " << fZFPHX[icopy]
24  << std::endl;
25  */
26  }
27 }
28 
30 {
31  physVol->SetTranslation(G4ThreeVector(fXFPHX[icopy], fYFPHX[icopy], fZFPHX[icopy]));
32 }