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
 
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 ()
 

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

◆ 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.

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  }

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

Referenced by clone().

◆ ~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 67 of file BeamSpotTransientTrackingRecHit.h.

67 { return new BeamSpotTransientTrackingRecHit(*this); }

References BeamSpotTransientTrackingRecHit().

◆ 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.

42 { return localPosition_; }

References localPosition_.

Referenced by parameters().

◆ localPositionError()

LocalError BeamSpotTransientTrackingRecHit::localPositionError ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 43 of file BeamSpotTransientTrackingRecHit.h.

43 { return localError_; }

References localError_.

Referenced by parametersError().

◆ operator=()

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

Definition at line 63 of file BeamSpotTransientTrackingRecHit.h.

63 { return *(this); }

◆ parameters()

AlgebraicVector BeamSpotTransientTrackingRecHit::parameters ( void  ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 11 of file BeamSpotTransientTrackingRecHit.cc.

11  {
13  result[0] = localPosition().x();
14  return result;
15 }

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

◆ parametersError()

AlgebraicSymMatrix BeamSpotTransientTrackingRecHit::parametersError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 17 of file BeamSpotTransientTrackingRecHit.cc.

17  {
20  m[0][0] = le.xx();
21  return m;
22 }

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

◆ projectionMatrix()

AlgebraicMatrix BeamSpotTransientTrackingRecHit::projectionMatrix ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 55 of file BeamSpotTransientTrackingRecHit.h.

55 { return theProjectionMatrix; }

References 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 69 of file BeamSpotTransientTrackingRecHit.h.

Referenced by projectionMatrix().

pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
BeamSpotTransientTrackingRecHit::localPosition_
LocalPoint localPosition_
Definition: BeamSpotTransientTrackingRecHit.h:58
PV3DBase::x
T x() const
Definition: PV3DBase.h:59
TrackingRecHit::det
const GeomDet * det() const
Definition: TrackingRecHit.h:122
BeamSpotTransientTrackingRecHit::localPositionError
LocalError localPositionError() const override
Definition: BeamSpotTransientTrackingRecHit.h:43
funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
funct::cos
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
LocalError::xx
float xx() const
Definition: LocalError.h:22
BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit
BeamSpotTransientTrackingRecHit(const reco::BeamSpot &beamSpot, const BeamSpotGeomDet *geom, double phi)
Definition: BeamSpotTransientTrackingRecHit.h:31
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
TValidTrackingRecHit::TValidTrackingRecHit
TValidTrackingRecHit(const GeomDet &geom)
Definition: TValidTrackingRecHit.h:14
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
GeomDet::toLocal
LocalPoint toLocal(const GlobalPoint &gp) const
Conversion to the R.F. of the GeomDet.
Definition: GeomDet.h:58
LocalError
Definition: LocalError.h:12
BeamSpotTransientTrackingRecHit::localError_
LocalError localError_
Definition: BeamSpotTransientTrackingRecHit.h:59
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
BeamSpotTransientTrackingRecHit::theProjectionMatrix
static const AlgebraicMatrix theProjectionMatrix
Definition: BeamSpotTransientTrackingRecHit.h:69
DDAxes::phi
BeamSpotTransientTrackingRecHit::localPosition
LocalPoint localPosition() const override
Definition: BeamSpotTransientTrackingRecHit.h:42
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
mps_fire.result
result
Definition: mps_fire.py:303