ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
1
#include "
PHG4InttFPHXParameterisation.h
"
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
29
void
PHG4InttFPHXParameterisation::ComputeTransformation
(
const
G4int
icopy,
G4VPhysicalVolume
*physVol)
const
30
{
31
physVol->
SetTranslation
(
G4ThreeVector
(
fXFPHX
[icopy],
fYFPHX
[icopy],
fZFPHX
[icopy]));
32
}
coresoftware
blob
master
simulation
g4simulation
g4intt
PHG4InttFPHXParameterisation.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:43
using
1.8.2 with
ECCE GitHub integration