ATLAS Offline Software
|
#include <LocalParameters.h>
Public Member Functions | |
LocalParameters ()=default | |
Default constructor used for POOL. More... | |
LocalParameters (const LocalParameters &)=default | |
LocalParameters (LocalParameters &&)=default | |
LocalParameters & | operator= (const LocalParameters &)=default |
LocalParameters & | operator= (LocalParameters &&)=default |
~LocalParameters ()=default | |
LocalParameters (const DefinedParameter &one) | |
Explicit constructor for 1-dimensional vector. More... | |
LocalParameters (const DefinedParameter &one, const DefinedParameter &two) | |
Explicit constructor for 2-dimensional vector. More... | |
LocalParameters (const Amg::Vector2D &lp) | |
Explicit constructor from LocalPosition. More... | |
LocalParameters (double locone, double loctwo, double tphi, double ttheta, double tqOverp) | |
Explicit constructor for full 5 parameter vector - respect the order. More... | |
template<size_t N> | |
LocalParameters (const std::array< DefinedParameter, N > &parms) | |
constructor for N Dim size known at compile time More... | |
LocalParameters (const std::vector< DefinedParameter > &parms) | |
constructor for N Dim size not known at compile time More... | |
LocalParameters * | clone () const |
Pseudo-constructor. More... | |
const Amg::MatrixX & | reductionMatrix () const |
Reduction matrix from 5x5 to the [dimension()]x[dimension()]. More... | |
const Amg::MatrixX & | expansionMatrix () const |
Expansion matrix from 5x5 to the [dimension()]x[dimension()]. More... | |
const Amg::VectorX & | asVector () const |
Amg Vector representation. More... | |
int | dimension () const |
Dimension of this localParameters() vector. More... | |
int | parameterKey () const |
Identifier key for matrix expansion/reduction. More... | |
bool | contains (ParamDefs par) const |
The simple check for the clients whether the parameter is contained. More... | |
const double & | operator[] (ParamDefs par) const |
Read from data members. More... | |
double & | operator[] (ParamDefs par) |
Write data members. More... | |
double | get (ParamDefs par) const |
Retrieve specified parameter (const version). More... | |
double | get (ParamDefs par) |
Retrieve specified parameter. More... | |
Protected Attributes | |
int | m_parameterkey = 0 |
Friends | |
class | ::LocalParametersCnv_p1 |
MsgStream & | operator<< (MsgStream &sl, const LocalParameters &lp) |
Overload of << operator for both, MsgStream and std::ostream for debug output. More... | |
std::ostream & | operator<< (std::ostream &sl, const LocalParameters &lp) |
Class inheriting from Amg::VectorX for 1-5 dimensional parameter vectors. It uses a static const projection matrices set for expanding the actual dimension to 5 dimension, respectively reducing a 5 dimensional object to the actual dimension of this object.
The identification is done by a parameter key (integer) that represents a binary number. For technical reasons this binary number has to be read from back to the front to associate it with the five parameters.
For the binary number, the following identification is chosen:
Examples:
loc1 | loc2 | \( \phi \) | \( \theta \) | \( \frac{q}{p} \) | binary number (mirrored) | Parameter - Key | Comments |
1 | 1 | 1 | 1 | 1 | 11111 | 31 | The 'old' track parameters vector |
1 | 0 | 0 | 0 | 0 | 00001 | 1 | 'local position'(measurement) with only one dimension (TRT, MDT) |
1 | 1 | 0 | 0 | 0 | 00011 | 3 | 'local position'(measurement) with only one dimension |
1 | 1 | 0 | 1 | 0 | 01011 | 11 | hypothetical track segment having 2 local coordinated and \( \theta \) information |
The accessors are optimized for full track parameters, 1 dim and 2 dim local parameters.
Definition at line 98 of file LocalParameters.h.
|
default |
|
default |
|
default |
Trk::LocalParameters::LocalParameters | ( | const DefinedParameter & | one | ) |
Trk::LocalParameters::LocalParameters | ( | const DefinedParameter & | one, |
const DefinedParameter & | two | ||
) |
Trk::LocalParameters::LocalParameters | ( | const Amg::Vector2D & | lp | ) |
Trk::LocalParameters::LocalParameters | ( | double | locone, |
double | loctwo, | ||
double | tphi, | ||
double | ttheta, | ||
double | tqOverp | ||
) |
Explicit constructor for full 5 parameter vector - respect the order.
Definition at line 42 of file LocalParameters.cxx.
Trk::LocalParameters::LocalParameters | ( | const std::array< DefinedParameter, N > & | parms | ) |
constructor for N Dim size known at compile time
Trk::LocalParameters::LocalParameters | ( | const std::vector< DefinedParameter > & | parms | ) |
constructor for N Dim size not known at compile time
Definition at line 55 of file LocalParameters.cxx.
const Amg::VectorX& Trk::LocalParameters::asVector | ( | ) | const |
Amg Vector representation.
LocalParameters* Trk::LocalParameters::clone | ( | ) | const |
Pseudo-constructor.
bool Trk::LocalParameters::contains | ( | ParamDefs | par | ) | const |
The simple check for the clients whether the parameter is contained.
int Trk::LocalParameters::dimension | ( | ) | const |
Dimension of this localParameters() vector.
const Amg::MatrixX & Trk::LocalParameters::expansionMatrix | ( | ) | const |
Expansion matrix from 5x5 to the [dimension()]x[dimension()].
Definition at line 73 of file LocalParameters.cxx.
double Trk::LocalParameters::get | ( | ParamDefs | par | ) |
Retrieve specified parameter.
There is NO check to see if a parameter is contained, so consider using contains(ParamDefs par) to make sure it is actually defined for this object.
par | Parameters requested to be return |
double Trk::LocalParameters::get | ( | ParamDefs | par | ) | const |
Retrieve specified parameter (const version).
There is NO check to see if a parameter is contained, so consider using contains(ParamDefs par) to make sure it is actually defined for this object.
par | Parameters requested to be return |
|
default |
|
default |
double & Trk::LocalParameters::operator[] | ( | ParamDefs | par | ) |
int Trk::LocalParameters::parameterKey | ( | ) | const |
Identifier key for matrix expansion/reduction.
const Amg::MatrixX & Trk::LocalParameters::reductionMatrix | ( | ) | const |
Reduction matrix from 5x5 to the [dimension()]x[dimension()].
Definition at line 69 of file LocalParameters.cxx.
|
friend |
Definition at line 178 of file LocalParameters.h.
|
friend |
Overload of << operator for both, MsgStream and std::ostream for debug output.
Definition at line 98 of file LocalParameters.cxx.
|
friend |
Definition at line 120 of file LocalParameters.cxx.
|
protected |
Definition at line 179 of file LocalParameters.h.