#include <BeamSpotTransientTrackingRecHit.h>
Public Types | |
typedef TrackingRecHit::Type | Type |
Public Member Functions | |
BeamSpotTransientTrackingRecHit (const reco::BeamSpot &beamSpot, const BeamSpotGeomDet *geom, double phi) | |
virtual int | dimension () const |
virtual const TrackingRecHit * | hit () const |
virtual LocalPoint | localPosition () const |
virtual LocalError | localPositionError () const |
virtual AlgebraicVector | parameters () const |
virtual AlgebraicSymMatrix | parametersError () const |
virtual AlgebraicMatrix | projectionMatrix () const |
virtual std::vector< const TrackingRecHit * > | recHits () const |
Access to component RecHits (if any) | |
virtual std::vector < TrackingRecHit * > | recHits () |
Non-const access to component RecHits (if any) | |
virtual const Surface * | surface () const |
virtual | ~BeamSpotTransientTrackingRecHit () |
Protected Attributes | |
LocalError | localError_ |
LocalPoint | localPosition_ |
Private Member Functions | |
virtual BeamSpotTransientTrackingRecHit * | clone () const |
void | initialize () const |
BeamSpotTransientTrackingRecHit & | operator= (const BeamSpotTransientTrackingRecHit &t) |
Static Private Attributes | |
static bool | isInitialized |
static AlgebraicMatrix | theProjectionMatrix |
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 31 of file BeamSpotTransientTrackingRecHit.h.
BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit | ( | const reco::BeamSpot & | beamSpot, |
const BeamSpotGeomDet * | geom, | ||
double | phi | ||
) | [inline] |
Definition at line 33 of file BeamSpotTransientTrackingRecHit.h.
References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), funct::cos(), TransientTrackingRecHit::det(), localError_, localPosition_, funct::pow(), reco::BeamSpot::sigmaZ(), funct::sin(), GeomDet::toLocal(), reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().
:TransientTrackingRecHit(geom, AlignableBeamSpot::detId(), valid, 1.0, 1.0) { localPosition_ = det()->toLocal(GlobalPoint(beamSpot.x0(), beamSpot.y0(), beamSpot.z0())); localError_ = LocalError(std::pow(beamSpot.BeamWidthX()*cos(phi), 2) + std::pow(beamSpot.BeamWidthY()*sin(phi), 2), 0.0, std::pow(beamSpot.sigmaZ(), 2)); }
virtual BeamSpotTransientTrackingRecHit::~BeamSpotTransientTrackingRecHit | ( | ) | [inline, virtual] |
Definition at line 44 of file BeamSpotTransientTrackingRecHit.h.
References localPosition_.
{ return localPosition_; }
virtual BeamSpotTransientTrackingRecHit* BeamSpotTransientTrackingRecHit::clone | ( | void | ) | const [inline, private, virtual] |
Implements TransientTrackingRecHit.
Definition at line 83 of file BeamSpotTransientTrackingRecHit.h.
virtual int BeamSpotTransientTrackingRecHit::dimension | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 51 of file BeamSpotTransientTrackingRecHit.h.
{ return 0; }
virtual const TrackingRecHit* BeamSpotTransientTrackingRecHit::hit | ( | void | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Definition at line 53 of file BeamSpotTransientTrackingRecHit.h.
void BeamSpotTransientTrackingRecHit::initialize | ( | ) | const [private] |
Definition at line 26 of file BeamSpotTransientTrackingRecHit.cc.
References isInitialized, and theProjectionMatrix.
{ theProjectionMatrix = AlgebraicMatrix( 1, 5, 0); theProjectionMatrix[0][3] = 1; isInitialized = true; }
virtual LocalPoint BeamSpotTransientTrackingRecHit::localPosition | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 46 of file BeamSpotTransientTrackingRecHit.h.
References localError_.
Referenced by parameters().
{ return localError_; }
virtual LocalError BeamSpotTransientTrackingRecHit::localPositionError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 47 of file BeamSpotTransientTrackingRecHit.h.
Referenced by parametersError().
{ return 1; }
BeamSpotTransientTrackingRecHit& BeamSpotTransientTrackingRecHit::operator= | ( | const BeamSpotTransientTrackingRecHit & | t | ) | [inline, private] |
Definition at line 77 of file BeamSpotTransientTrackingRecHit.h.
{
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] |
virtual std::vector<TrackingRecHit*> BeamSpotTransientTrackingRecHit::recHits | ( | ) | [inline, virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 58 of file BeamSpotTransientTrackingRecHit.h.
virtual std::vector<const TrackingRecHit*> BeamSpotTransientTrackingRecHit::recHits | ( | ) | const [inline, virtual] |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 55 of file BeamSpotTransientTrackingRecHit.h.
{
virtual const Surface* BeamSpotTransientTrackingRecHit::surface | ( | ) | const [inline, virtual] |
Reimplemented from TransientTrackingRecHit.
Definition at line 62 of file BeamSpotTransientTrackingRecHit.h.
{
bool BeamSpotTransientTrackingRecHit::isInitialized [static, private] |
Definition at line 87 of file BeamSpotTransientTrackingRecHit.h.
Referenced by initialize().
Definition at line 72 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and localPosition().
Definition at line 71 of file BeamSpotTransientTrackingRecHit.h.
Referenced by BeamSpotTransientTrackingRecHit(), and ~BeamSpotTransientTrackingRecHit().
AlgebraicMatrix BeamSpotTransientTrackingRecHit::theProjectionMatrix [static, private] |
Definition at line 88 of file BeamSpotTransientTrackingRecHit.h.
Referenced by initialize().