CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
GenericProjectedRecHit2D Class Reference

#include <GenericProjectedRecHit2D.h>

Inheritance diagram for GenericProjectedRecHit2D:
TrackingRecHit

Public Member Functions

virtual bool canImproveWithTrack () const
 
RecHitPointer clone (const TrajectoryStateOnSurface &ts, const TransientTrackingRecHitBuilder *) const
 
virtual TrackingRecHitcloneHit () const
 
virtual int dimension () const
 
 GenericProjectedRecHit2D (const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)
 
virtual DetId geographicalId () const
 
virtual const TrackingRecHithit () const
 
virtual bool isValid () const
 
virtual LocalPoint localPosition () const
 
virtual LocalError localPositionError () const
 
const GeomDetoriginalDet () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
const TrackingRecHitPropagatorpropagator () 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...
 
- Public Member Functions inherited from TrackingRecHit
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
virtual float errorGlobalR () const
 
virtual float errorGlobalRPhi () const
 
virtual float errorGlobalZ () const
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () 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
 
virtual const Surfacesurface () 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 ()
 

Static Public Member Functions

static RecHitPointer build (const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)
 

Private Member Functions

virtual GenericProjectedRecHit2Dclone () const
 

Private Attributes

int theDimension
 
LocalError theLe
 
LocalPoint theLp
 
const GeomDettheOriginalDet
 
TransientTrackingRecHit::ConstRecHitPointer theOriginalTransientHit
 
AlgebraicMatrix theProjectionMatrix
 
const TrackingRecHitPropagatorthePropagator
 

Additional Inherited Members

- 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
}
 
- 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 8 of file GenericProjectedRecHit2D.h.

Constructor & Destructor Documentation

GenericProjectedRecHit2D::GenericProjectedRecHit2D ( const LocalPoint pos,
const LocalError err,
const GeomDet det,
const GeomDet originaldet,
const TransientTrackingRecHit::ConstRecHitPointer  originalHit,
const TrackingRecHitPropagator propagator 
)

Definition at line 8 of file GenericProjectedRecHit2D.cc.

References originalDet(), propagator(), theDimension, theLe, theLp, theOriginalDet, theOriginalTransientHit, theProjectionMatrix, and thePropagator.

Referenced by build(), and clone().

11  :
12  TrackingRecHit( *det ) //, originalHit->weight(), originalHit->getAnnealingFactor())
13 {
16  theOriginalTransientHit = originalHit;
17  theLp = pos;
18  theLe = err;
19  theProjectionMatrix = originalHit->projectionMatrix();
20  theDimension = originalHit->dimension();
21  //theOriginalHit = originalTransientHit.hit()->clone();
22 }
TransientTrackingRecHit::ConstRecHitPointer theOriginalTransientHit
const TrackingRecHitPropagator * thePropagator
const TrackingRecHitPropagator * propagator() const
TrackingRecHit(DetId id, Type type=valid)
const GeomDet * originalDet() const

Member Function Documentation

static RecHitPointer GenericProjectedRecHit2D::build ( const LocalPoint pos,
const LocalError err,
const GeomDet det,
const GeomDet originaldet,
const TransientTrackingRecHit::ConstRecHitPointer  originalHit,
const TrackingRecHitPropagator propagator 
)
inlinestatic

Definition at line 57 of file GenericProjectedRecHit2D.h.

References GenericProjectedRecHit2D().

60  {
61  return RecHitPointer( new GenericProjectedRecHit2D( pos, err, det, originaldet, originalHit, propagator));
62  }
std::shared_ptr< TrackingRecHit const > RecHitPointer
GenericProjectedRecHit2D(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)
virtual bool GenericProjectedRecHit2D::canImproveWithTrack ( ) const
inlinevirtual

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 53 of file GenericProjectedRecHit2D.h.

53 {return true;}
TransientTrackingRecHit::RecHitPointer GenericProjectedRecHit2D::clone ( const TrajectoryStateOnSurface ts,
const TransientTrackingRecHitBuilder builder 
) const

Definition at line 32 of file GenericProjectedRecHit2D.cc.

References TrackingRecHit::det(), TrackingRecHitPropagator::project(), theOriginalTransientHit, and thePropagator.

33 {
35 }
TransientTrackingRecHit::ConstRecHitPointer theOriginalTransientHit
const TrackingRecHitPropagator * thePropagator
const GeomDet * det() const
TrackingRecHit::RecHitPointer project(const TrackingRecHit::ConstRecHitPointer hit, const GeomDet &det, const TrajectoryStateOnSurface ts, const TransientTrackingRecHitBuilder *builder) const
virtual GenericProjectedRecHit2D* GenericProjectedRecHit2D::clone ( void  ) const
inlineprivatevirtual

Implements TrackingRecHit.

Definition at line 77 of file GenericProjectedRecHit2D.h.

References GenericProjectedRecHit2D().

77  {
78  return new GenericProjectedRecHit2D(*this);
79  }
GenericProjectedRecHit2D(const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)
virtual TrackingRecHit* GenericProjectedRecHit2D::cloneHit ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 37 of file GenericProjectedRecHit2D.h.

References theOriginalTransientHit.

37 { return theOriginalTransientHit->cloneHit(); }
TransientTrackingRecHit::ConstRecHitPointer theOriginalTransientHit
virtual int GenericProjectedRecHit2D::dimension ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 32 of file GenericProjectedRecHit2D.h.

References theDimension.

virtual DetId GenericProjectedRecHit2D::geographicalId ( ) const
inlinevirtual

Definition at line 30 of file GenericProjectedRecHit2D.h.

References TrackingRecHit::det(), and GeomDet::geographicalId().

30 {return det() ? det()->geographicalId() : DetId();}
const GeomDet * det() const
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:77
Definition: DetId.h:18
virtual const TrackingRecHit* GenericProjectedRecHit2D::hit ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 35 of file GenericProjectedRecHit2D.h.

References theOriginalTransientHit.

35 { return theOriginalTransientHit->hit(); }
TransientTrackingRecHit::ConstRecHitPointer theOriginalTransientHit
virtual bool GenericProjectedRecHit2D::isValid ( void  ) const
inlinevirtual

Definition at line 39 of file GenericProjectedRecHit2D.h.

Referenced by core.AutoHandle.AutoHandle::ReallyLoad().

39 {return true;}
virtual LocalPoint GenericProjectedRecHit2D::localPosition ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 24 of file GenericProjectedRecHit2D.h.

References theLp.

24 {return theLp;}
virtual LocalError GenericProjectedRecHit2D::localPositionError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 26 of file GenericProjectedRecHit2D.h.

References theLe.

Referenced by parametersError().

26 {return theLe;}
const GeomDet* GenericProjectedRecHit2D::originalDet ( ) const
inline

Definition at line 55 of file GenericProjectedRecHit2D.h.

References theOriginalDet.

Referenced by GenericProjectedRecHit2D().

55 {return theOriginalDet;}
AlgebraicVector GenericProjectedRecHit2D::parameters ( void  ) const
virtual

Implements TrackingRecHit.

Definition at line 24 of file GenericProjectedRecHit2D.cc.

References query::result, theLp, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().

24  {
26  result[0] = theLp.x();
27  result[1] = theLp.y();
28  return result;
29 }
T y() const
Definition: PV3DBase.h:63
tuple result
Definition: query.py:137
CLHEP::HepVector AlgebraicVector
T x() const
Definition: PV3DBase.h:62
virtual AlgebraicSymMatrix GenericProjectedRecHit2D::parametersError ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 16 of file GenericProjectedRecHit2D.h.

References TrackingRecHit::det(), localPositionError(), and HelpertRecHit2DLocalPos::parError().

16  {
18  }
static AlgebraicSymMatrix parError(const LocalError &le, const GeomDet &det)
const GeomDet * det() const
virtual LocalError localPositionError() const
virtual AlgebraicMatrix GenericProjectedRecHit2D::projectionMatrix ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 28 of file GenericProjectedRecHit2D.h.

References theProjectionMatrix.

28 {return theProjectionMatrix;}
const TrackingRecHitPropagator* GenericProjectedRecHit2D::propagator ( ) const
inline

Definition at line 51 of file GenericProjectedRecHit2D.h.

References thePropagator.

Referenced by GenericProjectedRecHit2D().

51 {return thePropagator;}
const TrackingRecHitPropagator * thePropagator
virtual std::vector<const TrackingRecHit*> GenericProjectedRecHit2D::recHits ( ) const
inlinevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 41 of file GenericProjectedRecHit2D.h.

41  {
42  //return theOriginalTransientHit->hit()->recHits();
43  return std::vector<const TrackingRecHit*>();
44  }
virtual std::vector<TrackingRecHit*> GenericProjectedRecHit2D::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 46 of file GenericProjectedRecHit2D.h.

46  {
47  //should it do something different?
48  return std::vector<TrackingRecHit*>();
49  }

Member Data Documentation

int GenericProjectedRecHit2D::theDimension
private

Definition at line 75 of file GenericProjectedRecHit2D.h.

Referenced by dimension(), and GenericProjectedRecHit2D().

LocalError GenericProjectedRecHit2D::theLe
private

Definition at line 71 of file GenericProjectedRecHit2D.h.

Referenced by GenericProjectedRecHit2D(), and localPositionError().

LocalPoint GenericProjectedRecHit2D::theLp
private

Definition at line 70 of file GenericProjectedRecHit2D.h.

Referenced by GenericProjectedRecHit2D(), localPosition(), and parameters().

const GeomDet* GenericProjectedRecHit2D::theOriginalDet
private

Definition at line 68 of file GenericProjectedRecHit2D.h.

Referenced by GenericProjectedRecHit2D(), and originalDet().

TransientTrackingRecHit::ConstRecHitPointer GenericProjectedRecHit2D::theOriginalTransientHit
private

Definition at line 69 of file GenericProjectedRecHit2D.h.

Referenced by clone(), cloneHit(), GenericProjectedRecHit2D(), and hit().

AlgebraicMatrix GenericProjectedRecHit2D::theProjectionMatrix
private

Definition at line 72 of file GenericProjectedRecHit2D.h.

Referenced by GenericProjectedRecHit2D(), and projectionMatrix().

const TrackingRecHitPropagator* GenericProjectedRecHit2D::thePropagator
private

Definition at line 73 of file GenericProjectedRecHit2D.h.

Referenced by clone(), GenericProjectedRecHit2D(), and propagator().