PandaRoot
WireMeasurementNew.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 /* Copyright 2008-2010, Technische Universitaet Muenchen,
14  2014 Ludwig-Maximimilians-Universität München
15  Authors: Tobias Schlüter
16 
17  This file is part of GENFIT.
18 
19  GENFIT is free software: you can redistribute it and/or modify
20  it under the terms of the GNU Lesser General Public License as published
21  by the Free Software Foundation, either version 3 of the License, or
22  (at your option) any later version.
23 
24  GENFIT is distributed in the hope that it will be useful,
25  but WITHOUT ANY WARRANTY; without even the implied warranty of
26  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  GNU Lesser General Public License for more details.
28 
29  You should have received a copy of the GNU Lesser General Public License
30  along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
31 */
36 #ifndef genfit_WireMeasurementNew_h
37 #define genfit_WireMeasurementNew_h
38 
39 #include "AbsMeasurement.h"
40 #include "AbsHMatrix.h"
41 #include "MeasurementOnPlane.h"
42 
43 namespace genfit {
44 
68 
69  public:
71  WireMeasurementNew(double driftDistance, double driftDistanceError, const TVector3 &endPoint1, const TVector3 &endPoint2, int detId, int hitId, TrackPoint *trackPoint);
72 
73  virtual ~WireMeasurementNew() { ; }
74 
75  virtual WireMeasurementNew *clone() const { return new WireMeasurementNew(*this); }
76 
77  virtual SharedPlanePtr constructPlane(const StateOnPlane &state) const;
78 
89  virtual std::vector<MeasurementOnPlane *> constructMeasurementsOnPlane(const StateOnPlane &state) const;
90 
91  virtual const AbsHMatrix *constructHMatrix(const AbsTrackRep *) const;
92 
95  void setWireEndPoints(const TVector3 &endPoint1, const TVector3 &endPoint2);
96 
100  void setMaxDistance(double d) { maxDistance_ = d; }
107  void setLeftRightResolution(int lr);
108 
109  virtual bool isLeftRigthMeasurement() const { return true; }
110  double getMaxDistance() { return maxDistance_; }
111  int getLeftRightResolution() const { return leftRight_; }
112 
113  protected:
114  double wireEndPoint1_[3];
115  double wireEndPoint2_[3];
116  double maxDistance_;
117  double leftRight_;
118 
119  public:
120  ClassDef(WireMeasurementNew, 1)
121 };
122 
123 } /* End of namespace genfit */
126 #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:74
HMatrix for projecting from AbsTrackRep parameters to measured parameters in a DetPlane.
Definition: AbsHMatrix.h:48
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:56
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:61
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:40