![]() |
PandaRoot
|
Functions | |
| double | PtFromCircle (double B, double r) |
| Calculates the transverse momentum from a given radius. More... | |
| double | PhiForHit (FairHit *hit, TVector3 &circle) |
| Calculates the angle phi for a hit depending on the circle center. More... | |
| int | RotationDirection (FairHit *firstHit, FairHit *nextHit, TVector3 &circle) |
| Determines the rotation direction of the particle If the particle rotates anticlockwise it returns -1, alse it returns +1. More... | |
| TVector2 | PositionOnCircle (FairHit *hit, TVector3 &circle) |
| Determins the position on the circle for a given hit. More... | |
| TVector2 | PtOnCircle (FairHit *hit, TVector3 &circle, int direction, double B) |
| Rotates the transverse momentum by phi to determine the track's momentum direction at a hit point. More... | |
| double PANDA::CircleTools::PhiForHit | ( | FairHit * | hit, |
| TVector3 & | circle | ||
| ) |
Calculates the angle phi for a hit depending on the circle center.
| [in] | hit | A hit |
| [in] | circle | The parameters of the circle given in a TVector3 as circle Center and radius (X, Y, R) |
| [out] | Phi | in [rad] |
Definition at line 31 of file PndCircleTools.h.
Referenced by PositionOnCircle(), PtOnCircle(), and RotationDirection().
| TVector2 PANDA::CircleTools::PositionOnCircle | ( | FairHit * | hit, |
| TVector3 & | circle | ||
| ) |
Determins the position on the circle for a given hit.
| [in] | hit | A hit of the track |
| [in] | circle | The circle parameters that describe the track |
| [out] | result | The position on the circle for a given hit |
Definition at line 66 of file PndCircleTools.h.
References PhiForHit().
| double PANDA::CircleTools::PtFromCircle | ( | double | B, |
| double | r | ||
| ) |
Calculates the transverse momentum from a given radius.
| [in] | B | The magnetic field in [T] |
| [in] | r | The radius of the circle in [cm] |
| [out] | The | transverse momentum in [GeV/c] |
Definition at line 16 of file PndCircleTools.h.
Referenced by PtOnCircle().
| TVector2 PANDA::CircleTools::PtOnCircle | ( | FairHit * | hit, |
| TVector3 & | circle, | ||
| int | direction, | ||
| double | B | ||
| ) |
Rotates the transverse momentum by phi to determine the track's momentum direction at a hit point.
| [in] | hit | A hit of the track |
| [in] | circle | The circle parameters that describe the track |
| [in] | direction | The moving direction of the particle (similar to charge) |
| [in] | B | The magnetic field |
| [out] | result | Momentum direction at the given hit point |
Definition at line 87 of file PndCircleTools.h.
References PhiForHit(), CAMath::Pi(), and PtFromCircle().
| int PANDA::CircleTools::RotationDirection | ( | FairHit * | firstHit, |
| FairHit * | nextHit, | ||
| TVector3 & | circle | ||
| ) |
Determines the rotation direction of the particle If the particle rotates anticlockwise it returns -1, alse it returns +1.
| [in] | firstHit | A first hit of the track |
| [in] | nextHit | A hit of the track occuring after the first hit |
| [in] | circle | The track parameters as circle approximation (X, Y, R) |
| [out] | If | the particle rotates anticlockwise it returns -1, alse it returns +1 |
Definition at line 48 of file PndCircleTools.h.
References PhiForHit().