CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TRecHit5DParamConstraint Class Referencefinal

#include <TRecHit5DParamConstraint.h>

Inheritance diagram for TRecHit5DParamConstraint:
TrackingRecHit

Public Member Functions

bool canImproveWithTrack () const override
 
int charge () const
 
virtual RecHitPointer clone (const TrajectoryStateOnSurface &tsos) const
 ???? More...
 
int dimension () const override
 
float errorGlobalR () const override
 
float errorGlobalRPhi () const override
 
float errorGlobalZ () const override
 
GlobalPoint globalPosition () const override
 
GlobalError globalPositionError () 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...
 
bool sharesInput (const TrackingRecHit *, SharedInputType) const override
 
const Surfacesurface () const override
 
const TrajectoryStateOnSurfacetrajectoryState () const
 
 TRecHit5DParamConstraint (const TrajectoryStateOnSurface &tsos)
 
 TRecHit5DParamConstraint (const GeomDet &idet, const TrajectoryStateOnSurface &tsos)
 
 TRecHit5DParamConstraint (const TRecHit5DParamConstraint &other)=default
 
 TRecHit5DParamConstraint (TRecHit5DParamConstraint &&other)=default
 
 ~TRecHit5DParamConstraint () override
 
- Public Member Functions inherited from TrackingRecHit
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () 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...
 
virtual TrackingRecHit const * hit () const
 
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)
 
 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 ()
 

Static Public Member Functions

static RecHitPointer build (const TrajectoryStateOnSurface &tsos)
 

Private Member Functions

TRecHit5DParamConstraintclone () const override
 

Private Attributes

const TrajectoryStateOnSurface tsos_
 

Additional Inherited Members

- 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
}
 
- 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

Definition at line 11 of file TRecHit5DParamConstraint.h.

Constructor & Destructor Documentation

TRecHit5DParamConstraint::TRecHit5DParamConstraint ( const TrajectoryStateOnSurface tsos)
inline

Definition at line 15 of file TRecHit5DParamConstraint.h.

Referenced by build(), clone(), and TRecHit5DParamConstraint().

15  :
TrackingRecHit(DetId id, Type type=valid)
const TrajectoryStateOnSurface tsos_
TRecHit5DParamConstraint::TRecHit5DParamConstraint ( const GeomDet idet,
const TrajectoryStateOnSurface tsos 
)
inline

Definition at line 18 of file TRecHit5DParamConstraint.h.

References trackingPlots::other, and TRecHit5DParamConstraint().

18  :
TrackingRecHit(DetId id, Type type=valid)
const TrajectoryStateOnSurface tsos_
TRecHit5DParamConstraint::TRecHit5DParamConstraint ( const TRecHit5DParamConstraint other)
default
TRecHit5DParamConstraint::TRecHit5DParamConstraint ( TRecHit5DParamConstraint &&  other)
default
TRecHit5DParamConstraint::~TRecHit5DParamConstraint ( )
inlineoverride

Definition at line 24 of file TRecHit5DParamConstraint.h.

24 {}

Member Function Documentation

static RecHitPointer TRecHit5DParamConstraint::build ( const TrajectoryStateOnSurface tsos)
inlinestatic

Definition at line 68 of file TRecHit5DParamConstraint.h.

References TRecHit5DParamConstraint().

68  {
69  return RecHitPointer( new TRecHit5DParamConstraint( tsos ) );
70  }
TRecHit5DParamConstraint(const TrajectoryStateOnSurface &tsos)
std::shared_ptr< TrackingRecHit const > RecHitPointer
bool TRecHit5DParamConstraint::canImproveWithTrack ( ) const
inlineoverridevirtual

Returns true if the clone( const TrajectoryStateOnSurface&) method returns an improved hit, false if it returns an identical copy. In order to avoid redundent copies one should call canImproveWithTrack() before calling clone( const TrajectoryStateOnSurface&). this will be done inside the TkCloner itself

Reimplemented from TrackingRecHit.

Definition at line 45 of file TRecHit5DParamConstraint.h.

45 { return false; }
int TRecHit5DParamConstraint::charge ( void  ) const
inline

Definition at line 41 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::charge(), and tsos_.

41 { return tsos_.charge(); }
const TrajectoryStateOnSurface tsos_
virtual RecHitPointer TRecHit5DParamConstraint::clone ( const TrajectoryStateOnSurface tsos) const
inlinevirtual

????

Definition at line 64 of file TRecHit5DParamConstraint.h.

References TRecHit5DParamConstraint().

64  {
65  return RecHitPointer(new TRecHit5DParamConstraint( tsos ));
66  }
TRecHit5DParamConstraint(const TrajectoryStateOnSurface &tsos)
std::shared_ptr< TrackingRecHit const > RecHitPointer
TRecHit5DParamConstraint* TRecHit5DParamConstraint::clone ( void  ) const
inlineoverrideprivatevirtual

Implements TrackingRecHit.

Definition at line 76 of file TRecHit5DParamConstraint.h.

References TRecHit5DParamConstraint().

76  {
77  return new TRecHit5DParamConstraint( *this );
78  }
TRecHit5DParamConstraint(const TrajectoryStateOnSurface &tsos)
int TRecHit5DParamConstraint::dimension ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 26 of file TRecHit5DParamConstraint.h.

26 { return 5; }
float TRecHit5DParamConstraint::errorGlobalR ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 58 of file TRecHit5DParamConstraint.h.

References globalPosition(), globalPositionError(), and mathSSE::sqrt().

58 { return std::sqrt(globalPositionError().rerr(globalPosition()));}
GlobalError globalPositionError() const override
GlobalPoint globalPosition() const override
T sqrt(T t)
Definition: SSEVec.h:18
float TRecHit5DParamConstraint::errorGlobalRPhi ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 60 of file TRecHit5DParamConstraint.h.

References globalPosition(), globalPositionError(), PV3DBase< T, PVType, FrameType >::perp(), and mathSSE::sqrt().

60 { return globalPosition().perp()*sqrt(globalPositionError().phierr(globalPosition())); }
T perp() const
Definition: PV3DBase.h:72
GlobalError globalPositionError() const override
GlobalPoint globalPosition() const override
T sqrt(T t)
Definition: SSEVec.h:18
float TRecHit5DParamConstraint::errorGlobalZ ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 59 of file TRecHit5DParamConstraint.h.

References globalPositionError(), and mathSSE::sqrt().

59 { return std::sqrt(globalPositionError().czz()); }
GlobalError globalPositionError() const override
T sqrt(T t)
Definition: SSEVec.h:18
GlobalPoint TRecHit5DParamConstraint::globalPosition ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 56 of file TRecHit5DParamConstraint.h.

References localPosition(), surface(), and Surface::toGlobal().

Referenced by errorGlobalR(), and errorGlobalRPhi().

56 { return surface()->toGlobal(localPosition());}
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:106
LocalPoint localPosition() const override
const Surface * surface() const override
GlobalError TRecHit5DParamConstraint::globalPositionError ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 57 of file TRecHit5DParamConstraint.h.

References localPositionError(), surface(), and ErrorFrameTransformer::transform().

Referenced by errorGlobalR(), errorGlobalRPhi(), and errorGlobalZ().

static GlobalError transform(const LocalError &le, const Surface &surf)
LocalError localPositionError() const override
const Surface * surface() const override
LocalPoint TRecHit5DParamConstraint::localPosition ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 37 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::localPosition(), and tsos_.

Referenced by globalPosition().

37 { return tsos_.localPosition(); }
const TrajectoryStateOnSurface tsos_
LocalError TRecHit5DParamConstraint::localPositionError ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 39 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::localError(), LocalTrajectoryError::positionError(), and tsos_.

Referenced by globalPositionError().

39 { return tsos_.localError().positionError(); }
LocalError positionError() const
const LocalTrajectoryError & localError() const
const TrajectoryStateOnSurface tsos_
AlgebraicVector TRecHit5DParamConstraint::parameters ( void  ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 33 of file TRecHit5DParamConstraint.h.

References asHepVector(), TrajectoryStateOnSurface::localParameters(), tsos_, and LocalTrajectoryParameters::vector().

33 { return asHepVector( tsos_.localParameters().vector() ); }
const LocalTrajectoryParameters & localParameters() const
AlgebraicVector5 vector() const
const TrajectoryStateOnSurface tsos_
CLHEP::HepVector asHepVector(const ROOT::Math::SVector< double, N > &v)
Definition: Migration.h:48
AlgebraicSymMatrix TRecHit5DParamConstraint::parametersError ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 35 of file TRecHit5DParamConstraint.h.

References asHepMatrix(), TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), and tsos_.

35 { return asHepMatrix( tsos_.localError().matrix() ); }
CLHEP::HepMatrix asHepMatrix(const ROOT::Math::SMatrix< double, N1, N2, typename ROOT::Math::MatRepStd< double, N1, N2 > > &rm)
Definition: Migration.h:54
const AlgebraicSymMatrix55 & matrix() const
const LocalTrajectoryError & localError() const
const TrajectoryStateOnSurface tsos_
AlgebraicMatrix TRecHit5DParamConstraint::projectionMatrix ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 28 of file TRecHit5DParamConstraint.h.

28  {
30  return projectionMatrix;
31  }
CLHEP::HepMatrix AlgebraicMatrix
AlgebraicMatrix projectionMatrix() const override
std::vector<const TrackingRecHit*> TRecHit5DParamConstraint::recHits ( ) const
inlineoverridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 47 of file TRecHit5DParamConstraint.h.

47 { return std::vector<const TrackingRecHit*>(); }
std::vector<TrackingRecHit*> TRecHit5DParamConstraint::recHits ( )
inlineoverridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 48 of file TRecHit5DParamConstraint.h.

48 { return std::vector<TrackingRecHit*>(); }
bool TRecHit5DParamConstraint::sharesInput ( const TrackingRecHit other,
SharedInputType  what 
) const
inlineoverridevirtual

Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise. The second argument specifies how much sharing is needed in order to return true: the value "all" means that all inputs of the two hits must be identical; the value "some" means that at least one of the inputs is in common.

Reimplemented from TrackingRecHit.

Definition at line 51 of file TRecHit5DParamConstraint.h.

51 { return false;}
const Surface* TRecHit5DParamConstraint::surface ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 54 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::surface(), and tsos_.

Referenced by globalPosition(), and globalPositionError().

54 { return &tsos_.surface(); }
const SurfaceType & surface() const
const TrajectoryStateOnSurface tsos_
const TrajectoryStateOnSurface& TRecHit5DParamConstraint::trajectoryState ( ) const
inline

Definition at line 42 of file TRecHit5DParamConstraint.h.

References tsos_.

42 { return tsos_; }
const TrajectoryStateOnSurface tsos_

Member Data Documentation

const TrajectoryStateOnSurface TRecHit5DParamConstraint::tsos_
private