EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GFAbsRecoHit.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file GFAbsRecoHit.h
1 /* Copyright 2008-2010, Technische Universitaet Muenchen,
2  Authors: Christian Hoeppner & Sebastian Neubert
3 
4  This file is part of GENFIT.
5 
6  GENFIT is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published
8  by the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  GENFIT is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with GENFIT. If not, see <http://www.gnu.org/licenses/>.
18 */
20 /* @{ */
21 
22 
23 
24 #ifndef GFABSRECOHIT_H
25 #define GFABSRECOHIT_H
26 
27 #include<iostream>
28 
29 #include "TMatrixT.h"
30 #include "TObject.h"
31 
32 #include "GFAbsTrackRep.h"
33 #include "GFDetPlane.h"
34 
73 class GFAbsRecoHit : public TObject{
74 protected:
76  TMatrixT<double> fHitCoord;
77 
79  TMatrixT<double> fHitCov;
80 
82  double fRho;
83 
84  private:
85  int fNparHit;
86 
87 public:
88  virtual ~GFAbsRecoHit();
89 
96  GFAbsRecoHit(int NparHit);
97 
100  GFAbsRecoHit();
101 
127  virtual TMatrixT<double> getHMatrix(const GFAbsTrackRep* stateVector)=0;
128 
132  virtual void getMeasurement(const GFAbsTrackRep* rep,const GFDetPlane& pl,const TMatrixT<double>& statePred,const TMatrixT<double>& covPred,TMatrixT<double>& m, TMatrixT<double>& V) = 0;
133 
137  TMatrixT<double> getRawHitCov() const {return fHitCov;}
138 
142  TMatrixT<double> getRawHitCoord() const {return fHitCoord;}
143 
144 
159  virtual const GFDetPlane& getDetPlane(GFAbsTrackRep*) = 0;
160 
164  double getRho() {return fRho;}
165 
169  void setRho(double rho) {fRho = rho;}
170 
177  virtual GFAbsRecoHit* clone() = 0;
178 
181  virtual void Print(const Option_t* option = "") const {fHitCoord.Print(option);}
182 
183  virtual const std::string& getPolicyName();
184 
185  int getNparHit(){return fNparHit;}
186 
187  public:
188  ClassDef(GFAbsRecoHit,4)
189 
190 };
191 
192 
193 #endif //FITTER_ABSHIT_H
194