FairRoot/PandaRoot
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes | List of all members
PndHitRecoHit2 Class Reference

A planar (x,y) reco hit & its sensor plane. More...

#include <PndHitRecoHit2.h>

Inheritance diagram for PndHitRecoHit2:
genfit::SpacepointMeasurement genfit::AbsMeasurement

Public Member Functions

 PndHitRecoHit2 ()
 
 PndHitRecoHit2 (FairMCPoint *point)
 
 PndHitRecoHit2 (FairHit *hit)
 
virtual ~PndHitRecoHit2 ()
 
virtual genfit::AbsMeasurementclone ()
 
virtual AbsMeasurementclone () const
 Deep copy ctor for polymorphic class. More...
 
virtual SharedPlanePtr constructPlane (const StateOnPlane &state) const
 Contruct the virtual detector plane. More...
 
virtual std::vector
< MeasurementOnPlane * > 
constructMeasurementsOnPlane (const StateOnPlane &state) const
 
virtual const AbsHMatrix * constructHMatrix (const AbsTrackRep *) const
 
TrackPoint * getTrackPoint () 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 Member Functions

void initG ()
 

Protected Attributes

TVectorD rawHitCoords_
 
TMatrixDSym rawHitCov_
 
int detId_
 
int hitId_
 
TrackPoint * trackPoint_
 Pointer to TrackPoint where the measurement belongs to. More...
 

Private Member Functions

 ClassDef (PndHitRecoHit2, 1)
 

Static Private Attributes

static const Int_t fNparHitRep = 3
 

Detailed Description

A planar (x,y) reco hit & its sensor plane.

Author
Ralf Kliemt Uni Bonn

Definition at line 33 of file PndHitRecoHit2.h.

Constructor & Destructor Documentation

PndHitRecoHit2::PndHitRecoHit2 ( )

Definition at line 35 of file PndHitRecoHit2.cxx.

Referenced by clone().

37 {
38 }
static const Int_t fNparHitRep
PndHitRecoHit2::PndHitRecoHit2 ( FairMCPoint *  point)

Definition at line 41 of file PndHitRecoHit2.cxx.

References Double_t, genfit::AbsMeasurement::rawHitCoords_, and genfit::AbsMeasurement::rawHitCov_.

43 {
44  //std::cout<<" -I- PndHitRecoHit::PndHitRecoHit(FairMCPoint*) called."<<std::endl;
45 
46  rawHitCoords_[0] = point->GetX();
47  rawHitCoords_[1] = point->GetY();
48  rawHitCoords_[2] = point->GetZ();
49 
50  // fixed errors on the monte carlo points
51  // we set the covariances to (500 mum)^2 by hand.
52  Double_t sigmasq=0.05*0.05; //cm //TODO: cm is rigt?
53  rawHitCov_[0][0] = sigmasq;
54  rawHitCov_[1][1] = sigmasq;
55  rawHitCov_[2][2] = sigmasq;
56 
57 }
static const Int_t fNparHitRep
Double_t
PndSdsMCPoint * point
Definition: anaLmdCluster.C:72
PndHitRecoHit2::PndHitRecoHit2 ( FairHit *  hit)

Definition at line 59 of file PndHitRecoHit2.cxx.

References genfit::AbsMeasurement::rawHitCoords_, and genfit::AbsMeasurement::rawHitCov_.

61 {
62  // std::cout<<" -I- PndHitRecoHit::PndHitRecoHit(PndSdsHit*) called."<<std::endl;
63 
64  rawHitCoords_[0] = hit->GetX();
65  rawHitCoords_[1] = hit->GetY();
66  rawHitCoords_[2] = hit->GetZ();
67 
68  rawHitCov_[0][0] = hit->GetDx() * hit->GetDx();
69  rawHitCov_[1][1] = hit->GetDy() * hit->GetDy();
70  rawHitCov_[2][2] = hit->GetDz() * hit->GetDz();
71 
72 }
static const Int_t fNparHitRep
PndSdsMCPoint * hit
Definition: anasim.C:70
PndHitRecoHit2::~PndHitRecoHit2 ( )
virtual

Definition at line 31 of file PndHitRecoHit2.cxx.

32 {
33 }

Member Function Documentation

PndHitRecoHit2::ClassDef ( PndHitRecoHit2  ,
 
)
private
virtual genfit::AbsMeasurement* PndHitRecoHit2::clone ( )
inlinevirtual

Definition at line 44 of file PndHitRecoHit2.h.

References PndHitRecoHit2().

44 {return new PndHitRecoHit2(*this);};
virtual AbsMeasurement* genfit::SpacepointMeasurement::clone ( ) const
inlinevirtualinherited

Deep copy ctor for polymorphic class.

Implements genfit::AbsMeasurement.

Reimplemented in genfit::ProlateSpacepointMeasurement.

Definition at line 55 of file SpacepointMeasurement.h.

References genfit::SpacepointMeasurement::SpacepointMeasurement().

55 {return new SpacepointMeasurement(*this);}
virtual const AbsHMatrix* genfit::SpacepointMeasurement::constructHMatrix ( const AbsTrackRep ) const
virtualinherited

Returns a new AbsHMatrix object. Caller must take ownership.

Implements genfit::AbsMeasurement.

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

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::SpacepointMeasurement::constructPlane ( const StateOnPlane state) const
virtualinherited

Contruct the virtual detector plane.

Per default, the plane will be constructed such that it contains the measurement and POCA to the measurement in cartesian space. The plane is perpendicular to the track (at the POCA).

If weightedPlaneContruction_ is set, the POCA will be calculated in a space weighted with the inverse of the 3D covariance. E.g. if the covariance is very oblate, the plane will be almost defined by the covariance shape. If the covariance is very prolate, the behaviour will be very similar to the ProlateSpacepointHit.

Implements genfit::AbsMeasurement.

Reimplemented in genfit::ProlateSpacepointMeasurement.

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;}
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.
void genfit::SpacepointMeasurement::initG ( )
protectedinherited
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
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::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
const Int_t PndHitRecoHit2::fNparHitRep = 3
staticprivate

Definition at line 51 of file PndHitRecoHit2.h.

int genfit::AbsMeasurement::hitId_
protectedinherited
TVectorD genfit::AbsMeasurement::rawHitCoords_
protectedinherited
TMatrixDSym genfit::AbsMeasurement::rawHitCov_
protectedinherited
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 files: