CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< 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
}
 

Public Member Functions

 BeamSpotTransientTrackingRecHit (const reco::BeamSpot &beamSpot, const BeamSpotGeomDet *geom, double phi)
 
virtual TrackingRecHitcloneHit () const
 
virtual int dimension () const
 
virtual const TrackingRecHithit () const
 
virtual LocalPoint localPosition () const
 
virtual LocalError localPositionError () const
 
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 ~BeamSpotTransientTrackingRecHit ()
 
- 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 final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
virtual GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
virtual 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

virtual
BeamSpotTransientTrackingRecHit
clone () const
 
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 30 of file BeamSpotTransientTrackingRecHit.h.

Constructor & Destructor Documentation

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

Definition at line 32 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().

35  : TValidTrackingRecHit(*geom) {
36 
37  localPosition_ = det()->toLocal(GlobalPoint(beamSpot.x0(), beamSpot.y0(), beamSpot.z0()));
38  localError_ = LocalError(std::pow(beamSpot.BeamWidthX()*cos(phi), 2) +
39  std::pow(beamSpot.BeamWidthY()*sin(phi), 2),
40  0.0, std::pow(beamSpot.sigmaZ(), 2));
41  }
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:67
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
virtual BeamSpotTransientTrackingRecHit::~BeamSpotTransientTrackingRecHit ( )
inlinevirtual

Definition at line 43 of file BeamSpotTransientTrackingRecHit.h.

43 {}

Member Function Documentation

virtual BeamSpotTransientTrackingRecHit* BeamSpotTransientTrackingRecHit::clone ( void  ) const
inlineprivatevirtual

Implements TValidTrackingRecHit.

Definition at line 81 of file BeamSpotTransientTrackingRecHit.h.

References BeamSpotTransientTrackingRecHit().

81  {
82  return new BeamSpotTransientTrackingRecHit(*this);
83  }
BeamSpotTransientTrackingRecHit(const reco::BeamSpot &beamSpot, const BeamSpotGeomDet *geom, double phi)
virtual TrackingRecHit* BeamSpotTransientTrackingRecHit::cloneHit ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 53 of file BeamSpotTransientTrackingRecHit.h.

53 { return nullptr;}
virtual int BeamSpotTransientTrackingRecHit::dimension ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 50 of file BeamSpotTransientTrackingRecHit.h.

50 { return 1; }
virtual const TrackingRecHit* BeamSpotTransientTrackingRecHit::hit ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 52 of file BeamSpotTransientTrackingRecHit.h.

52 { return nullptr; }
virtual LocalPoint BeamSpotTransientTrackingRecHit::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 45 of file BeamSpotTransientTrackingRecHit.h.

References localPosition_.

Referenced by parameters().

virtual LocalError BeamSpotTransientTrackingRecHit::localPositionError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 46 of file BeamSpotTransientTrackingRecHit.h.

References localError_.

Referenced by parametersError().

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

Definition at line 75 of file BeamSpotTransientTrackingRecHit.h.

75  {
76  return *(this);
77  }
AlgebraicVector BeamSpotTransientTrackingRecHit::parameters ( void  ) const
virtual
AlgebraicSymMatrix BeamSpotTransientTrackingRecHit::parametersError ( ) const
virtual

Implements TrackingRecHit.

Definition at line 18 of file BeamSpotTransientTrackingRecHit.cc.

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

19 {
22  m[0][0] = le.xx();
23  return m;
24 }
float xx() const
Definition: LocalError.h:24
virtual LocalError localPositionError() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual AlgebraicMatrix BeamSpotTransientTrackingRecHit::projectionMatrix ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 63 of file BeamSpotTransientTrackingRecHit.h.

References theProjectionMatrix.

63  {
64  return theProjectionMatrix;
65  }
static const AlgebraicMatrix theProjectionMatrix
virtual std::vector<const TrackingRecHit*> BeamSpotTransientTrackingRecHit::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 56 of file BeamSpotTransientTrackingRecHit.h.

56  {
57  return std::vector<const TrackingRecHit*>();
58  }
virtual std::vector<TrackingRecHit*> BeamSpotTransientTrackingRecHit::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 59 of file BeamSpotTransientTrackingRecHit.h.

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

Member Data Documentation

LocalError BeamSpotTransientTrackingRecHit::localError_
protected
LocalPoint BeamSpotTransientTrackingRecHit::localPosition_
protected
const AlgebraicMatrix BeamSpotTransientTrackingRecHit::theProjectionMatrix =initialize()
staticprivate

Definition at line 85 of file BeamSpotTransientTrackingRecHit.h.

Referenced by projectionMatrix().