CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Protected Attributes
FTLTrackingRecHit< ObjRef > Class Template Reference

Basic template class for a RecHit wrapping a Ref to an object. More...

#include <FTLTrackingRecHit.h>

Inheritance diagram for FTLTrackingRecHit< ObjRef >:
RecHit2DLocalPos TrackingRecHit

Public Types

typedef ObjRef::value_type obj_type
 
typedef ObjRef ref_type
 
- Public Types inherited from RecHit2DLocalPos
typedef GloballyPositioned< float >::LocalPoint LocalPoint
 
- 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

FTLTrackingRecHit< ObjRef > * clone () const override
 
float energy () const
 
 FTLTrackingRecHit ()
 
 FTLTrackingRecHit (DetId id, const ObjRef &objref, const LocalPoint &pos, const LocalError &err)
 
LocalPoint localPosition () const override
 
LocalError localPositionError () const override
 
const ObjRef & objRef () const
 
template<>
bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
template<>
bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
bool sharesInput (const TrackingRecHit *other, SharedInputType what) const override
 
float time () const
 
float timeError () const
 
- Public Member Functions inherited from RecHit2DLocalPos
int dimension () const override
 
AlgebraicVector parameters () const override
 
AlgebraicSymMatrix parametersError () const override
 
AlgebraicMatrix projectionMatrix () const override
 
 RecHit2DLocalPos (DetId id)
 
 RecHit2DLocalPos (TrackingRecHit::id_type id=0)
 
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...
 
 ~RecHit2DLocalPos () override
 
- Public Member Functions inherited from TrackingRecHit
virtual bool canImproveWithTrack () const
 
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () 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...
 
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)
 
virtual const Surfacesurface () 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 ()
 

Protected Attributes

LocalError err_
 
ObjRef objref_
 
LocalPoint pos_
 

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

template<typename ObjRef>
class FTLTrackingRecHit< ObjRef >

Basic template class for a RecHit wrapping a Ref to an object.

Definition at line 10 of file FTLTrackingRecHit.h.

Member Typedef Documentation

◆ obj_type

template<typename ObjRef >
typedef ObjRef::value_type FTLTrackingRecHit< ObjRef >::obj_type

Definition at line 13 of file FTLTrackingRecHit.h.

◆ ref_type

template<typename ObjRef >
typedef ObjRef FTLTrackingRecHit< ObjRef >::ref_type

Definition at line 12 of file FTLTrackingRecHit.h.

Constructor & Destructor Documentation

◆ FTLTrackingRecHit() [1/2]

template<typename ObjRef >
FTLTrackingRecHit< ObjRef >::FTLTrackingRecHit ( )
inline

Definition at line 15 of file FTLTrackingRecHit.h.

15 {}

◆ FTLTrackingRecHit() [2/2]

template<typename ObjRef >
FTLTrackingRecHit< ObjRef >::FTLTrackingRecHit ( DetId  id,
const ObjRef &  objref,
const LocalPoint pos,
const LocalError err 
)
inline

Definition at line 16 of file FTLTrackingRecHit.h.

17  : RecHit2DLocalPos(id), objref_(objref), pos_(pos), err_(err) {}

Member Function Documentation

◆ clone()

template<typename ObjRef >
FTLTrackingRecHit<ObjRef>* FTLTrackingRecHit< ObjRef >::clone ( void  ) const
inlineoverridevirtual

Implements RecHit2DLocalPos.

Definition at line 19 of file FTLTrackingRecHit.h.

19 { return new FTLTrackingRecHit<ObjRef>(*this); }

◆ energy()

template<typename ObjRef >
float FTLTrackingRecHit< ObjRef >::energy ( ) const
inline

Definition at line 26 of file FTLTrackingRecHit.h.

26 { return objref_->energy(); }

References FTLTrackingRecHit< ObjRef >::objref_.

Referenced by Jet.Jet::rawEnergy().

◆ localPosition()

template<typename ObjRef >
LocalPoint FTLTrackingRecHit< ObjRef >::localPosition ( ) const
inlineoverridevirtual

Implements RecHit2DLocalPos.

Definition at line 21 of file FTLTrackingRecHit.h.

21 { return pos_; }

References FTLTrackingRecHit< ObjRef >::pos_.

◆ localPositionError()

template<typename ObjRef >
LocalError FTLTrackingRecHit< ObjRef >::localPositionError ( ) const
inlineoverridevirtual

Implements RecHit2DLocalPos.

Definition at line 22 of file FTLTrackingRecHit.h.

22 { return err_; }

References FTLTrackingRecHit< ObjRef >::err_.

◆ objRef()

template<typename ObjRef >
const ObjRef& FTLTrackingRecHit< ObjRef >::objRef ( ) const
inline

Definition at line 24 of file FTLTrackingRecHit.h.

24 { return objref_; }

References FTLTrackingRecHit< ObjRef >::objref_.

◆ sharesInput() [1/3]

template<>
bool FTLTrackingRecHit< FTLRecHitRef >::sharesInput ( const TrackingRecHit other,
SharedInputType  what 
) const
virtual

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 4 of file FTLTrackingRecHit.cc.

4  {
5  if (typeid(*other) == typeid(FTLTrackingRecHit<FTLRecHitRef>)) {
6  return objRef() == (static_cast<const FTLTrackingRecHit<FTLRecHitRef>*>(other))->objRef();
7  } else {
8  return false;
9  }
10 }

References trackingPlots::other.

◆ sharesInput() [2/3]

template<>
bool FTLTrackingRecHit< FTLRecHitRef >::sharesInput ( const TrackingRecHit other,
SharedInputType  what 
) const
virtual

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.

◆ sharesInput() [3/3]

template<typename ObjRef >
bool FTLTrackingRecHit< ObjRef >::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 31 of file FTLTrackingRecHit.h.

31 { assert(false); }

References cms::cuda::assert().

◆ time()

template<typename ObjRef >
float FTLTrackingRecHit< ObjRef >::time ( ) const
inline

Definition at line 28 of file FTLTrackingRecHit.h.

28 { return objref_->time(); }

References FTLTrackingRecHit< ObjRef >::objref_.

◆ timeError()

template<typename ObjRef >
float FTLTrackingRecHit< ObjRef >::timeError ( ) const
inline

Definition at line 29 of file FTLTrackingRecHit.h.

29 { return objref_->timeError(); }

References FTLTrackingRecHit< ObjRef >::objref_.

Member Data Documentation

◆ err_

template<typename ObjRef >
LocalError FTLTrackingRecHit< ObjRef >::err_
protected

Definition at line 36 of file FTLTrackingRecHit.h.

Referenced by FTLTrackingRecHit< ObjRef >::localPositionError().

◆ objref_

template<typename ObjRef >
ObjRef FTLTrackingRecHit< ObjRef >::objref_
protected

◆ pos_

template<typename ObjRef >
LocalPoint FTLTrackingRecHit< ObjRef >::pos_
protected

Definition at line 35 of file FTLTrackingRecHit.h.

Referenced by FTLTrackingRecHit< ObjRef >::localPosition().

pos
Definition: PixelAliasList.h:18
cms::cuda::assert
assert(be >=bs)
FTLTrackingRecHit::objRef
const ObjRef & objRef() const
Definition: FTLTrackingRecHit.h:24
FTLTrackingRecHit::err_
LocalError err_
Definition: FTLTrackingRecHit.h:36
FTLTrackingRecHit
Basic template class for a RecHit wrapping a Ref to an object.
Definition: FTLTrackingRecHit.h:10
trackingPlots.other
other
Definition: trackingPlots.py:1460
FTLTrackingRecHit::pos_
LocalPoint pos_
Definition: FTLTrackingRecHit.h:35
RecHit2DLocalPos::RecHit2DLocalPos
RecHit2DLocalPos(DetId id)
Definition: RecHit2DLocalPos.h:12
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
FTLTrackingRecHit::objref_
ObjRef objref_
Definition: FTLTrackingRecHit.h:34