CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
GenericTransientTrackingRecHit Class Reference

#include <GenericTransientTrackingRecHit.h>

Inheritance diagram for GenericTransientTrackingRecHit:
TValidTrackingRecHit TrackingRecHit MTDTransientTrackingRecHit MuonTransientTrackingRecHit

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

bool canImproveWithTrack () const override
 
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...
 
 ~GenericTransientTrackingRecHit () 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 ()
 

Static Public Member Functions

static RecHitPointer build (const GeomDet *geom, const TrackingRecHit *rh)
 

Protected Member Functions

 GenericTransientTrackingRecHit (const GenericTransientTrackingRecHit &other)
 
 GenericTransientTrackingRecHit (const GeomDet &geom, const TrackingRecHit &rh)
 
 GenericTransientTrackingRecHit (const GeomDet &geom, TrackingRecHit *rh)
 for derived classes convenience, does not clone! More...
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Protected Attributes

TrackingRecHittrackingRecHit_
 

Private Member Functions

GenericTransientTrackingRecHitclone () const override
 
GenericTransientTrackingRecHitoperator= (const GenericTransientTrackingRecHit &t)
 

Additional Inherited Members

- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 

Detailed Description

Definition at line 7 of file GenericTransientTrackingRecHit.h.

Member Typedef Documentation

◆ Type

Definition at line 9 of file GenericTransientTrackingRecHit.h.

Constructor & Destructor Documentation

◆ ~GenericTransientTrackingRecHit()

GenericTransientTrackingRecHit::~GenericTransientTrackingRecHit ( )
inlineoverride

Definition at line 11 of file GenericTransientTrackingRecHit.h.

11 { delete trackingRecHit_; }

References trackingRecHit_.

◆ GenericTransientTrackingRecHit() [1/3]

GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GeomDet geom,
const TrackingRecHit rh 
)
inlineprotected

Definition at line 41 of file GenericTransientTrackingRecHit.h.

41  : TValidTrackingRecHit(geom, rh) {
42  trackingRecHit_ = rh.clone();
43  }

References TrackingRecHit::clone(), and trackingRecHit_.

Referenced by build(), and clone().

◆ GenericTransientTrackingRecHit() [2/3]

GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GeomDet geom,
TrackingRecHit rh 
)
inlineprotected

for derived classes convenience, does not clone!

Definition at line 46 of file GenericTransientTrackingRecHit.h.

◆ GenericTransientTrackingRecHit() [3/3]

GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GenericTransientTrackingRecHit other)
inlineprotected

Definition at line 49 of file GenericTransientTrackingRecHit.h.

50  : TValidTrackingRecHit(*other.det(), other) {
51  trackingRecHit_ = other.cloneHit();
52  }

References trackingPlots::other, and trackingRecHit_.

Member Function Documentation

◆ build()

static RecHitPointer GenericTransientTrackingRecHit::build ( const GeomDet geom,
const TrackingRecHit rh 
)
inlinestatic

◆ canImproveWithTrack()

bool GenericTransientTrackingRecHit::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 25 of file GenericTransientTrackingRecHit.h.

25 { return false; }

◆ clone()

GenericTransientTrackingRecHit* GenericTransientTrackingRecHit::clone ( void  ) const
inlineoverrideprivatevirtual

Implements TValidTrackingRecHit.

Definition at line 65 of file GenericTransientTrackingRecHit.h.

65 { return new GenericTransientTrackingRecHit(*this); }

References GenericTransientTrackingRecHit().

◆ cloneHit()

TrackingRecHit* GenericTransientTrackingRecHit::cloneHit ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 28 of file GenericTransientTrackingRecHit.h.

28 { return hit()->clone(); }

References TrackingRecHit::clone(), and hit().

◆ dimension()

int GenericTransientTrackingRecHit::dimension ( ) const
inlineoverridevirtual

◆ hit()

const TrackingRecHit* GenericTransientTrackingRecHit::hit ( ) const
inlineoverridevirtual

◆ localPosition()

LocalPoint GenericTransientTrackingRecHit::localPosition ( ) const
inlineoverridevirtual

◆ localPositionError()

LocalError GenericTransientTrackingRecHit::localPositionError ( ) const
inlineoverridevirtual

◆ operator=()

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

Definition at line 58 of file GenericTransientTrackingRecHit.h.

58  {
59  trackingRecHit_ = t.cloneHit();
60  return *(this);
61  }

References submitPVValidationJobs::t, and trackingRecHit_.

◆ parameters()

AlgebraicVector GenericTransientTrackingRecHit::parameters ( void  ) const
inlineoverridevirtual

◆ parametersError()

AlgebraicSymMatrix GenericTransientTrackingRecHit::parametersError ( ) const
inlineoverridevirtual

◆ projectionMatrix()

AlgebraicMatrix GenericTransientTrackingRecHit::projectionMatrix ( ) const
inlineoverridevirtual

◆ recHits() [1/2]

std::vector<const TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( ) const
inlineoverridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 30 of file GenericTransientTrackingRecHit.h.

30  {
31  return ((const TrackingRecHit*)(trackingRecHit_))->recHits();
32  }

References trackingRecHit_.

Referenced by MuonTransientTrackingRecHit::invalidateHit(), MuonSeedCleaner::NRecHitsFromSegment(), and MuonTransientTrackingRecHit::transientHits().

◆ recHits() [2/2]

std::vector<TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( )
inlineoverridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 33 of file GenericTransientTrackingRecHit.h.

33 { return trackingRecHit_->recHits(); }

References TrackingRecHit::recHits(), and trackingRecHit_.

Member Data Documentation

◆ trackingRecHit_

TrackingRecHit* GenericTransientTrackingRecHit::trackingRecHit_
protected
GenericTransientTrackingRecHit::trackingRecHit_
TrackingRecHit * trackingRecHit_
Definition: GenericTransientTrackingRecHit.h:54
TrackingRecHit::parameters
virtual AlgebraicVector parameters() const =0
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition: TrackingRecHit.h:24
TrackingRecHit::localPosition
virtual LocalPoint localPosition() const =0
GenericTransientTrackingRecHit::hit
const TrackingRecHit * hit() const override
Definition: GenericTransientTrackingRecHit.h:27
TValidTrackingRecHit::TValidTrackingRecHit
TValidTrackingRecHit(const GeomDet &geom)
Definition: TValidTrackingRecHit.h:14
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
trackingPlots.other
other
Definition: trackingPlots.py:1460
GenericTransientTrackingRecHit::GenericTransientTrackingRecHit
GenericTransientTrackingRecHit(const GeomDet &geom, const TrackingRecHit &rh)
Definition: GenericTransientTrackingRecHit.h:41
TrackingRecHit::projectionMatrix
virtual AlgebraicMatrix projectionMatrix() const =0
TrackingRecHit::clone
virtual TrackingRecHit * clone() const =0
TrackingRecHit::recHits
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
TrackingRecHit
Definition: TrackingRecHit.h:21
TrackingRecHit::dimension
virtual int dimension() const =0
TrackingRecHit::parametersError
virtual AlgebraicSymMatrix parametersError() const =0
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
TrackingRecHit::localPositionError
virtual LocalError localPositionError() const =0