/
GFWireHitPolicy.h
98 lines (72 loc) · 2.79 KB
/
GFWireHitPolicy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/* Copyright 2008-2010, Technische Universitaet Muenchen,
Authors: Christian Hoeppner & Sebastian Neubert
This file is part of GENFIT.
GENFIT is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GENFIT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
*/
/** @addtogroup genfit
* @{ */
#ifndef GFWIREHITPOLICY_H
#define GFWIREHITPOLICY_H
#include "TMatrixT.h"
#include "TObject.h"
#include "GFDetPlane.h"
class GFAbsRecoHit;
class GFAbsTrackRep;
/** @brief policy class for hits in wire detectors (STT and DCH)
* which do not measure the coordinate along the wire
* @author Christian Höppner (Technische Universität München, original author)
* @author Lia Lavezzi (INFN Pavia, original author)
* @author Sebastian Neubert (Technische Universität München, original author)
*
* 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)
*
*/
class GFWireHitPolicy : public TObject {
public:
GFWireHitPolicy();
// Operations ----------------------
/** @brief Get detector plane
* Calls GFAbsTrackRep::extrapolateToLine for POCA.
*/
const GFDetPlane& detPlane(GFAbsRecoHit*, GFAbsTrackRep*);
/** @brief Hit coordinates in detector plane.
*/
TMatrixT<double> hitCoord(GFAbsRecoHit*,const GFDetPlane&);
/** @brief Hit covariances in detector plane.
*/
TMatrixT<double> hitCov(GFAbsRecoHit*,const GFDetPlane&);
/** @brief Check if the detector plane is valid
*/
void checkPlane(GFAbsRecoHit*,const GFDetPlane&);
virtual ~GFWireHitPolicy(){;}
double getMaxDistance(){return fMaxdistance;}
void setMaxDistance(double d){fMaxdistance=d;}
const std::string& getName(){return fPolicyName;}
private:
static const std::string fPolicyName;
// Private Data Members ------------
GFDetPlane fDetPlane;
double fMaxdistance;
// Private Methods -----------------
public:
ClassDef(GFWireHitPolicy,1);
};
#endif
/** @} */