CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Static Private Attributes
BeamSpotTransientTrackingRecHit Class Referencefinal

#include <BeamSpotTransientTrackingRecHit.h>

Inheritance diagram for BeamSpotTransientTrackingRecHit:
TValidTrackingRecHit TrackingRecHit

Public Types

typedef TrackingRecHit::Type Type
 
- 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
}
 

Public Member Functions

 BeamSpotTransientTrackingRecHit (const reco::BeamSpot &beamSpot, const BeamSpotGeomDet *geom, double phi)
 
TrackingRecHitcloneHit () const override
 
int dimension () const override
 
const TrackingRecHithit () const override
 
LocalPoint localPosition () const override
 
LocalError localPositionError () const override
 
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...
 
 ~BeamSpotTransientTrackingRecHit () 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 ()
 

Protected Attributes

LocalError localError_
 
LocalPoint localPosition_
 

Private Member Functions

BeamSpotTransientTrackingRecHitclone () const override
 

Static Private Attributes

static const AlgebraicMatrix theProjectionMatrix = initialize()
 

Additional Inherited Members

- 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

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:

Date
2012/02/04 15:02:59

by :

Author
innocent

Definition at line 27 of file BeamSpotTransientTrackingRecHit.h.

Member Typedef Documentation

◆ Type

Definition at line 29 of file BeamSpotTransientTrackingRecHit.h.

Constructor & Destructor Documentation

◆ BeamSpotTransientTrackingRecHit()

BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit ( const reco::BeamSpot beamSpot,
const BeamSpotGeomDet geom,
double  phi 
)
inline

Definition at line 31 of file BeamSpotTransientTrackingRecHit.h.

References isoTrack_cff::beamSpot, funct::cos(), TrackingRecHit::det(), localError_, localPosition_, phi, funct::pow(), funct::sin(), and GeomDet::toLocal().

Referenced by clone().

34  localError_ =
35  LocalError(std::pow(beamSpot.BeamWidthX() * cos(phi), 2) + std::pow(beamSpot.BeamWidthY() * sin(phi), 2),
36  0.0,
37  std::pow(beamSpot.sigmaZ(), 2));
38  }
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
Definition: GeomDet.h:58
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
const GeomDet * det() const
TValidTrackingRecHit(const GeomDet &geom)
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29

◆ ~BeamSpotTransientTrackingRecHit()

BeamSpotTransientTrackingRecHit::~BeamSpotTransientTrackingRecHit ( )
inlineoverride

Definition at line 40 of file BeamSpotTransientTrackingRecHit.h.

40 {}

Member Function Documentation

◆ clone()

BeamSpotTransientTrackingRecHit* BeamSpotTransientTrackingRecHit::clone ( void  ) const
inlineoverrideprivatevirtual

Implements TValidTrackingRecHit.

Definition at line 64 of file BeamSpotTransientTrackingRecHit.h.

References BeamSpotTransientTrackingRecHit().

64 { return new BeamSpotTransientTrackingRecHit(*this); }
BeamSpotTransientTrackingRecHit(const reco::BeamSpot &beamSpot, const BeamSpotGeomDet *geom, double phi)

◆ cloneHit()

TrackingRecHit* BeamSpotTransientTrackingRecHit::cloneHit ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 50 of file BeamSpotTransientTrackingRecHit.h.

50 { return nullptr; }

◆ dimension()

int BeamSpotTransientTrackingRecHit::dimension ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 47 of file BeamSpotTransientTrackingRecHit.h.

47 { return 1; }

◆ hit()

const TrackingRecHit* BeamSpotTransientTrackingRecHit::hit ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 49 of file BeamSpotTransientTrackingRecHit.h.

49 { return nullptr; }

◆ localPosition()

LocalPoint BeamSpotTransientTrackingRecHit::localPosition ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 42 of file BeamSpotTransientTrackingRecHit.h.

References localPosition_.

Referenced by parameters().

◆ localPositionError()

LocalError BeamSpotTransientTrackingRecHit::localPositionError ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 43 of file BeamSpotTransientTrackingRecHit.h.

References localError_.

Referenced by parametersError().

◆ parameters()

AlgebraicVector BeamSpotTransientTrackingRecHit::parameters ( void  ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 11 of file BeamSpotTransientTrackingRecHit.cc.

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

11  {
13  result[0] = localPosition().x();
14  return result;
15 }
T x() const
Definition: PV3DBase.h:59
CLHEP::HepVector AlgebraicVector

◆ parametersError()

AlgebraicSymMatrix BeamSpotTransientTrackingRecHit::parametersError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 17 of file BeamSpotTransientTrackingRecHit.cc.

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

17  {
20  m[0][0] = le.xx();
21  return m;
22 }
LocalError localPositionError() const override
CLHEP::HepSymMatrix AlgebraicSymMatrix
float xx() const
Definition: LocalError.h:22

◆ projectionMatrix()

AlgebraicMatrix BeamSpotTransientTrackingRecHit::projectionMatrix ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 55 of file BeamSpotTransientTrackingRecHit.h.

References theProjectionMatrix.

55 { return theProjectionMatrix; }
static const AlgebraicMatrix theProjectionMatrix

◆ recHits() [1/2]

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

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 52 of file BeamSpotTransientTrackingRecHit.h.

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

◆ recHits() [2/2]

std::vector<TrackingRecHit *> BeamSpotTransientTrackingRecHit::recHits ( )
inlineoverridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 53 of file BeamSpotTransientTrackingRecHit.h.

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

Member Data Documentation

◆ localError_

LocalError BeamSpotTransientTrackingRecHit::localError_
protected

◆ localPosition_

LocalPoint BeamSpotTransientTrackingRecHit::localPosition_
protected

◆ theProjectionMatrix

const AlgebraicMatrix BeamSpotTransientTrackingRecHit::theProjectionMatrix = initialize()
staticprivate

Definition at line 66 of file BeamSpotTransientTrackingRecHit.h.

Referenced by projectionMatrix().