#include <G4ErrorFreeTrajParam.hh>
Definition at line 49 of file G4ErrorFreeTrajParam.hh.
◆ G4ErrorFreeTrajParam() [1/2]
G4ErrorFreeTrajParam::G4ErrorFreeTrajParam |
( |
| ) |
|
|
inline |
◆ G4ErrorFreeTrajParam() [2/2]
Definition at line 40 of file G4ErrorFreeTrajParam.cc.
42{
44}
void SetParameters(const G4Point3D &pos, const G4Vector3D &mom)
◆ ~G4ErrorFreeTrajParam()
virtual G4ErrorFreeTrajParam::~G4ErrorFreeTrajParam |
( |
| ) |
|
|
inlinevirtual |
◆ GetDirection()
G4Vector3D G4ErrorFreeTrajParam::GetDirection |
( |
| ) |
const |
|
inline |
◆ GetInvP()
G4double G4ErrorFreeTrajParam::GetInvP |
( |
| ) |
const |
|
inline |
◆ GetLambda()
G4double G4ErrorFreeTrajParam::GetLambda |
( |
| ) |
const |
|
inline |
◆ GetPhi()
G4double G4ErrorFreeTrajParam::GetPhi |
( |
| ) |
const |
|
inline |
◆ GetYPerp()
G4double G4ErrorFreeTrajParam::GetYPerp |
( |
| ) |
const |
|
inline |
◆ GetZPerp()
G4double G4ErrorFreeTrajParam::GetZPerp |
( |
| ) |
const |
|
inline |
◆ SetParameters()
Definition at line 48 of file G4ErrorFreeTrajParam.cc.
50{
51 fDir = mom;
53 fLambda = 90.*deg - mom.
theta();
57 vxPerp = mom/mom.
mag();
58 }
60 vyPerp /= vyPerp.
mag();
62 vzPerp /= vzPerp.
mag();
63
64
66 if( vyPerp.
mag() != 0. ) {
67 fYPerp = posv.project( vyPerp ).mag();
68 fZPerp = posv.project( vzPerp ).mag();
69 } else {
70 fYPerp = 0.;
71 fZPerp = 0.;
72 }
73}
HepGeom::Vector3D< G4double > G4Vector3D
BasicVector3D< T > cross(const BasicVector3D< T > &v) const
Referenced by G4ErrorFreeTrajParam(), G4ErrorFreeTrajState::SetParameters(), and Update().
◆ Update()
◆ operator<<
Definition at line 84 of file G4ErrorFreeTrajParam.cc.
85{
86 G4int oldprc = out.precision(8);
87 out << " InvP= " << tp.fInvP << " Theta= "
88 << tp.fLambda << " Phi= " << tp.fPhi << " YPerp= " << tp.fYPerp
89 <<
" ZPerp= " << tp.fZPerp <<
G4endl;
90 out <<
" momentum direction= " << tp.fDir <<
G4endl;
91 out.precision(oldprc);
92
93 return out;
94}
The documentation for this class was generated from the following files: