FairRoot/PandaRoot
|
Detector plane. More...
#include <DetPlane.h>
Public Member Functions | |
DetPlane (AbsFinitePlane *finite=NULL) | |
DetPlane (const TVector3 &o, const TVector3 &u, const TVector3 &v, AbsFinitePlane *finite=NULL) | |
DetPlane (const TVector3 &o, const TVector3 &n, AbsFinitePlane *finite=NULL) | |
virtual | ~DetPlane () |
DetPlane (const DetPlane &) | |
DetPlane & | operator= (DetPlane) |
void | swap (DetPlane &other) |
const TVector3 & | getO () const |
const TVector3 & | getU () const |
const TVector3 & | getV () const |
void | set (const TVector3 &o, const TVector3 &u, const TVector3 &v) |
void | setO (const TVector3 &o) |
void | setO (double, double, double) |
void | setU (const TVector3 &u) |
void | setU (double, double, double) |
void | setV (const TVector3 &v) |
void | setV (double, double, double) |
void | setUV (const TVector3 &u, const TVector3 &v) |
void | setON (const TVector3 &o, const TVector3 &n) |
void | setFinitePlane (AbsFinitePlane *finite) |
TVector3 | getNormal () const |
void | setNormal (const TVector3 &n) |
void | setNormal (double, double, double) |
void | setNormal (const double &theta, const double &phi) |
TVector2 | project (const TVector3 &x) const |
projecting a direction onto the plane: More... | |
TVector2 | LabToPlane (const TVector3 &x) const |
transform from Lab system into plane More... | |
TVector3 | toLab (const TVector2 &x) const |
transform from plane coordinates to lab system More... | |
TVector3 | dist (const TVector3 &point) const |
TVector2 | straightLineToPlane (const TVector3 &point, const TVector3 &dir) const |
gives u,v coordinates of the intersection point of a straight line with plane More... | |
void | straightLineToPlane (const double &posX, const double &posY, const double &posZ, const double &dirX, const double &dirY, const double &dirZ, double &u, double &v) const |
gives u,v coordinates of the intersection point of a straight line with plane More... | |
void | Print (const Option_t *="") const |
double | distance (const TVector3 &point) const |
absolute distance from a point to the plane More... | |
double | distance (double, double, double) const |
bool | isInActive (const TVector3 &point, const TVector3 &dir) const |
intersect in the active area? C.f. AbsFinitePlane More... | |
bool | isInActive (const double &posX, const double &posY, const double &posZ, const double &dirX, const double &dirY, const double &dirZ) const |
intersect in the active area? C.f. AbsFinitePlane More... | |
bool | isInActive (double u, double v) const |
isInActive methods refer to finite plane. C.f. AbsFinitePlane More... | |
bool | isInActive (const TVector2 &v) const |
isInActive methods refer to finite plane. C.f. AbsFinitePlane More... | |
bool | isFinite () const |
void | rotate (double angle) |
rotate u and v around normal. Angle is in rad. More for debugging than for actual use. More... | |
void | reset () |
delete finitePlane_ and set O, U, V to default values More... | |
Private Member Functions | |
void | sane () |
ensures orthonormal coordinates More... | |
Private Attributes | |
TVector3 | o_ |
TVector3 | u_ |
TVector3 | v_ |
boost::scoped_ptr< AbsFinitePlane > | finitePlane_ |
Friends | |
bool | operator== (const DetPlane &lhs, const DetPlane &rhs) |
Checks equality of planes by comparing the 9 double values that define them. More... | |
bool | operator!= (const DetPlane &lhs, const DetPlane &rhs) |
returns NOT == More... | |
Detector plane.
A detector plane is the principle object to define coordinate systems for track fitting in genfit. Since a particle trajectory is a one-dimensional object (regardless of any specific parameterization) positions with respect to the track are always measured in a plane.
Which plane is chosen depends on the type of detector. Fixed plane detectors have their detector plane defined by their mechanical setup. While wire chambers or time projection chambers might want to define a detector plane more flexibly.
This class parameterizes a plane in terms of an origin vector o and two plane-spanning directions u and v.
Definition at line 61 of file DetPlane.h.
genfit::DetPlane::DetPlane | ( | AbsFinitePlane * | finite = NULL | ) |
genfit::DetPlane::DetPlane | ( | const TVector3 & | o, |
const TVector3 & | u, | ||
const TVector3 & | v, | ||
AbsFinitePlane * | finite = NULL |
||
) |
genfit::DetPlane::DetPlane | ( | const TVector3 & | o, |
const TVector3 & | n, | ||
AbsFinitePlane * | finite = NULL |
||
) |
|
virtual |
genfit::DetPlane::DetPlane | ( | const DetPlane & | ) |
TVector3 genfit::DetPlane::dist | ( | const TVector3 & | point | ) | const |
double genfit::DetPlane::distance | ( | const TVector3 & | point | ) | const |
absolute distance from a point to the plane
double genfit::DetPlane::distance | ( | double | , |
double | , | ||
double | |||
) | const |
TVector3 genfit::DetPlane::getNormal | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 171 of file DetPlane.h.
References finitePlane_.
|
inline |
intersect in the active area? C.f. AbsFinitePlane
Definition at line 146 of file DetPlane.h.
References finitePlane_, and straightLineToPlane().
Referenced by isInActive().
|
inline |
intersect in the active area? C.f. AbsFinitePlane
Definition at line 152 of file DetPlane.h.
References finitePlane_, isInActive(), straightLineToPlane(), and v.
|
inline |
isInActive methods refer to finite plane. C.f. AbsFinitePlane
Definition at line 161 of file DetPlane.h.
References finitePlane_.
|
inline |
isInActive methods refer to finite plane. C.f. AbsFinitePlane
Definition at line 167 of file DetPlane.h.
References isInActive().
TVector2 genfit::DetPlane::LabToPlane | ( | const TVector3 & | x | ) | const |
transform from Lab system into plane
void genfit::DetPlane::Print | ( | const Option_t * | = "" | ) | const |
TVector2 genfit::DetPlane::project | ( | const TVector3 & | x | ) | const |
projecting a direction onto the plane:
void genfit::DetPlane::reset | ( | ) |
delete finitePlane_ and set O, U, V to default values
void genfit::DetPlane::rotate | ( | double | angle | ) |
rotate u and v around normal. Angle is in rad. More for debugging than for actual use.
|
private |
ensures orthonormal coordinates
void genfit::DetPlane::set | ( | const TVector3 & | o, |
const TVector3 & | u, | ||
const TVector3 & | v | ||
) |
|
inline |
Optionally, set the finite plane definition. This is most important for avoiding fake intersection points in fitting of curlers. This should be implemented for silicon detectors most importantly.
Definition at line 105 of file DetPlane.h.
References finitePlane_.
void genfit::DetPlane::setNormal | ( | const TVector3 & | n | ) |
void genfit::DetPlane::setNormal | ( | double | , |
double | , | ||
double | |||
) |
void genfit::DetPlane::setNormal | ( | const double & | theta, |
const double & | phi | ||
) |
void genfit::DetPlane::setO | ( | const TVector3 & | o | ) |
void genfit::DetPlane::setO | ( | double | , |
double | , | ||
double | |||
) |
void genfit::DetPlane::setON | ( | const TVector3 & | o, |
const TVector3 & | n | ||
) |
void genfit::DetPlane::setU | ( | const TVector3 & | u | ) |
void genfit::DetPlane::setU | ( | double | , |
double | , | ||
double | |||
) |
void genfit::DetPlane::setUV | ( | const TVector3 & | u, |
const TVector3 & | v | ||
) |
void genfit::DetPlane::setV | ( | const TVector3 & | v | ) |
void genfit::DetPlane::setV | ( | double | , |
double | , | ||
double | |||
) |
TVector2 genfit::DetPlane::straightLineToPlane | ( | const TVector3 & | point, |
const TVector3 & | dir | ||
) | const |
gives u,v coordinates of the intersection point of a straight line with plane
Referenced by isInActive().
void genfit::DetPlane::straightLineToPlane | ( | const double & | posX, |
const double & | posY, | ||
const double & | posZ, | ||
const double & | dirX, | ||
const double & | dirY, | ||
const double & | dirZ, | ||
double & | u, | ||
double & | v | ||
) | const |
gives u,v coordinates of the intersection point of a straight line with plane
void genfit::DetPlane::swap | ( | DetPlane & | other | ) |
TVector3 genfit::DetPlane::toLab | ( | const TVector2 & | x | ) | const |
transform from plane coordinates to lab system
Checks equality of planes by comparing the 9 double values that define them.
|
private |
Definition at line 191 of file DetPlane.h.
Referenced by isFinite(), isInActive(), and setFinitePlane().
|
private |
Definition at line 186 of file DetPlane.h.
Referenced by getO().
|
private |
Definition at line 187 of file DetPlane.h.
Referenced by getU().
|
private |
Definition at line 188 of file DetPlane.h.
Referenced by getV().