CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
KFBasedPixelFitter::MyBeamSpotHit Class Referencefinal
Inheritance diagram for KFBasedPixelFitter::MyBeamSpotHit:
TValidTrackingRecHit TrackingRecHit

Public Member Functions

int dimension () const override
 
const TrackingRecHithit () const override
 
LocalPoint localPosition () const override
 
LocalError localPositionError () const override
 
 MyBeamSpotHit (const reco::BeamSpot &beamSpot, const GeomDet *geom)
 
AlgebraicVector parameters () const override
 
AlgebraicSymMatrix parametersError () const override
 
AlgebraicMatrix projectionMatrix () const override
 
std::vector< const TrackingRecHit * > recHits () const override
 Access to component RecHits (if any) More...
 
std::vector< TrackingRecHit * > recHits () override
 Non-const access to component RecHits (if any) More...
 
 ~MyBeamSpotHit () override
 
- Public Member Functions inherited from TValidTrackingRecHit
bool canImproveWithTrack () const override
 
TrackingRecHitcloneHit () const override
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float errorGlobalR () const final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
const Surfacesurface () const final
 
 TValidTrackingRecHit (const GeomDet &geom)
 
template<typename... Args>
 TValidTrackingRecHit (Args &&...args)
 
- Public Member Functions inherited from TrackingRecHit
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
bool isValid () const
 
id_type rawId () const
 
virtual void recHitsV (std::vector< const TrackingRecHit * > &) const
 
virtual void recHitsV (std::vector< TrackingRecHit * > &)
 
virtual void setDet (const GeomDet &idet)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Private Member Functions

MyBeamSpotHitclone () const override
 

Private Attributes

LocalError localError_
 
LocalPoint localPosition_
 

Additional Inherited Members

- Public Types inherited from TrackingRecHit
typedef std::vector< ConstRecHitPointerConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector< ConstRecHitPointerRecHitContainer
 
using RecHitPointer = std::shared_ptr< TrackingRecHit const >
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type {
  valid = 0, missing = 1, inactive = 2, bad = 3,
  missing_inner = 4, missing_outer = 5, inactive_inner = 6, inactive_outer = 7
}
 
- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Detailed Description

Definition at line 42 of file KFBasedPixelFitter.h.

Constructor & Destructor Documentation

KFBasedPixelFitter::MyBeamSpotHit::MyBeamSpotHit ( const reco::BeamSpot beamSpot,
const GeomDet geom 
)

Definition at line 50 of file KFBasedPixelFitter.cc.

References reco::BeamSpot::BeamWidthX(), localError_, localPosition_, reco::BeamSpot::sigmaZ(), and sqr().

51  : TValidTrackingRecHit(*geom)
52 {
53  localPosition_ = LocalPoint(0.,0.,0.);
54  localError_ = LocalError( sqr(beamSpot.BeamWidthX()), 0.0, sqr(beamSpot.sigmaZ())); //neglect XY differences and BS slope
55 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:32
T sqr(T t)
TValidTrackingRecHit(const GeomDet &geom)
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:86
double sigmaZ() const
sigma z
Definition: BeamSpot.h:80
KFBasedPixelFitter::MyBeamSpotHit::~MyBeamSpotHit ( )
inlineoverride

Definition at line 45 of file KFBasedPixelFitter.h.

45 {}

Member Function Documentation

MyBeamSpotHit* KFBasedPixelFitter::MyBeamSpotHit::clone ( void  ) const
inlineoverrideprivatevirtual

Implements TValidTrackingRecHit.

Definition at line 58 of file KFBasedPixelFitter.h.

58 { return new MyBeamSpotHit(*this); }
MyBeamSpotHit(const reco::BeamSpot &beamSpot, const GeomDet *geom)
int KFBasedPixelFitter::MyBeamSpotHit::dimension ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 50 of file KFBasedPixelFitter.h.

50 { return 1; }
const TrackingRecHit* KFBasedPixelFitter::MyBeamSpotHit::hit ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 54 of file KFBasedPixelFitter.h.

54 { return nullptr; }
LocalPoint KFBasedPixelFitter::MyBeamSpotHit::localPosition ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 46 of file KFBasedPixelFitter.h.

Referenced by parameters().

LocalError KFBasedPixelFitter::MyBeamSpotHit::localPositionError ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 47 of file KFBasedPixelFitter.h.

Referenced by parametersError().

AlgebraicVector KFBasedPixelFitter::MyBeamSpotHit::parameters ( void  ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 57 of file KFBasedPixelFitter.cc.

References localPosition(), mps_fire::result, and PV3DBase< T, PVType, FrameType >::x().

58 {
60  result[0] = localPosition().x();
61  return result;
62 }
CLHEP::HepVector AlgebraicVector
T x() const
Definition: PV3DBase.h:62
LocalPoint localPosition() const override
AlgebraicSymMatrix KFBasedPixelFitter::MyBeamSpotHit::parametersError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 63 of file KFBasedPixelFitter.cc.

References localPositionError(), funct::m, and LocalError::xx().

64 {
67  m[0][0] = le.xx();
68  return m;
69 }
float xx() const
Definition: LocalError.h:24
CLHEP::HepSymMatrix AlgebraicSymMatrix
LocalError localPositionError() const override
AlgebraicMatrix KFBasedPixelFitter::MyBeamSpotHit::projectionMatrix ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 70 of file KFBasedPixelFitter.cc.

References makeMuonMisalignmentScenario::matrix.

71 {
72  AlgebraicMatrix matrix( 1, 5, 0);
73  matrix[0][3] = 1;
74  return matrix;
75 }
CLHEP::HepMatrix AlgebraicMatrix
std::vector<const TrackingRecHit*> KFBasedPixelFitter::MyBeamSpotHit::recHits ( ) const
inlineoverridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 52 of file KFBasedPixelFitter.h.

52 { return std::vector<const TrackingRecHit*>(); }
std::vector<TrackingRecHit*> KFBasedPixelFitter::MyBeamSpotHit::recHits ( )
inlineoverridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 53 of file KFBasedPixelFitter.h.

53 { return std::vector<TrackingRecHit*>(); }

Member Data Documentation

LocalError KFBasedPixelFitter::MyBeamSpotHit::localError_
private

Definition at line 57 of file KFBasedPixelFitter.h.

Referenced by MyBeamSpotHit().

LocalPoint KFBasedPixelFitter::MyBeamSpotHit::localPosition_
private

Definition at line 56 of file KFBasedPixelFitter.h.

Referenced by MyBeamSpotHit().