FairRoot/PandaRoot
Public Member Functions | Protected Attributes | List of all members
genfit::PlanarMeasurement Class Reference

Measurement class implementing a planar hit geometry (1 or 2D). More...

#include <PlanarMeasurement.h>

Inheritance diagram for genfit::PlanarMeasurement:
genfit::AbsMeasurement PndGemRecoHit2 PndSdsRecoHit2

Public Member Functions

 PlanarMeasurement (int nDim=1)
 
 PlanarMeasurement (const TVectorD &rawHitCoords, const TMatrixDSym &rawHitCov, int detId, int hitId, TrackPoint *trackPoint)
 
virtual ~PlanarMeasurement ()
 
virtual AbsMeasurementclone () const
 Deep copy ctor for polymorphic class. More...
 
int getPlaneId () const
 
virtual SharedPlanePtr constructPlane (const StateOnPlane &state) const
 
virtual std::vector
< MeasurementOnPlane * > 
constructMeasurementsOnPlane (const StateOnPlane &state) const
 
virtual const AbsHMatrixconstructHMatrix (const AbsTrackRep *) const
 
virtual void setPlane (const SharedPlanePtr &physicalPlane, int planeId=-1)
 
void setStripV (bool v=true)
 Use if the coordinate for 1D hits measured in V direction. More...
 
TrackPointgetTrackPoint () const
 
void setTrackPoint (TrackPoint *tp)
 
const TVectorD & getRawHitCoords () const
 
TVectorD & getRawHitCoords ()
 
const TMatrixDSym & getRawHitCov () const
 
TMatrixDSym & getRawHitCov ()
 
int getDetId () const
 
int getHitId () const
 
virtual bool isLeftRightMeasurement () const
 If the AbsMeasurement is a wire hit, the left/right resolution will be used. More...
 
virtual int getLeftRightResolution () const
 
unsigned int getDim () const
 
void setRawHitCoords (const TVectorD &coords)
 
void setRawHitCov (const TMatrixDSym &cov)
 
void setDetId (int detId)
 
void setHitId (int hitId)
 
virtual void Print (const Option_t *="") const
 

Protected Attributes

SharedPlanePtr physicalPlane_
 
int planeId_
 This is persistent, but '!' makes ROOT shut up. More...
 
bool stripV_
 
TVectorD rawHitCoords_
 
TMatrixDSym rawHitCov_
 
int detId_
 
int hitId_
 
TrackPointtrackPoint_
 Pointer to TrackPoint where the measurement belongs to. More...
 

Detailed Description

Measurement class implementing a planar hit geometry (1 or 2D).

Author
Christian Höppner (Technische Universität München, original author)
Sebastian Neubert (Technische Universität München, original author)
Johannes Rauch (Technische Universität München, original author)

The main feature of this type of hit is, that the detector plane is defined by the detector hardware.

Definition at line 44 of file PlanarMeasurement.h.

Constructor & Destructor Documentation

genfit::PlanarMeasurement::PlanarMeasurement ( int  nDim = 1)

Referenced by clone().

genfit::PlanarMeasurement::PlanarMeasurement ( const TVectorD &  rawHitCoords,
const TMatrixDSym &  rawHitCov,
int  detId,
int  hitId,
TrackPoint trackPoint 
)
virtual genfit::PlanarMeasurement::~PlanarMeasurement ( )
inlinevirtual

Definition at line 50 of file PlanarMeasurement.h.

50 {;}

Member Function Documentation

virtual AbsMeasurement* genfit::PlanarMeasurement::clone ( ) const
inlinevirtual

Deep copy ctor for polymorphic class.

Implements genfit::AbsMeasurement.

Definition at line 52 of file PlanarMeasurement.h.

References PlanarMeasurement().

52 {return new PlanarMeasurement(*this);}
virtual const AbsHMatrix* genfit::PlanarMeasurement::constructHMatrix ( const AbsTrackRep ) const
virtual

Returns a new AbsHMatrix object. Caller must take ownership.

Implements genfit::AbsMeasurement.

virtual std::vector<MeasurementOnPlane*> genfit::PlanarMeasurement::constructMeasurementsOnPlane ( const StateOnPlane state) const
virtual

Construct MeasurementOnPlane on plane of the state and wrt the states TrackRep. The state will usually be the prediction or reference state, and has to be defined AT the measurement. The AbsMeasurement will be projected onto the plane. It's possible to make corrections to the coordinates here (e.g. by using the state coordinates). Usually the vector will contain only one element. But in the case of e.g. a WireMeasurement, it will be 2 (left and right).

Implements genfit::AbsMeasurement.

virtual SharedPlanePtr genfit::PlanarMeasurement::constructPlane ( const StateOnPlane state) const
virtual

Construct (virtual) detector plane (use state's AbsTrackRep). It's possible to make corrections to the plane here. The state should be defined somewhere near the measurement. For virtual planes, the state will be extrapolated to the POCA to point (SpacepointMeasurement) or line (WireMeasurement), and from this info the plane will be constructed.

Implements genfit::AbsMeasurement.

int genfit::AbsMeasurement::getDetId ( ) const
inlineinherited

Definition at line 62 of file AbsMeasurement.h.

References genfit::AbsMeasurement::detId_.

62 {return detId_;}
unsigned int genfit::AbsMeasurement::getDim ( ) const
inlineinherited

Definition at line 69 of file AbsMeasurement.h.

References genfit::AbsMeasurement::rawHitCoords_.

69 {return rawHitCoords_.GetNrows();}
int genfit::AbsMeasurement::getHitId ( ) const
inlineinherited

Definition at line 63 of file AbsMeasurement.h.

References genfit::AbsMeasurement::hitId_.

63 {return hitId_;}
virtual int genfit::AbsMeasurement::getLeftRightResolution ( ) const
inlinevirtualinherited

Reimplemented in genfit::WireMeasurementNew, and genfit::WireMeasurement.

Definition at line 67 of file AbsMeasurement.h.

67 {return 0;}
int genfit::PlanarMeasurement::getPlaneId ( ) const
inline

Definition at line 54 of file PlanarMeasurement.h.

References planeId_.

54 {return planeId_;}
int planeId_
This is persistent, but &#39;!&#39; makes ROOT shut up.
const TVectorD& genfit::AbsMeasurement::getRawHitCoords ( ) const
inlineinherited

Definition at line 58 of file AbsMeasurement.h.

References genfit::AbsMeasurement::rawHitCoords_.

58 {return rawHitCoords_;}
TVectorD& genfit::AbsMeasurement::getRawHitCoords ( )
inlineinherited

Definition at line 60 of file AbsMeasurement.h.

References genfit::AbsMeasurement::rawHitCoords_.

60 {return rawHitCoords_;}
const TMatrixDSym& genfit::AbsMeasurement::getRawHitCov ( ) const
inlineinherited

Definition at line 59 of file AbsMeasurement.h.

References genfit::AbsMeasurement::rawHitCov_.

59 {return rawHitCov_;}
TMatrixDSym& genfit::AbsMeasurement::getRawHitCov ( )
inlineinherited

Definition at line 61 of file AbsMeasurement.h.

References genfit::AbsMeasurement::rawHitCov_.

61 {return rawHitCov_;}
TrackPoint* genfit::AbsMeasurement::getTrackPoint ( ) const
inlineinherited

Definition at line 55 of file AbsMeasurement.h.

References genfit::AbsMeasurement::trackPoint_.

55 {return trackPoint_;}
TrackPoint * trackPoint_
Pointer to TrackPoint where the measurement belongs to.
virtual bool genfit::AbsMeasurement::isLeftRightMeasurement ( ) const
inlinevirtualinherited

If the AbsMeasurement is a wire hit, the left/right resolution will be used.

Reimplemented in genfit::WireMeasurement.

Definition at line 66 of file AbsMeasurement.h.

66 {return false;}
virtual void genfit::AbsMeasurement::Print ( const Option_t *  = "") const
virtualinherited
void genfit::AbsMeasurement::setDetId ( int  detId)
inlineinherited
void genfit::AbsMeasurement::setHitId ( int  hitId)
inlineinherited
virtual void genfit::PlanarMeasurement::setPlane ( const SharedPlanePtr physicalPlane,
int  planeId = -1 
)
inlinevirtual

Definition at line 62 of file PlanarMeasurement.h.

References physicalPlane_, and planeId_.

Referenced by PndGemRecoHit2::PndGemRecoHit2(), and PndSdsRecoHit2::PndSdsRecoHit2().

62 {physicalPlane_ = physicalPlane; planeId_ = planeId;}
int planeId_
This is persistent, but &#39;!&#39; makes ROOT shut up.
void genfit::AbsMeasurement::setRawHitCoords ( const TVectorD &  coords)
inlineinherited

Definition at line 71 of file AbsMeasurement.h.

References genfit::AbsMeasurement::rawHitCoords_.

71 {rawHitCoords_ = coords;}
void genfit::AbsMeasurement::setRawHitCov ( const TMatrixDSym &  cov)
inlineinherited

Definition at line 72 of file AbsMeasurement.h.

References genfit::AbsMeasurement::rawHitCov_.

72 {rawHitCov_ = cov;}
void genfit::PlanarMeasurement::setStripV ( bool  v = true)
inline

Use if the coordinate for 1D hits measured in V direction.

Per default for 1D planar hits, the coordinate is measured in U direction. With this function you can set it to be measured in V direction. This affects the outcoe of constructHMatrix().

Definition at line 70 of file PlanarMeasurement.h.

References stripV_, and v.

70 {stripV_ = v;}
__m128 v
Definition: P4_F32vec4.h:4
void genfit::AbsMeasurement::setTrackPoint ( TrackPoint tp)
inlineinherited

Definition at line 56 of file AbsMeasurement.h.

References genfit::AbsMeasurement::trackPoint_.

Referenced by genfit::TrackPoint::addRawMeasurement().

56 {trackPoint_ = tp;}
TrackPoint * trackPoint_
Pointer to TrackPoint where the measurement belongs to.

Member Data Documentation

int genfit::AbsMeasurement::detId_
protectedinherited
int genfit::AbsMeasurement::hitId_
protectedinherited
SharedPlanePtr genfit::PlanarMeasurement::physicalPlane_
protected

Definition at line 73 of file PlanarMeasurement.h.

Referenced by setPlane().

int genfit::PlanarMeasurement::planeId_
protected

This is persistent, but '!' makes ROOT shut up.

Definition at line 74 of file PlanarMeasurement.h.

Referenced by getPlaneId(), and setPlane().

TVectorD genfit::AbsMeasurement::rawHitCoords_
protectedinherited
TMatrixDSym genfit::AbsMeasurement::rawHitCov_
protectedinherited
bool genfit::PlanarMeasurement::stripV_
protected

Definition at line 75 of file PlanarMeasurement.h.

Referenced by setStripV().

TrackPoint* genfit::AbsMeasurement::trackPoint_
protectedinherited

Pointer to TrackPoint where the measurement belongs to.

Definition at line 119 of file AbsMeasurement.h.

Referenced by genfit::AbsMeasurement::getTrackPoint(), and genfit::AbsMeasurement::setTrackPoint().


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