LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GFPlanarHitPolicy.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 GFPLANARHITPOLICY_H
24 #define GFPLANARHITPOLICY_H
25 
26 #include <string>
27 
28 #include "RtypesCore.h"
29 #include "TMatrixT.h"
30 #include "TObject.h"
31 
33 
47 namespace genf {
48 
49  class GFAbsRecoHit;
50  class GFAbsTrackRep;
51 
52  class GFPlanarHitPolicy : public TObject {
53  public:
54  // Constructors/Destructors ---------
56 
57  // Accessors -----------------------
58 
62 
63  // Modifiers -----------------------
64 
72  void setDetPlane(const GFDetPlane& p) { fPhysicalDetPlane = p; }
73 
74  // Operations ----------------------
77  TMatrixT<Double_t> hitCoord(GFAbsRecoHit*, const GFDetPlane&);
78 
81  TMatrixT<Double_t> hitCov(GFAbsRecoHit*, const GFDetPlane&);
82 
83  virtual ~GFPlanarHitPolicy() { ; }
84 
85  const std::string& getName() { return fPolicyName; }
86 
87  private:
88  static const std::string fPolicyName;
89 
90  protected:
91  // Private Data Members ------------
92 
96 
97  // Private Methods -----------------
98 
99  // public:
100  //ClassDef(GFPlanarHitPolicy,1)
101  };
102 
103 } // end namespace genf
104 #endif
105 
static const std::string fPolicyName
TMatrixT< Double_t > hitCoord(GFAbsRecoHit *, const GFDetPlane &)
Hit coordinates in detector plane.
Generic Interface to magnetic fields in GENFIT.
Definition: GFAbsBField.h:34
Base Class for genfit track representations. Defines interface for track parameterizations.
Definition: GFAbsTrackRep.h:81
const GFDetPlane & detPlane(GFAbsRecoHit *, const GFAbsTrackRep *)
Returns the physical detector plane.
const std::string & getName()
GFDetPlane fPhysicalDetPlane
Physical detector plane. Given by detector hardware.
void setDetPlane(const GFDetPlane &p)
Set physical detector plane. Needs to be called before hit can be used.
TMatrixT< Double_t > hitCov(GFAbsRecoHit *, const GFDetPlane &)
Hit covariances in detector plane.