QwAnalysis
QwMatrixLookup.h
Go to the documentation of this file.
1 /*! \file QwMatrixLookup.h
2  *
3  * \author Wouter Deconinck <wdconinc@mit.edu>
4  *
5  * \date Mon Mar 1 11:48:48 EST 2010
6  * \brief Definition of the matrix lookup bridging method
7  *
8  * \ingroup QwTracking
9  *
10  */
11 
12 // System headers
13 #include <vector>
14 
15 // Qweak headers
16 #include "QwOptions.h"
17 #include "VQwBridgingMethod.h"
18 
19 // Forward declarations
20 template <class value_t, unsigned int value_n> class QwInterpolator;
21 
22 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
23 
24 #ifndef __QWMATRIXLOOKUP_H__
25 #define __QWMATRIXLOOKUP_H__
26 
28 
29  public:
30 
31  /// \brief Default constructor
32  QwMatrixLookup(QwOptions& options);
33  /// \brief Destructor
34  virtual ~QwMatrixLookup();
35 
36  /// \brief Load the trajectory matrix from disk
37  bool LoadTrajMatrix(const std::string filename);
38  /// \brief Write the trajectory matrix to disk
39  bool WriteTrajMatrix(const std::string filename);
40 
41  /// \brief Bridge from the front to back partial track
42  const QwTrack* Bridge(const QwPartialTrack* front, const QwPartialTrack* back);
43 
44  private:
45 
46  /// Front and back reference planes
48  double fBackRefPlane;
49 
50  /// Look-up table minimum, maximum and step size
51  std::vector<double> fMin;
52  std::vector<double> fMax;
53  std::vector<double> fStep;
54  /// Look-up table
56 
57 }; // class QwMatrixLookup
58 
59 #endif // __QWMATRIXLOOKUP_H__
double fBackRefPlane
std::vector< double > fStep
An options class.
Definition: QwOptions.h:133
bool WriteTrajMatrix(const std::string filename)
Write the trajectory matrix to disk.
QwInterpolator< float, 4 > * fMatrix
Look-up table.
Interface to the various bridging methods.
Contains the complete track as a concatenation of partial tracks.
Definition: QwTrack.h:30
std::vector< double > fMax
std::vector< double > fMin
Look-up table minimum, maximum and step size.
An options class which parses command line, config file and environment.
virtual ~QwMatrixLookup()
Destructor.
Definition of the bridging method interface.
bool LoadTrajMatrix(const std::string filename)
Load the trajectory matrix from disk.
QwMatrixLookup(QwOptions &options)
Default constructor.
double fFrontRefPlane
Front and back reference planes.
Contains the straight part of a track in one region only.
const QwTrack * Bridge(const QwPartialTrack *front, const QwPartialTrack *back)
Bridge from the front to back partial track.
A multi-dimensional grid of values with interpolation methods.