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 Reference

#include <BeamSpotTransientTrackingRecHit.h>

Inheritance diagram for BeamSpotTransientTrackingRecHit:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

Public Types

typedef TrackingRecHit::Type Type
 
- Public Types inherited from TransientTrackingRecHit
typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
 
typedef
ConstReferenceCountingPointer
< TransientTrackingRecHit
ConstRecHitPointer
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
typedef
ReferenceCountingPointer
< TransientTrackingRecHit
RecHitPointer
 
- Public Types inherited from TrackingRecHit
typedef unsigned int id_type
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type { valid = 0, missing = 1, inactive = 2, bad = 3 }
 

Public Member Functions

 BeamSpotTransientTrackingRecHit (const reco::BeamSpot &beamSpot, const BeamSpotGeomDet *geom, double phi)
 
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 const Surfacesurface () const
 
virtual ~BeamSpotTransientTrackingRecHit ()
 
- Public Member Functions inherited from TransientTrackingRecHit
virtual bool canImproveWithTrack () const
 
virtual RecHitPointer clone (const TrajectoryStateOnSurface &ts) const
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
const GeomDetdet () const
 The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds. More...
 
virtual const GeomDetUnitdetUnit () const
 
float errorGlobalR () const
 
float errorGlobalRPhi () const
 
float errorGlobalZ () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () const
 
virtual ConstRecHitContainer transientHits () const
 Composite interface: returns the component hits, if any. More...
 
 TransientTrackingRecHit (const GeomDet *geom=0)
 
 TransientTrackingRecHit (const GeomDet *geom, DetId id, Type type=valid)
 
 TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit::id_type id, Type type=valid)
 
 TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit const &rh)
 
- Public Member Functions inherited from TrackingRecHit
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 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)
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 
- Public Member Functions inherited from ReferenceCountedPoolAllocated
void addReference () const
 
const
ReferenceCountedPoolAllocated
operator= (const ReferenceCountedPoolAllocated &)
 
 ReferenceCountedPoolAllocated ()
 
 ReferenceCountedPoolAllocated (const ReferenceCountedPoolAllocated &iRHS)
 
unsigned int references () const
 
void removeReference () const
 
virtual ~ReferenceCountedPoolAllocated ()
 
- Public Member Functions inherited from BlockWipedPoolAllocated
virtual ~BlockWipedPoolAllocated ()
 

Protected Attributes

LocalError localError_
 
LocalPoint localPosition_
 

Private Member Functions

virtual
BeamSpotTransientTrackingRecHit
clone () const
 
void initialize () const
 
BeamSpotTransientTrackingRecHitoperator= (const BeamSpotTransientTrackingRecHit &t)
 

Static Private Attributes

static bool isInitialized
 
static AlgebraicMatrix theProjectionMatrix
 

Additional Inherited Members

- Static Public Member Functions inherited from BlockWipedPoolAllocated
static BlockWipedAllocatorallocator (size_t s)
 
static void operator delete (void *p, size_t s)
 
static void * operator new (size_t s, void *p)
 
static void * operator new (size_t s)
 
static BlockWipedAllocator::Stat stat (size_t s)
 
static void usePool ()
 
- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Static Public Attributes inherited from ReferenceCountedPoolAllocated
static int s_alive =0
 
static int s_referenced =0
 
- Static Public Attributes inherited from BlockWipedPoolAllocated
static int s_alive =0
 
static bool s_usePool =false
 
- 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(), TransientTrackingRecHit::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().

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:69
TransientTrackingRecHit(const GeomDet *geom=0)
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:62
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double BeamWidthX() const
beam width X
Definition: BeamSpot.h:87
static const DetId detId()
double sigmaZ() const
sigma z
Definition: BeamSpot.h:81
double BeamWidthY() const
beam width Y
Definition: BeamSpot.h:89
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
double y0() const
y coordinate
Definition: BeamSpot.h:67
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
double x0() const
x coordinate
Definition: BeamSpot.h:65
Definition: DDAxes.h:10
virtual BeamSpotTransientTrackingRecHit::~BeamSpotTransientTrackingRecHit ( )
inlinevirtual

Definition at line 43 of file BeamSpotTransientTrackingRecHit.h.

43 {}

Member Function Documentation

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

Implements TransientTrackingRecHit.

Definition at line 82 of file BeamSpotTransientTrackingRecHit.h.

References BeamSpotTransientTrackingRecHit().

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

Implements TrackingRecHit.

Definition at line 50 of file BeamSpotTransientTrackingRecHit.h.

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

Implements TransientTrackingRecHit.

Definition at line 52 of file BeamSpotTransientTrackingRecHit.h.

52 { return 0; }
void BeamSpotTransientTrackingRecHit::initialize ( ) const
private

Definition at line 26 of file BeamSpotTransientTrackingRecHit.cc.

References isInitialized, and theProjectionMatrix.

Referenced by projectionMatrix().

27 {
29  theProjectionMatrix[0][3] = 1;
30 
31  isInitialized = true;
32 }
CLHEP::HepMatrix AlgebraicMatrix
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 76 of file BeamSpotTransientTrackingRecHit.h.

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

Implements TrackingRecHit.

Definition at line 18 of file BeamSpotTransientTrackingRecHit.cc.

References vdt::le, localPositionError(), 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
unsigned long long le
Definition: VDTMath.h:202
virtual AlgebraicMatrix BeamSpotTransientTrackingRecHit::projectionMatrix ( ) const
inlinevirtual
virtual std::vector<const TrackingRecHit*> BeamSpotTransientTrackingRecHit::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 54 of file BeamSpotTransientTrackingRecHit.h.

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

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 57 of file BeamSpotTransientTrackingRecHit.h.

57  {
58  return std::vector<TrackingRecHit*>();
59  }
virtual const Surface* BeamSpotTransientTrackingRecHit::surface ( ) const
inlinevirtual

Reimplemented from TransientTrackingRecHit.

Definition at line 61 of file BeamSpotTransientTrackingRecHit.h.

References TransientTrackingRecHit::det(), and GeomDet::surface().

61 { return &(det()->surface()); }
const BoundPlane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:35
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.

Member Data Documentation

bool BeamSpotTransientTrackingRecHit::isInitialized
staticprivate

Definition at line 86 of file BeamSpotTransientTrackingRecHit.h.

Referenced by initialize(), and projectionMatrix().

LocalError BeamSpotTransientTrackingRecHit::localError_
protected
LocalPoint BeamSpotTransientTrackingRecHit::localPosition_
protected
AlgebraicMatrix BeamSpotTransientTrackingRecHit::theProjectionMatrix
staticprivate

Definition at line 87 of file BeamSpotTransientTrackingRecHit.h.

Referenced by initialize(), and projectionMatrix().