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
 
BeamSpotTransientTrackingRecHitoperator= (const BeamSpotTransientTrackingRecHit &t)
 

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

Definition at line 29 of file BeamSpotTransientTrackingRecHit.h.

Constructor & Destructor Documentation

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

Definition at line 31 of file BeamSpotTransientTrackingRecHit.h.

References reco::BeamSpot::BeamWidthX(), reco::BeamSpot::BeamWidthY(), funct::cos(), TrackingRecHit::det(), localError_, localPosition_, funct::pow(), reco::BeamSpot::sigmaZ(), funct::sin(), GeomDet::toLocal(), reco::BeamSpot::x0(), reco::BeamSpot::y0(), and reco::BeamSpot::z0().

Referenced by clone().

32  : TValidTrackingRecHit(*geom) {
33  localPosition_ = det()->toLocal(GlobalPoint(beamSpot.x0(), beamSpot.y0(), beamSpot.z0()));
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  }
double z0() const
z coordinate
Definition: BeamSpot.h:68
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
Definition: GeomDet.h:69
TValidTrackingRecHit(const GeomDet &geom)
const GeomDet * det() const
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:86
double sigmaZ() const
sigma z
Definition: BeamSpot.h:80
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:88
double y0() const
y coordinate
Definition: BeamSpot.h:66
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
double x0() const
x coordinate
Definition: BeamSpot.h:64
BeamSpotTransientTrackingRecHit::~BeamSpotTransientTrackingRecHit ( )
inlineoverride

Definition at line 40 of file BeamSpotTransientTrackingRecHit.h.

40 {}

Member Function Documentation

BeamSpotTransientTrackingRecHit* BeamSpotTransientTrackingRecHit::clone ( void  ) const
inlineoverrideprivatevirtual

Implements TValidTrackingRecHit.

Definition at line 67 of file BeamSpotTransientTrackingRecHit.h.

References BeamSpotTransientTrackingRecHit().

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

Reimplemented from TrackingRecHit.

Definition at line 50 of file BeamSpotTransientTrackingRecHit.h.

50 { return nullptr; }
int BeamSpotTransientTrackingRecHit::dimension ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 47 of file BeamSpotTransientTrackingRecHit.h.

47 { return 1; }
const TrackingRecHit* BeamSpotTransientTrackingRecHit::hit ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 49 of file BeamSpotTransientTrackingRecHit.h.

49 { return nullptr; }
LocalPoint BeamSpotTransientTrackingRecHit::localPosition ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 42 of file BeamSpotTransientTrackingRecHit.h.

References localPosition_.

Referenced by parameters().

LocalError BeamSpotTransientTrackingRecHit::localPositionError ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 43 of file BeamSpotTransientTrackingRecHit.h.

References localError_, parameters(), and parametersError().

Referenced by parametersError().

BeamSpotTransientTrackingRecHit& BeamSpotTransientTrackingRecHit::operator= ( const BeamSpotTransientTrackingRecHit t)
inlineprivate

Definition at line 63 of file BeamSpotTransientTrackingRecHit.h.

63 { return *(this); }
AlgebraicVector BeamSpotTransientTrackingRecHit::parameters ( void  ) const
overridevirtual
AlgebraicSymMatrix BeamSpotTransientTrackingRecHit::parametersError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 17 of file BeamSpotTransientTrackingRecHit.cc.

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

Referenced by localPositionError().

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

Implements TrackingRecHit.

Definition at line 55 of file BeamSpotTransientTrackingRecHit.h.

References theProjectionMatrix.

55 { return theProjectionMatrix; }
static const AlgebraicMatrix theProjectionMatrix
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 *>(); }
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 BeamSpotTransientTrackingRecHit::localError_
protected
LocalPoint BeamSpotTransientTrackingRecHit::localPosition_
protected
const AlgebraicMatrix BeamSpotTransientTrackingRecHit::theProjectionMatrix = initialize()
staticprivate

Definition at line 69 of file BeamSpotTransientTrackingRecHit.h.

Referenced by initialize(), and projectionMatrix().