QwAnalysis
|
#include <QwMatrixLookup.h>
Public Member Functions | |
QwMatrixLookup (QwOptions &options) | |
Default constructor. More... | |
virtual | ~QwMatrixLookup () |
Destructor. More... | |
bool | LoadTrajMatrix (const std::string filename) |
Load the trajectory matrix from disk. More... | |
bool | WriteTrajMatrix (const std::string filename) |
Write the trajectory matrix to disk. More... | |
const QwTrack * | Bridge (const QwPartialTrack *front, const QwPartialTrack *back) |
Bridge from the front to back partial track. More... | |
![]() | |
VQwBridgingMethod () | |
Default constructor. More... | |
virtual | ~VQwBridgingMethod () |
Destructor. More... | |
Private Attributes | |
double | fFrontRefPlane |
Front and back reference planes. More... | |
double | fBackRefPlane |
std::vector< double > | fMin |
Look-up table minimum, maximum and step size. More... | |
std::vector< double > | fMax |
std::vector< double > | fStep |
QwInterpolator< float, 4 > * | fMatrix |
Look-up table. More... | |
Additional Inherited Members | |
![]() | |
virtual double | EstimateInitialMomentum (const TVector3 &direction) const |
Estimate the momentum based only on the direction. More... | |
Definition at line 27 of file QwMatrixLookup.h.
QwMatrixLookup::QwMatrixLookup | ( | QwOptions & | options | ) |
Default constructor.
Constructor
Definition at line 28 of file QwMatrixLookup.cc.
References Qw::cm, Qw::deg, fBackRefPlane, fFrontRefPlane, fMatrix, fMax, fMin, fStep, kNearestNeighbor, Qw::MeV, QwInterpolator< value_t, value_n >::SetInterpolationMethod(), and QwInterpolator< value_t, value_n >::SetMinimumMaximumStep().
|
virtual |
Destructor.
Destructor
Definition at line 80 of file QwMatrixLookup.cc.
References fMatrix.
|
virtual |
Bridge from the front to back partial track.
Bridge the front and back partial tracks using the momentum look-up table
front | Front partial track |
back | Back partial tracks |
Implements VQwBridgingMethod.
Definition at line 323 of file QwMatrixLookup.cc.
References Qw::cm, Qw::deg, QwLog::endl(), fBackRefPlane, QwTrack::fEndDirectionActual, QwTrack::fEndDirectionGoal, QwTrack::fEndPositionActual, QwTrack::fEndPositionGoal, fFrontRefPlane, fMatrix, QwTrack::fMomentum, QwTrack::fStartDirection, QwTrack::fStartPosition, QwInterpolator< value_t, value_n >::GetMaximum(), QwInterpolator< value_t, value_n >::GetMinimum(), QwPartialTrack::GetMomentumDirection(), QwPartialTrack::GetPosition(), QwInterpolator< value_t, value_n >::GetStepSize(), QwInterpolator< value_t, value_n >::GetValue(), Qw::GeV, QwInterpolator< value_t, value_n >::InBounds(), QwDebug, and QwMessage.
Referenced by main().
bool QwMatrixLookup::LoadTrajMatrix | ( | const std::string | filename | ) |
Load the trajectory matrix from disk.
Load the trajectory matrix
filename | Filename |
Definition at line 90 of file QwMatrixLookup.cc.
References QwLog::endl(), fMatrix, QwInterpolator< value_t, value_n >::GetCurrentEntries(), QwInterpolator< value_t, value_n >::GetMaximumEntries(), QwMessage, QwWarning, and QwInterpolator< value_t, value_n >::Set().
Referenced by main().
bool QwMatrixLookup::WriteTrajMatrix | ( | const std::string | filename | ) |
Write the trajectory matrix to disk.
Generate a momentum look-up table indexed by momentum, position and direction: a family of trajectories starting from the target to endplane will be generated. Momentum and scattering direction vary for each trajectory. We record the inter- section position and direction at the focal plane (z=570 cm)
Z coordinate: Z0: start plane = -250 cm, Z1: endplane = +250 cm, Z2: focalplane = +570 cm B field values are available from z=-250 cm to z=250 cm
Definition at line 210 of file QwMatrixLookup.cc.
References Qw::cm, QwInterpolator< value_t, value_n >::Coord(), QwLog::endl(), fBackRefPlane, fFrontRefPlane, fMatrix, QwInterpolator< value_t, value_n >::GetCurrentEntries(), QwInterpolator< value_t, value_n >::GetMaximumEntries(), gQwOptions, QwRayTracer::IntegrateRK(), Qw::pi, QwMessage, and QwInterpolator< value_t, value_n >::Set().
|
private |
Definition at line 48 of file QwMatrixLookup.h.
Referenced by Bridge(), QwMatrixLookup(), and WriteTrajMatrix().
|
private |
Front and back reference planes.
Definition at line 47 of file QwMatrixLookup.h.
Referenced by Bridge(), QwMatrixLookup(), and WriteTrajMatrix().
|
private |
Look-up table.
Definition at line 55 of file QwMatrixLookup.h.
Referenced by Bridge(), LoadTrajMatrix(), QwMatrixLookup(), WriteTrajMatrix(), and ~QwMatrixLookup().
|
private |
Definition at line 52 of file QwMatrixLookup.h.
Referenced by QwMatrixLookup().
|
private |
Look-up table minimum, maximum and step size.
Definition at line 51 of file QwMatrixLookup.h.
Referenced by QwMatrixLookup().
|
private |
Definition at line 53 of file QwMatrixLookup.h.
Referenced by QwMatrixLookup().