FairRoot/PandaRoot
GFRecoHitIfc.h
Go to the documentation of this file.
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 */
23 #ifndef GFRECOHITIFC_H
24 #define GFRECOHITIFC_H
25 
26 
27 #include "TMatrixT.h"
28 
29 #include "GFAbsRecoHit.h"
30 #include "GFDetPlane.h"
31 
32 
59 template<class HitPolicy>
60 class GFRecoHitIfc : public GFAbsRecoHit{
61  protected:
62  HitPolicy fPolicy;
63 
64  public:
65 
68  GFRecoHitIfc(int dim) : GFAbsRecoHit(dim){;}
69  virtual ~GFRecoHitIfc(){;}
70 
80  virtual const GFDetPlane& getDetPlane(GFAbsTrackRep* rep){return fPolicy.detPlane(this,rep);}
81 
86  virtual TMatrixT<double> getHitCoord(const GFDetPlane& plane)
87  {return fPolicy.hitCoord(this,plane);}
88 
93  virtual TMatrixT<double> getHitCov(const GFDetPlane& plane)
94  {return fPolicy.hitCov(this,plane);}
95 
96  const std::string& getPolicyName(){return fPolicy.getName();}
97 
98  public:
100 
101 };
102 
103 #endif
104 
105 
Base Class for genfit track representations. Defines interface for track parameterizations.
Definition: GFAbsTrackRep.h:80
virtual TMatrixT< double > getHitCov(const GFDetPlane &plane)
Get hit covariances in a specific detector plane.
Definition: GFRecoHitIfc.h:93
RecoHit interface template class. Provides comfortable interface to create RecoHits.
Definition: GFRecoHitIfc.h:60
virtual ~GFRecoHitIfc()
Definition: GFRecoHitIfc.h:69
Detector plane genfit geometry class.
Definition: GFDetPlane.h:59
const std::string & getPolicyName()
Definition: GFRecoHitIfc.h:96
virtual const GFDetPlane & getDetPlane(GFAbsTrackRep *rep)
Returns the detector plane object for this hit and a given track representation.
Definition: GFRecoHitIfc.h:80
HitPolicy fPolicy
Definition: GFRecoHitIfc.h:62
Base Class for representing a Hit in GENFIT.
Definition: GFAbsRecoHit.h:73
virtual TMatrixT< double > getHitCoord(const GFDetPlane &plane)
Get hit coordinates in a specific detector plane.
Definition: GFRecoHitIfc.h:86
ClassDef(GFRecoHitIfc, 1)
GFRecoHitIfc(int dim)
Constructor specifying dimension of hit coordinate vector.
Definition: GFRecoHitIfc.h:68