PandaRoot
WireMeasurementNew.h
Go to the documentation of this file.
1 /* Copyright 2008-2010, Technische Universitaet Muenchen,
2  2014 Ludwig-Maximimilians-Universität München
3  Authors: Tobias Schlüter
4 
5  This file is part of GENFIT.
6 
7  GENFIT is free software: you can redistribute it and/or modify
8  it under the terms of the GNU Lesser General Public License as published
9  by the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  GENFIT is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public License
18  along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
19 */
24 #ifndef genfit_WireMeasurementNew_h
25 #define genfit_WireMeasurementNew_h
26 
27 #include "AbsMeasurement.h"
28 #include "AbsHMatrix.h"
29 #include "MeasurementOnPlane.h"
30 
31 namespace genfit {
32 
56 
57  public:
59  WireMeasurementNew(double driftDistance, double driftDistanceError, const TVector3 &endPoint1, const TVector3 &endPoint2, int detId, int hitId, TrackPoint *trackPoint);
60 
61  virtual ~WireMeasurementNew() { ; }
62 
63  virtual WireMeasurementNew *clone() const { return new WireMeasurementNew(*this); }
64 
65  virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const;
66 
77  virtual std::vector<MeasurementOnPlane *> constructMeasurementsOnPlane(const StateOnPlane &state) const;
78 
79  virtual const AbsHMatrix *constructHMatrix(const AbsTrackRep *) const;
80 
83  void setWireEndPoints(const TVector3 &endPoint1, const TVector3 &endPoint2);
84 
88  void setMaxDistance(double d) { maxDistance_ = d; }
95  void setLeftRightResolution(int lr);
96 
97  virtual bool isLeftRigthMeasurement() const { return true; }
98  double getMaxDistance() { return maxDistance_; }
99  int getLeftRightResolution() const { return leftRight_; }
100 
101  protected:
102  double wireEndPoint1_[3];
103  double wireEndPoint2_[3];
104  double maxDistance_;
105  double leftRight_;
106 
107  public:
108  ClassDef(WireMeasurementNew, 1)
109 };
110 
111 } /* End of namespace genfit */
114 #endif // genfit_WireMeasurementNew_h
virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const
double maxDistance_
Wire end point 2 (X, Y, Z)
Abstract base class for a track representation.
Definition: AbsTrackRep.h:62
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
Definition: AbsHMatrix.h:36
virtual bool isLeftRigthMeasurement() const
virtual WireMeasurementNew * clone() const
Deep copy ctor for polymorphic class.
A state with arbitrary dimension defined in a DetPlane.
Definition: StateOnPlane.h:44
virtual std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane(const StateOnPlane &state) const
void setLeftRightResolution(int lr)
Class for measurements in wire detectors (Straw tubes and drift chambers) which do not measure the co...
Object containing AbsMeasurement and AbsFitterInfo objects.
Definition: TrackPoint.h:49
void setWireEndPoints(const TVector3 &endPoint1, const TVector3 &endPoint2)
double wireEndPoint2_[3]
Wire end point 1 (X, Y, Z)
Contains the measurement and covariance in raw detector coordinates.
boost::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
virtual const AbsHMatrix * constructHMatrix(const AbsTrackRep *) const
Matrix inversion tools.
Definition: AbsBField.h:28