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
 
template<typename... Args>
 TValidTrackingRecHit (Args &&... args)
 
 TValidTrackingRecHit (const GeomDet &geom)
 
- 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 (const GeomDet &idet, TrackingRecHit const &rh)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
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 48 of file KFBasedPixelFitter.h.

Constructor & Destructor Documentation

◆ MyBeamSpotHit()

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

Definition at line 31 of file KFBasedPixelFitter.cc.

33  localPosition_ = LocalPoint(0., 0., 0.);
34  //neglect XY differences and BS slope
35  localError_ = LocalError(sqr(beamSpot.BeamWidthX()), 0.0, sqr(beamSpot.sigmaZ()));
36 }

References pwdgSkimBPark_cfi::beamSpot, localError_, localPosition_, and sqr().

Referenced by clone().

◆ ~MyBeamSpotHit()

KFBasedPixelFitter::MyBeamSpotHit::~MyBeamSpotHit ( )
inlineoverride

Definition at line 51 of file KFBasedPixelFitter.h.

51 {}

Member Function Documentation

◆ clone()

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

Implements TValidTrackingRecHit.

Definition at line 65 of file KFBasedPixelFitter.h.

65 { return new MyBeamSpotHit(*this); }

References MyBeamSpotHit().

◆ dimension()

int KFBasedPixelFitter::MyBeamSpotHit::dimension ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 56 of file KFBasedPixelFitter.h.

56 { return 1; }

◆ hit()

const TrackingRecHit* KFBasedPixelFitter::MyBeamSpotHit::hit ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 60 of file KFBasedPixelFitter.h.

60 { return nullptr; }

◆ localPosition()

LocalPoint KFBasedPixelFitter::MyBeamSpotHit::localPosition ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 52 of file KFBasedPixelFitter.h.

52 { return localPosition_; }

References localPosition_.

◆ localPositionError()

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

Implements TrackingRecHit.

Definition at line 53 of file KFBasedPixelFitter.h.

53 { return localError_; }

References localError_.

◆ parameters()

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

Implements TrackingRecHit.

Definition at line 38 of file KFBasedPixelFitter.cc.

38  {
40  result[0] = localPosition().x();
41  return result;
42 }

References mps_fire::result.

◆ parametersError()

AlgebraicSymMatrix KFBasedPixelFitter::MyBeamSpotHit::parametersError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 43 of file KFBasedPixelFitter.cc.

43  {
46  m[0][0] = le.xx();
47  return m;
48 }

References visualization-live-secondInstance_cfg::m, and LocalError::xx().

◆ projectionMatrix()

AlgebraicMatrix KFBasedPixelFitter::MyBeamSpotHit::projectionMatrix ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 49 of file KFBasedPixelFitter.cc.

49  {
50  AlgebraicMatrix matrix(1, 5, 0);
51  matrix[0][3] = 1;
52  return matrix;
53 }

References makeMuonMisalignmentScenario::matrix.

◆ recHits() [1/2]

std::vector<const TrackingRecHit *> KFBasedPixelFitter::MyBeamSpotHit::recHits ( ) const
inlineoverridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 58 of file KFBasedPixelFitter.h.

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

◆ recHits() [2/2]

std::vector<TrackingRecHit *> KFBasedPixelFitter::MyBeamSpotHit::recHits ( )
inlineoverridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 59 of file KFBasedPixelFitter.h.

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

Member Data Documentation

◆ localError_

LocalError KFBasedPixelFitter::MyBeamSpotHit::localError_
private

Definition at line 64 of file KFBasedPixelFitter.h.

Referenced by localPositionError(), and MyBeamSpotHit().

◆ localPosition_

LocalPoint KFBasedPixelFitter::MyBeamSpotHit::localPosition_
private

Definition at line 63 of file KFBasedPixelFitter.h.

Referenced by localPosition(), and MyBeamSpotHit().

pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
makeMuonMisalignmentScenario.matrix
list matrix
Definition: makeMuonMisalignmentScenario.py:141
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
align::LocalPoint
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
LocalError::xx
float xx() const
Definition: LocalError.h:22
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
KFBasedPixelFitter::MyBeamSpotHit::localPosition_
LocalPoint localPosition_
Definition: KFBasedPixelFitter.h:63
TValidTrackingRecHit::TValidTrackingRecHit
TValidTrackingRecHit(const GeomDet &geom)
Definition: TValidTrackingRecHit.h:14
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
sqr
T sqr(T t)
Definition: KFBasedPixelFitter.cc:27
LocalError
Definition: LocalError.h:12
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
KFBasedPixelFitter::MyBeamSpotHit::MyBeamSpotHit
MyBeamSpotHit(const reco::BeamSpot &beamSpot, const GeomDet *geom)
Definition: KFBasedPixelFitter.cc:31
KFBasedPixelFitter::MyBeamSpotHit::localPositionError
LocalError localPositionError() const override
Definition: KFBasedPixelFitter.h:53
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
KFBasedPixelFitter::MyBeamSpotHit::localError_
LocalError localError_
Definition: KFBasedPixelFitter.h:64
KFBasedPixelFitter::MyBeamSpotHit::localPosition
LocalPoint localPosition() const override
Definition: KFBasedPixelFitter.h:52
mps_fire.result
result
Definition: mps_fire.py:303