#include <GFWirepointHitPolicy.h>
|
static const std::string | fPolicyName = "GFWirepointHitPolicy" |
|
Definition at line 55 of file GFWirepointHitPolicy.h.
genf::GFWirepointHitPolicy::GFWirepointHitPolicy |
( |
| ) |
|
virtual genf::GFWirepointHitPolicy::~GFWirepointHitPolicy |
( |
| ) |
|
|
inlinevirtual |
Check if the detector plane is valid.
Definition at line 72 of file GFWirepointHitPolicy.cxx.
75 TMatrixT<Double_t> rC =
hit->getRawHitCoord();
77 assert(rC.GetNrows()==8);
79 TVector3 wire1(rC[0][0], rC[1][0], rC[2][0]);
80 TVector3 wire2(rC[3][0], rC[4][0], rC[5][0]);
81 TVector3 wiredirection = wire1 - wire2;
83 TVector3 vaxis = plane.getV();
84 wiredirection.SetMag(1.);
87 if(fabs(TMath::Abs(wiredirection.Dot(vaxis)) - 1) > 1
e-3)
90 std::cout <<
"GFWirepointHitPolicy: plane not valid!!" << std::endl;
BEGIN_PROLOG could also be cout
Get detector plane.
Definition at line 96 of file GFWirepointHitPolicy.cxx.
99 TMatrixT<Double_t>
x=
hit->getRawHitCoord();
100 assert(x.GetNrows()==8);
101 TVector3 wire1(x[0][0],x[1][0],x[2][0]);
102 TVector3 wire2(x[3][0],x[4][0],x[5][0]);
110 TVector3 poca, poca_onwire, dirInPoca;
112 rep->extrapolateToLine(wire1, wire2, poca, dirInPoca, poca_onwire);
116 distance =
TMath::Sqrt(fabs(((wire1-poca).Mag2()*(wire2-wire1).Mag2()-pow((wire1-poca).Dot(wire2-wire1),2))/(wire2-wire1).Mag2()));
120 throw GFException(
"distance poca-wire > maxdistance", __LINE__,__FILE__);
126 TVector3 fromwiretoextr = poca - poca_onwire;
127 fromwiretoextr.SetMag(1.);
129 TVector3 wiredirection = wire2 - wire1;
130 wiredirection.SetMag(1.);
133 if(fabs(fromwiretoextr * wiredirection) > 1
e-3) {
134 throw GFException(
"fromwiretoextr*wiredirection > 1e-3", __LINE__,__FILE__);
144 TVector3
O = (wire1 + wire2) * 0.5;
process_name opflash particleana ie x
TVector3 dist(const TVector3 &point) const
double distance(geo::Point_t const &point, CathodeDesc_t const &cathode)
Returns the distance of a point from the cathode.
Exception class for error handling in GENFIT (provides storage for diagnostic information) ...
Var Sqrt(const Var &v)
Use to take sqrt of a var.
double genf::GFWirepointHitPolicy::getMaxDistance |
( |
| ) |
|
|
inline |
const std::string& genf::GFWirepointHitPolicy::getName |
( |
| ) |
|
|
inline |
Hit coordinates in detector plane.
Definition at line 40 of file GFWirepointHitPolicy.cxx.
42 TMatrixT<Double_t> returnMat(2,1);
47 TMatrixT<Double_t> rC =
hit->getRawHitCoord();
49 returnMat[0][0] = rC[6][0];
50 returnMat[1][0] = rC[7][0];
void checkPlane(GFAbsRecoHit *, const GFDetPlane &)
Check if the detector plane is valid.
Hit covariances in detector plane.
Definition at line 55 of file GFWirepointHitPolicy.cxx.
59 TMatrixT<Double_t> returnCov(2,2);
60 TMatrixT<Double_t> rawCov =
hit->getRawHitCov();
62 returnCov[0][0] = rawCov[6][6];
63 returnCov[1][0] = rawCov[7][6];
64 returnCov[0][1] = rawCov[6][7];
65 returnCov[1][1] = rawCov[7][7];
void checkPlane(GFAbsRecoHit *, const GFDetPlane &)
Check if the detector plane is valid.
void genf::GFWirepointHitPolicy::setMaxDistance |
( |
double |
d | ) |
|
|
inline |
double genf::GFWirepointHitPolicy::fMaxdistance |
|
private |
const std::string genf::GFWirepointHitPolicy::fPolicyName = "GFWirepointHitPolicy" |
|
staticprivate |
The documentation for this class was generated from the following files: