#include <BeamSpotTransientTrackingRecHit.h>
Transient tracking rec hit for the beam spot used in ReferenceTrajectory to extend the track to the beam spot.
Author : Andreas Mussgiller date : 2010/08/30 last update:
by :
Definition at line 27 of file BeamSpotTransientTrackingRecHit.h.
Type of hits: valid = valid hit missing = detector is good, but no rec hit found inactive = detector is off, so there was no hope bad = there were many bad strips within the ellipse (in Tracker) = hit is compatible with the trajectory, but chi2 is too large (in Muon System)
Reimplemented from TrackingRecHit.
Definition at line 30 of file BeamSpotTransientTrackingRecHit.h.
BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit | ( | const reco::BeamSpot & | beamSpot, |
const BeamSpotGeomDet * | geom, | ||
double | phi | ||
) | [inline] |
Definition at line 32 of file BeamSpotTransientTrackingRecHit.h.
References beamSpotErrorR_, beamSpotErrorRPhi_, beamSpotErrorZ_, beamSpotGlobalError_, beamSpotGlobalPosition_, beamSpotLocalError_, beamSpotLocalPosition_, reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), funct::cos(), TransientTrackingRecHit::det(), PV3DBase< T, PVType, FrameType >::perp(), reco::BeamSpot::sigmaZ(), funct::sin(), mathSSE::sqrt(), surface(), GeomDet::toLocal(), ErrorFrameTransformer::transform(), reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
Referenced by clone().
:TransientTrackingRecHit(geom, AlignableBeamSpot::detId(), valid, 1.0, 1.0) { beamSpotGlobalPosition_ = GlobalPoint(beamSpot.x0(), beamSpot.y0(), beamSpot.z0()); beamSpotLocalPosition_ = det()->toLocal(beamSpotGlobalPosition_); beamSpotLocalError_ = LocalError(sqrt(beamSpot.BeamWidthX()*cos(phi)*beamSpot.BeamWidthX()*cos(phi) + beamSpot.BeamWidthY()*sin(phi)*beamSpot.BeamWidthY()*sin(phi)), 0.0, beamSpot.sigmaZ()); beamSpotGlobalError_ = ErrorFrameTransformer().transform(beamSpotLocalError_, det()->surface()); beamSpotErrorRPhi_ = beamSpotGlobalPosition_.perp()*sqrt(beamSpotGlobalError_.phierr(beamSpotGlobalPosition_)); beamSpotErrorR_ = sqrt(beamSpotGlobalError_.rerr(beamSpotGlobalPosition_)); beamSpotErrorZ_ = sqrt(beamSpotGlobalError_.czz()); }
virtual BeamSpotTransientTrackingRecHit::~BeamSpotTransientTrackingRecHit | ( | ) | [inline, virtual] |
Definition at line 50 of file BeamSpotTransientTrackingRecHit.h.
{}
virtual BeamSpotTransientTrackingRecHit* BeamSpotTransientTrackingRecHit::clone | ( | void | ) | const [inline, private, virtual] |
Implements TransientTrackingRecHit.
Definition at line 99 of file BeamSpotTransientTrackingRecHit.h.
References BeamSpotTransientTrackingRecHit().
{ return new BeamSpotTransientTrackingRecHit(*this); }
virtual int BeamSpotTransientTrackingRecHit::dimension | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 64 of file BeamSpotTransientTrackingRecHit.h.
{ return 1; }
float BeamSpotTransientTrackingRecHit::errorGlobalR | ( | ) | const [inline] |
Reimplemented from TransientTrackingRecHit.
Definition at line 58 of file BeamSpotTransientTrackingRecHit.h.
References beamSpotErrorR_.
{ return beamSpotErrorR_; }
float BeamSpotTransientTrackingRecHit::errorGlobalRPhi | ( | ) | const [inline] |
Reimplemented from TransientTrackingRecHit.
Definition at line 60 of file BeamSpotTransientTrackingRecHit.h.
References beamSpotErrorRPhi_.
{ return beamSpotErrorRPhi_; }
float BeamSpotTransientTrackingRecHit::errorGlobalZ | ( | ) | const [inline] |
Reimplemented from TransientTrackingRecHit.
Definition at line 59 of file BeamSpotTransientTrackingRecHit.h.
References beamSpotErrorZ_.
{ return beamSpotErrorZ_; }
virtual GlobalPoint BeamSpotTransientTrackingRecHit::globalPosition | ( | ) | const [inline, virtual] |
Reimplemented from TransientTrackingRecHit.
Definition at line 52 of file BeamSpotTransientTrackingRecHit.h.
References beamSpotGlobalPosition_.
{ return beamSpotGlobalPosition_; }
virtual GlobalError BeamSpotTransientTrackingRecHit::globalPositionError | ( | ) | const [inline, virtual] |
Reimplemented from TransientTrackingRecHit.
Definition at line 53 of file BeamSpotTransientTrackingRecHit.h.
References beamSpotGlobalError_.
{ return beamSpotGlobalError_; }
virtual const TrackingRecHit* BeamSpotTransientTrackingRecHit::hit | ( | void | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Definition at line 66 of file BeamSpotTransientTrackingRecHit.h.
{ return 0; }
void BeamSpotTransientTrackingRecHit::initialize | ( | ) | const [private] |
Definition at line 26 of file BeamSpotTransientTrackingRecHit.cc.
References isInitialized, and theProjectionMatrix.
Referenced by projectionMatrix().
{ theProjectionMatrix = AlgebraicMatrix( 1, 5, 0); theProjectionMatrix[0][3] = 1; isInitialized = true; }
virtual LocalPoint BeamSpotTransientTrackingRecHit::localPosition | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 55 of file BeamSpotTransientTrackingRecHit.h.
References beamSpotLocalPosition_.
Referenced by parameters().
{ return beamSpotLocalPosition_; }
virtual LocalError BeamSpotTransientTrackingRecHit::localPositionError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 56 of file BeamSpotTransientTrackingRecHit.h.
References beamSpotLocalError_.
Referenced by parametersError().
{ return beamSpotLocalError_; }
BeamSpotTransientTrackingRecHit& BeamSpotTransientTrackingRecHit::operator= | ( | const BeamSpotTransientTrackingRecHit & | t | ) | [inline, private] |
Definition at line 93 of file BeamSpotTransientTrackingRecHit.h.
{ return *(this); }
AlgebraicVector BeamSpotTransientTrackingRecHit::parameters | ( | void | ) | const [virtual] |
Implements TrackingRecHit.
Definition at line 11 of file BeamSpotTransientTrackingRecHit.cc.
References localPosition(), query::result, and PV3DBase< T, PVType, FrameType >::x().
{ AlgebraicVector result(1); result[0] = localPosition().x(); return result; }
AlgebraicSymMatrix BeamSpotTransientTrackingRecHit::parametersError | ( | ) | const [virtual] |
Implements TrackingRecHit.
Definition at line 18 of file BeamSpotTransientTrackingRecHit.cc.
References asciidump::le, localPositionError(), m, and LocalError::xx().
{ LocalError le = localPositionError(); AlgebraicSymMatrix m(1); m[0][0] = le.xx(); return m; }
virtual AlgebraicMatrix BeamSpotTransientTrackingRecHit::projectionMatrix | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 77 of file BeamSpotTransientTrackingRecHit.h.
References initialize(), isInitialized, and theProjectionMatrix.
{ if (!isInitialized) initialize(); return theProjectionMatrix; }
virtual std::vector<const TrackingRecHit*> BeamSpotTransientTrackingRecHit::recHits | ( | ) | const [inline, virtual] |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 68 of file BeamSpotTransientTrackingRecHit.h.
{
return std::vector<const TrackingRecHit*>();
}
virtual std::vector<TrackingRecHit*> BeamSpotTransientTrackingRecHit::recHits | ( | ) | [inline, virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 71 of file BeamSpotTransientTrackingRecHit.h.
{
return std::vector<TrackingRecHit*>();
}
virtual const Surface* BeamSpotTransientTrackingRecHit::surface | ( | ) | const [inline, virtual] |
Reimplemented from TransientTrackingRecHit.
Definition at line 75 of file BeamSpotTransientTrackingRecHit.h.
References TransientTrackingRecHit::det(), and GeomDet::surface().
Referenced by BeamSpotTransientTrackingRecHit().
float BeamSpotTransientTrackingRecHit::beamSpotErrorR_ [protected] |
Definition at line 86 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and errorGlobalR().
float BeamSpotTransientTrackingRecHit::beamSpotErrorRPhi_ [protected] |
Definition at line 86 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and errorGlobalRPhi().
float BeamSpotTransientTrackingRecHit::beamSpotErrorZ_ [protected] |
Definition at line 86 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and errorGlobalZ().
Definition at line 85 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and globalPositionError().
Definition at line 84 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and globalPosition().
Definition at line 88 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and localPositionError().
Definition at line 87 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and localPosition().
bool BeamSpotTransientTrackingRecHit::isInitialized [static, private] |
Definition at line 103 of file BeamSpotTransientTrackingRecHit.h.
Referenced by initialize(), and projectionMatrix().
AlgebraicMatrix BeamSpotTransientTrackingRecHit::theProjectionMatrix [static, private] |
Definition at line 104 of file BeamSpotTransientTrackingRecHit.h.
Referenced by initialize(), and projectionMatrix().