LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
genf::GFPlanarHitPolicy Class Reference

#include "GFPlanarHitPolicy.h"

Inheritance diagram for genf::GFPlanarHitPolicy:

Public Member Functions

 GFPlanarHitPolicy ()
 
const GFDetPlanedetPlane (GFAbsRecoHit *, const GFAbsTrackRep *)
 Returns the physical detector plane. More...
 
void setDetPlane (const GFDetPlane &p)
 Set physical detector plane. Needs to be called before hit can be used. More...
 
TMatrixT< Double_t > hitCoord (GFAbsRecoHit *, const GFDetPlane &)
 Hit coordinates in detector plane. More...
 
TMatrixT< Double_t > hitCov (GFAbsRecoHit *, const GFDetPlane &)
 Hit covariances in detector plane. More...
 
virtual ~GFPlanarHitPolicy ()
 
const std::string & getName ()
 

Protected Attributes

GFDetPlane fPhysicalDetPlane
 Physical detector plane. Given by detector hardware. More...
 

Static Private Attributes

static const std::string fPolicyName = "GFPlanarHitPolicy"
 

Detailed Description

Definition at line 52 of file GFPlanarHitPolicy.h.

Constructor & Destructor Documentation

genf::GFPlanarHitPolicy::GFPlanarHitPolicy ( )
inline

Definition at line 55 of file GFPlanarHitPolicy.h.

References detPlane().

55 {}
virtual genf::GFPlanarHitPolicy::~GFPlanarHitPolicy ( )
inlinevirtual

Definition at line 83 of file GFPlanarHitPolicy.h.

83 { ; }

Member Function Documentation

const genf::GFDetPlane & genf::GFPlanarHitPolicy::detPlane ( GFAbsRecoHit ,
const GFAbsTrackRep  
)

Returns the physical detector plane.

Definition at line 35 of file GFPlanarHitPolicy.cxx.

References fPhysicalDetPlane.

Referenced by GFPlanarHitPolicy().

36 {
37  return fPhysicalDetPlane;
38 }
GFDetPlane fPhysicalDetPlane
Physical detector plane. Given by detector hardware.
const std::string& genf::GFPlanarHitPolicy::getName ( )
inline

Definition at line 85 of file GFPlanarHitPolicy.h.

References fPolicyName.

85 { return fPolicyName; }
static const std::string fPolicyName
TMatrixT< Double_t > genf::GFPlanarHitPolicy::hitCoord ( GFAbsRecoHit hit,
const GFDetPlane  
)

Hit coordinates in detector plane.

Definition at line 25 of file GFPlanarHitPolicy.cxx.

References genf::GFAbsRecoHit::getRawHitCoord().

Referenced by setDetPlane().

26 {
27  return hit->getRawHitCoord();
28 }
Detector simulation of raw signals on wires.
TMatrixT< Double_t > genf::GFPlanarHitPolicy::hitCov ( GFAbsRecoHit hit,
const GFDetPlane  
)

Hit covariances in detector plane.

Definition at line 30 of file GFPlanarHitPolicy.cxx.

References genf::GFAbsRecoHit::getRawHitCov().

Referenced by setDetPlane().

31 {
32  return hit->getRawHitCov();
33 }
Detector simulation of raw signals on wires.
void genf::GFPlanarHitPolicy::setDetPlane ( const GFDetPlane p)
inline

Set physical detector plane. Needs to be called before hit can be used.

For the planar detector the detector plane is fixed by the geometry of the detector hardware. This method should be called in the constructor of any derived RecoHit in order to setup the geometry of this hit.

Definition at line 72 of file GFPlanarHitPolicy.h.

References fPhysicalDetPlane, hitCoord(), and hitCov().

72 { fPhysicalDetPlane = p; }
GFDetPlane fPhysicalDetPlane
Physical detector plane. Given by detector hardware.

Member Data Documentation

GFDetPlane genf::GFPlanarHitPolicy::fPhysicalDetPlane
protected

Physical detector plane. Given by detector hardware.

Definition at line 95 of file GFPlanarHitPolicy.h.

Referenced by detPlane(), and setDetPlane().

const std::string genf::GFPlanarHitPolicy::fPolicyName = "GFPlanarHitPolicy"
staticprivate

Definition at line 88 of file GFPlanarHitPolicy.h.

Referenced by getName().


The documentation for this class was generated from the following files: