![]() |
FairShip
|
#include <MagneticTrackPropagator.h>
Classes | |
| struct | State |
| struct | Box |
| struct | FieldMap |
Public Member Functions | |
| MagneticTrackPropagator (ShipBFieldMap *field=nullptr, TGeoManager *geometry=nullptr, ShipBFieldMap *muonShieldField=nullptr) | |
| void | SetAccuracy (double positionTolerance=1.e-3, double relativeMomentumTolerance=1.e-6, double maxStep=5.) |
| double | GetPlaneZ (const char *volumeName="Tr1") const |
| std::pair< double, double > | GetVolumeZRange (const char *volumeName) const |
| std::array< double, 4 > | GetVolumeExitFaceXY (const char *volumeName) const |
| std::pair< double, double > | GetMuonShieldZRange () const |
| bool | HasMuonShieldField () const |
| void | SetMuonShieldMinZ (double minimumZ) |
| double | GetMuonShieldMinZ () const |
| bool | IntersectsBox (double charge, const TVector3 &position, const TVector3 &momentum, const TVector3 &minimum, const TVector3 &maximum) const |
| bool | Extrapolate (double charge, const TVector3 &position, const TVector3 &momentum, double z, TVector3 &result, TVector3 &resultMomentum) const |
| bool | BuildTrajectory (double charge, const TVector3 &position, const TVector3 &momentum, double endZ) |
| bool | PositionAt (double z, TVector3 &position) const |
| std::size_t | GetTrajectorySize () const |
| bool | GetTrajectoryState (std::size_t index, TVector3 &position, TVector3 &momentum) const |
| double | GetFieldEndZ (double minimumZ) const |
| bool | HasFieldAt (const TVector3 &position) const |
Private Member Functions | |
| void | AddFieldMap (ShipBFieldMap *field, double minimumZ) const |
| void | EnsureMuonShield (double minimumZ) const |
| bool | Derivative (const State &state, double charge, double pzSign, State &derivative) const |
| bool | RKStep (const State &state, double charge, double pzSign, double dz, State &result) const |
| bool | Propagate (double charge, const TVector3 &position, const TVector3 &momentum, double z, State &result, std::vector< State > *trajectory, const Box *box=nullptr) const |
Static Private Member Functions | |
| static bool | InsideBox (const TVector3 &position, const Box &box) |
| static bool | RayBoxInterval (const TVector3 &position, const TVector3 &direction, const Box &box, double &entry, double &exit) |
| static bool | SegmentIntersectsBox (const State &start, const State &end, const Box &box) |
Private Attributes | |
| TGeoManager * | fGeometry |
| std::vector< FieldMap > | fFields |
| Borrowed geometry. | |
| ShipBFieldMap * | fMuonShieldField |
| Maps and conservative nonzero 3D regions. | |
| bool | fMuonShieldReady = false |
| Borrowed; scanned on first transport. | |
| double | fMuonShieldMinZ = -std::numeric_limits<double>::infinity() |
| std::pair< double, double > | fMuonShieldZRange = {0., 0.} |
| double | fPositionTolerance = 1.e-3 |
| double | fMomentumTolerance = 1.e-6 |
| double | fMaxStep = 5. |
| std::vector< State > | fTrajectory |
Definition at line 22 of file MagneticTrackPropagator.h.
|
explicit |
Definition at line 107 of file MagneticTrackPropagator.cxx.
|
private |
Definition at line 366 of file MagneticTrackPropagator.cxx.
| bool MagneticTrackPropagator::BuildTrajectory | ( | double | charge, |
| const TVector3 & | position, | ||
| const TVector3 & | momentum, | ||
| double | endZ ) |
Definition at line 587 of file MagneticTrackPropagator.cxx.
|
private |
Definition at line 441 of file MagneticTrackPropagator.cxx.
|
private |
Definition at line 352 of file MagneticTrackPropagator.cxx.
| bool MagneticTrackPropagator::Extrapolate | ( | double | charge, |
| const TVector3 & | position, | ||
| const TVector3 & | momentum, | ||
| double | z, | ||
| TVector3 & | result, | ||
| TVector3 & | resultMomentum ) const |
Definition at line 575 of file MagneticTrackPropagator.cxx.
| double MagneticTrackPropagator::GetFieldEndZ | ( | double | minimumZ | ) | const |
Definition at line 635 of file MagneticTrackPropagator.cxx.
|
inline |
Definition at line 41 of file MagneticTrackPropagator.h.
|
inline |
Definition at line 34 of file MagneticTrackPropagator.h.
| double MagneticTrackPropagator::GetPlaneZ | ( | const char * | volumeName = "Tr1" | ) | const |
Definition at line 168 of file MagneticTrackPropagator.cxx.
|
inline |
Definition at line 56 of file MagneticTrackPropagator.h.
| bool MagneticTrackPropagator::GetTrajectoryState | ( | std::size_t | index, |
| TVector3 & | position, | ||
| TVector3 & | momentum ) const |
Definition at line 626 of file MagneticTrackPropagator.cxx.
| std::array< double, 4 > MagneticTrackPropagator::GetVolumeExitFaceXY | ( | const char * | volumeName | ) | const |
Definition at line 188 of file MagneticTrackPropagator.cxx.
| std::pair< double, double > MagneticTrackPropagator::GetVolumeZRange | ( | const char * | volumeName | ) | const |
Definition at line 176 of file MagneticTrackPropagator.cxx.
| bool MagneticTrackPropagator::HasFieldAt | ( | const TVector3 & | position | ) | const |
Definition at line 646 of file MagneticTrackPropagator.cxx.
|
inline |
Definition at line 37 of file MagneticTrackPropagator.h.
|
staticprivate |
Definition at line 200 of file MagneticTrackPropagator.cxx.
| bool MagneticTrackPropagator::IntersectsBox | ( | double | charge, |
| const TVector3 & | position, | ||
| const TVector3 & | momentum, | ||
| const TVector3 & | minimum, | ||
| const TVector3 & | maximum ) const |
Definition at line 288 of file MagneticTrackPropagator.cxx.
| bool MagneticTrackPropagator::PositionAt | ( | double | z, |
| TVector3 & | position ) const |
Definition at line 601 of file MagneticTrackPropagator.cxx.
|
private |
Definition at line 491 of file MagneticTrackPropagator.cxx.
|
staticprivate |
Definition at line 321 of file MagneticTrackPropagator.cxx.
|
private |
Definition at line 467 of file MagneticTrackPropagator.cxx.
|
staticprivate |
Definition at line 209 of file MagneticTrackPropagator.cxx.
| void MagneticTrackPropagator::SetAccuracy | ( | double | positionTolerance = 1.e-3, |
| double | relativeMomentumTolerance = 1.e-6, | ||
| double | maxStep = 5. ) |
Definition at line 153 of file MagneticTrackPropagator.cxx.
| void MagneticTrackPropagator::SetMuonShieldMinZ | ( | double | minimumZ | ) |
Definition at line 342 of file MagneticTrackPropagator.cxx.
|
mutableprivate |
Borrowed geometry.
Definition at line 95 of file MagneticTrackPropagator.h.
|
private |
Definition at line 93 of file MagneticTrackPropagator.h.
|
private |
Definition at line 103 of file MagneticTrackPropagator.h.
|
private |
Definition at line 102 of file MagneticTrackPropagator.h.
|
private |
Maps and conservative nonzero 3D regions.
Definition at line 96 of file MagneticTrackPropagator.h.
|
mutableprivate |
Definition at line 99 of file MagneticTrackPropagator.h.
|
mutableprivate |
Borrowed; scanned on first transport.
Definition at line 98 of file MagneticTrackPropagator.h.
|
private |
Definition at line 100 of file MagneticTrackPropagator.h.
|
private |
Definition at line 101 of file MagneticTrackPropagator.h.
|
private |
Definition at line 104 of file MagneticTrackPropagator.h.