#include <G4ErrorFreeTrajParam.hh>
Definition at line 48 of file G4ErrorFreeTrajParam.hh.
◆ G4ErrorFreeTrajParam() [1/4]
G4ErrorFreeTrajParam::G4ErrorFreeTrajParam |
( |
| ) |
|
|
inline |
Definition at line 51 of file G4ErrorFreeTrajParam.hh.
52 : fInvP(0.)
53 , fLambda(0.)
54 , fPhi(0.)
55 , fYPerp(0.)
56 , fZPerp(0.)
57 {}
◆ G4ErrorFreeTrajParam() [2/4]
Definition at line 39 of file G4ErrorFreeTrajParam.cc.
41{
43}
void SetParameters(const G4Point3D &pos, const G4Vector3D &mom)
◆ G4ErrorFreeTrajParam() [3/4]
◆ G4ErrorFreeTrajParam() [4/4]
◆ ~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 |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ SetParameters()
Definition at line 46 of file G4ErrorFreeTrajParam.cc.
48{
49 fInvP = 1. / mom.
mag();
50 fDir = mom * fInvP;
51 fLambda = 90. * deg - mom.
theta();
55 {
56 vxPerp = mom / mom.
mag();
57 }
59 vyPerp /= vyPerp.
mag();
61 vzPerp /= vzPerp.
mag();
62
63
65 if(vyPerp.
mag() != 0.)
66 {
67
68
69
70 fYPerp = posv.dot(vyPerp);
71 fZPerp = posv.dot(vzPerp);
72 }
73 else
74 {
75 fYPerp = 0.;
76 fZPerp = 0.;
77 }
78}
HepGeom::Vector3D< G4double > G4Vector3D
BasicVector3D< T > cross(const BasicVector3D< T > &v) const
Referenced by G4ErrorFreeTrajParam(), G4ErrorFreeTrajState::SetParameters(), and Update().
◆ Update()
void G4ErrorFreeTrajParam::Update |
( |
const G4Track * | aTrack | ) |
|
◆ operator<<
Definition at line 87 of file G4ErrorFreeTrajParam.cc.
88{
89 G4long oldprc = out.precision(8);
90 out <<
" InvP= " <<
tp.fInvP <<
" Theta= " <<
tp.fLambda
91 <<
" Phi= " <<
tp.fPhi <<
" YPerp= " <<
tp.fYPerp
92 <<
" ZPerp= " <<
tp.fZPerp <<
G4endl;
93 out <<
" momentum direction= " <<
tp.fDir <<
G4endl;
94 out.precision(oldprc);
95
96 return out;
97}
The documentation for this class was generated from the following files: