GENFIT  Rev:NoNumberAvailable
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 
32 namespace genfit {
33 
57 
58  public:
60  WireMeasurementNew(double driftDistance, double driftDistanceError, const TVector3& endPoint1, const TVector3& endPoint2, int detId, int hitId, TrackPoint* trackPoint);
61 
62  virtual ~WireMeasurementNew() {;}
63 
64  virtual WireMeasurementNew* clone() const {return new WireMeasurementNew(*this);}
65 
66  virtual SharedPlanePtr constructPlane(const StateOnPlane& state) const;
67 
78  virtual std::vector<MeasurementOnPlane*> constructMeasurementsOnPlane(const StateOnPlane& state) const;
79 
80  virtual const AbsHMatrix* constructHMatrix(const AbsTrackRep*) const;
81 
84  void setWireEndPoints(const TVector3& endPoint1, const TVector3& endPoint2);
85 
89  void setMaxDistance(double d){maxDistance_ = d;}
97  void setLeftRightResolution(int lr);
98 
99  virtual bool isLeftRigthMeasurement() const {return true;}
100  double getMaxDistance(){return maxDistance_;}
101  int getLeftRightResolution() const {return leftRight_;}
102 
103  protected:
104 
105  double wireEndPoint1_[3];
106  double wireEndPoint2_[3];
107  double maxDistance_;
108  double leftRight_;
109 
110  public:
111 
112  ClassDef(WireMeasurementNew, 1)
113 
114 };
115 
116 } /* End of namespace genfit */
119 #endif // genfit_WireMeasurementNew_h
genfit::WireMeasurementNew::wireEndPoint1_
double wireEndPoint1_[3]
Definition: WireMeasurementNew.h:105
genfit::SharedPlanePtr
boost::shared_ptr< genfit::DetPlane > SharedPlanePtr
Shared Pointer to a DetPlane.
Definition: SharedPlanePtr.h:43
genfit::WireMeasurementNew::constructPlane
virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const
Definition: WireMeasurementNew.cc:64
genfit::WireMeasurementNew::setLeftRightResolution
void setLeftRightResolution(int lr)
Definition: WireMeasurementNew.cc:152
genfit::AbsHMatrix
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
Definition: AbsHMatrix.h:37
genfit::WireMeasurementNew::~WireMeasurementNew
virtual ~WireMeasurementNew()
Definition: WireMeasurementNew.h:62
genfit::WireMeasurementNew::clone
virtual WireMeasurementNew * clone() const
Deep copy ctor for polymorphic class.
Definition: WireMeasurementNew.h:64
genfit
Defines for I/O streams used for error and debug printing.
Definition: AbsFinitePlane.cc:22
genfit::WireMeasurementNew::getMaxDistance
double getMaxDistance()
Definition: WireMeasurementNew.h:100
genfit::WireMeasurementNew::getLeftRightResolution
int getLeftRightResolution() const
Definition: WireMeasurementNew.h:101
genfit::AbsTrackRep
Abstract base class for a track representation.
Definition: AbsTrackRep.h:66
genfit::WireMeasurementNew
Class for measurements in wire detectors (Straw tubes and drift chambers) which do not measure the co...
Definition: WireMeasurementNew.h:56
AbsMeasurement.h
genfit::WireMeasurementNew::constructMeasurementsOnPlane
virtual std::vector< MeasurementOnPlane * > constructMeasurementsOnPlane(const StateOnPlane &state) const
Definition: WireMeasurementNew.cc:98
genfit::WireMeasurementNew::WireMeasurementNew
WireMeasurementNew()
Definition: WireMeasurementNew.cc:39
genfit::AbsMeasurement
Contains the measurement and covariance in raw detector coordinates.
Definition: AbsMeasurement.h:42
genfit::WireMeasurementNew::isLeftRigthMeasurement
virtual bool isLeftRigthMeasurement() const
Definition: WireMeasurementNew.h:99
genfit::TrackPoint
Object containing AbsMeasurement and AbsFitterInfo objects.
Definition: TrackPoint.h:50
genfit::WireMeasurementNew::wireEndPoint2_
double wireEndPoint2_[3]
Wire end point 1 (X, Y, Z)
Definition: WireMeasurementNew.h:106
genfit::StateOnPlane
A state with arbitrary dimension defined in a DetPlane.
Definition: StateOnPlane.h:45
MeasurementOnPlane.h
genfit::WireMeasurementNew::setWireEndPoints
void setWireEndPoints(const TVector3 &endPoint1, const TVector3 &endPoint2)
Definition: WireMeasurementNew.cc:141
genfit::WireMeasurementNew::setMaxDistance
void setMaxDistance(double d)
Definition: WireMeasurementNew.h:89
genfit::WireMeasurementNew::maxDistance_
double maxDistance_
Wire end point 2 (X, Y, Z)
Definition: WireMeasurementNew.h:107
genfit::WireMeasurementNew::constructHMatrix
virtual const AbsHMatrix * constructHMatrix(const AbsTrackRep *) const
Definition: WireMeasurementNew.cc:132
AbsHMatrix.h
genfit::WireMeasurementNew::leftRight_
double leftRight_
Definition: WireMeasurementNew.h:108