CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
KFBasedPixelFitter::MyBeamSpotHit Class Reference
Inheritance diagram for KFBasedPixelFitter::MyBeamSpotHit:
TValidTrackingRecHit TrackingRecHit

Public Member Functions

virtual int dimension () const
 
virtual const TrackingRecHithit () const
 
virtual LocalPoint localPosition () const
 
virtual LocalError localPositionError () const
 
 MyBeamSpotHit (const reco::BeamSpot &beamSpot, const GeomDet *geom)
 
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) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any) More...
 
virtual ~MyBeamSpotHit ()
 
- Public Member Functions inherited from TValidTrackingRecHit
virtual bool canImproveWithTrack () const
 
TrackingRecHitcloneHit () const
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float errorGlobalR () const
 
float errorGlobalRPhi () const
 
float errorGlobalZ () const
 
virtual GlobalPoint globalPosition () const
 
GlobalError globalPositionError () const
 
TrackingRecHitGlobalState globalState () const
 
virtual const Surfacesurface () const
 
 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

virtual MyBeamSpotHitclone () const
 

Private Attributes

LocalError localError_
 
LocalPoint localPosition_
 

Additional Inherited Members

- Public Types inherited from TrackingRecHit
typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
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
}
 
- 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 40 of file KFBasedPixelFitter.h.

Constructor & Destructor Documentation

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

Definition at line 57 of file KFBasedPixelFitter.cc.

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

Referenced by clone().

58  : TValidTrackingRecHit(*geom)
59 {
60  localPosition_ = LocalPoint(0.,0.,0.);
61  localError_ = LocalError( sqr(beamSpot.BeamWidthX()), 0.0, sqr(beamSpot.sigmaZ())); //neglect XY differences and BS slope
62 }
TValidTrackingRecHit(const GeomDet &geom)
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:86
double sigmaZ() const
sigma z
Definition: BeamSpot.h:80
Square< F >::type sqr(const F &f)
Definition: Square.h:13
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
virtual KFBasedPixelFitter::MyBeamSpotHit::~MyBeamSpotHit ( )
inlinevirtual

Definition at line 43 of file KFBasedPixelFitter.h.

43 {}

Member Function Documentation

virtual MyBeamSpotHit* KFBasedPixelFitter::MyBeamSpotHit::clone ( void  ) const
inlineprivatevirtual

Implements TValidTrackingRecHit.

Definition at line 56 of file KFBasedPixelFitter.h.

References MyBeamSpotHit().

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

Implements TrackingRecHit.

Definition at line 48 of file KFBasedPixelFitter.h.

48 { return 1; }
virtual const TrackingRecHit* KFBasedPixelFitter::MyBeamSpotHit::hit ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 52 of file KFBasedPixelFitter.h.

52 { return 0; }
virtual LocalPoint KFBasedPixelFitter::MyBeamSpotHit::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 44 of file KFBasedPixelFitter.h.

References localPosition_.

virtual LocalError KFBasedPixelFitter::MyBeamSpotHit::localPositionError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 45 of file KFBasedPixelFitter.h.

References localError_.

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

Implements TrackingRecHit.

Definition at line 64 of file KFBasedPixelFitter.cc.

References query::result.

65 {
67  result[0] = localPosition().x();
68  return result;
69 }
virtual LocalPoint localPosition() const
tuple result
Definition: query.py:137
CLHEP::HepVector AlgebraicVector
T x() const
Definition: PV3DBase.h:62
AlgebraicSymMatrix KFBasedPixelFitter::MyBeamSpotHit::parametersError ( ) const
virtual

Implements TrackingRecHit.

Definition at line 70 of file KFBasedPixelFitter.cc.

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

71 {
74  m[0][0] = le.xx();
75  return m;
76 }
float xx() const
Definition: LocalError.h:24
virtual LocalError localPositionError() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicMatrix KFBasedPixelFitter::MyBeamSpotHit::projectionMatrix ( ) const
virtual

Implements TrackingRecHit.

Definition at line 77 of file KFBasedPixelFitter.cc.

References makeMuonMisalignmentScenario::matrix.

78 {
79  AlgebraicMatrix matrix( 1, 5, 0);
80  matrix[0][3] = 1;
81  return matrix;
82 }
CLHEP::HepMatrix AlgebraicMatrix
virtual std::vector<const TrackingRecHit*> KFBasedPixelFitter::MyBeamSpotHit::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 50 of file KFBasedPixelFitter.h.

50 { return std::vector<const TrackingRecHit*>(); }
virtual std::vector<TrackingRecHit*> KFBasedPixelFitter::MyBeamSpotHit::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 51 of file KFBasedPixelFitter.h.

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

Member Data Documentation

LocalError KFBasedPixelFitter::MyBeamSpotHit::localError_
private

Definition at line 55 of file KFBasedPixelFitter.h.

Referenced by localPositionError(), and MyBeamSpotHit().

LocalPoint KFBasedPixelFitter::MyBeamSpotHit::localPosition_
private

Definition at line 54 of file KFBasedPixelFitter.h.

Referenced by localPosition(), and MyBeamSpotHit().