LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
policy class for hits in wire detectors (STT and DCH) which do not measure the coordinate along the wire More...
#include "GFWireHitPolicy.h"
Public Member Functions | |
GFWireHitPolicy () | |
const GFDetPlane & | detPlane (GFAbsRecoHit *, GFAbsTrackRep *) |
Get detector plane Calls GFAbsTrackRep::extrapolateToLine for POCA. More... | |
TMatrixT< Double_t > | hitCoord (GFAbsRecoHit *, const GFDetPlane &) |
Hit coordinates in detector plane. More... | |
TMatrixT< Double_t > | hitCov (GFAbsRecoHit *, const GFDetPlane &) |
Hit covariances in detector plane. More... | |
void | checkPlane (GFAbsRecoHit *, const GFDetPlane &) |
Check if the detector plane is valid. More... | |
virtual | ~GFWireHitPolicy () |
double | getMaxDistance () |
void | setMaxDistance (double d) |
const std::string & | getName () |
Private Attributes | |
GFDetPlane | fDetPlane |
double | fMaxdistance |
Static Private Attributes | |
static const std::string | fPolicyName = "GFWireHitPolicy" |
policy class for hits in wire detectors (STT and DCH) which do not measure the coordinate along the wire
This policy is not valid for any kind of plane orientation choice: to use it you MUST choose a plane described by u and v axes with v coincident with the wire (and u orthogonal to it, obviously). The hit will be described by 7 coordinates: w_x1, w_y1, w_z1, w_x2, w_y2, w_z2, rdrift where w_ji (with j = x, y, z and i = 1, 2) are the wire extremities coordinates; rdrift = distance from the wire (u coordinate in the plane)
Definition at line 52 of file GFWireHitPolicy.h.
genf::GFWireHitPolicy::GFWireHitPolicy | ( | ) |
Definition at line 38 of file GFWireHitPolicy.cxx.
|
inlinevirtual |
Definition at line 74 of file GFWireHitPolicy.h.
void genf::GFWireHitPolicy::checkPlane | ( | GFAbsRecoHit * | hit, |
const GFDetPlane & | plane | ||
) |
Check if the detector plane is valid.
Definition at line 68 of file GFWireHitPolicy.cxx.
References e, genf::GFAbsRecoHit::getRawHitCoord(), and genf::GFDetPlane::getV().
Referenced by hitCoord(), and hitCov().
const genf::GFDetPlane & genf::GFWireHitPolicy::detPlane | ( | GFAbsRecoHit * | hit, |
GFAbsTrackRep * | rep | ||
) |
Get detector plane Calls GFAbsTrackRep::extrapolateToLine for POCA.
Definition at line 89 of file GFWireHitPolicy.cxx.
References genf::GFDetPlane::dist(), e, genf::GFAbsTrackRep::extrapolateToLine(), fDetPlane, fMaxdistance, genf::GFAbsRecoHit::getRawHitCoord(), and x.
|
inline |
|
inline |
Definition at line 79 of file GFWireHitPolicy.h.
References fPolicyName.
TMatrixT< Double_t > genf::GFWireHitPolicy::hitCoord | ( | GFAbsRecoHit * | hit, |
const GFDetPlane & | plane | ||
) |
Hit coordinates in detector plane.
Definition at line 43 of file GFWireHitPolicy.cxx.
References checkPlane(), and genf::GFAbsRecoHit::getRawHitCoord().
TMatrixT< Double_t > genf::GFWireHitPolicy::hitCov | ( | GFAbsRecoHit * | hit, |
const GFDetPlane & | plane | ||
) |
Hit covariances in detector plane.
Definition at line 56 of file GFWireHitPolicy.cxx.
References checkPlane(), and genf::GFAbsRecoHit::getRawHitCov().
|
inline |
|
private |
Definition at line 85 of file GFWireHitPolicy.h.
Referenced by detPlane().
|
private |
Definition at line 86 of file GFWireHitPolicy.h.
Referenced by detPlane(), getMaxDistance(), and setMaxDistance().
|
staticprivate |
Definition at line 82 of file GFWireHitPolicy.h.
Referenced by getName().