CMS 3D CMS Logo

List of all members | Public Member Functions
RecSegment Class Referenceabstract

#include <RecSegment.h>

Inheritance diagram for RecSegment:
TrackingRecHit CSCSegment DTRecSegment2D DTRecSegment4D EmulatedME0Segment GEMCSCSegment GEMSegment ME0Segment DTChamberRecSegment2D DTSLRecSegment2D

Public Member Functions

virtual double chi2 () const =0
 Chi2 of the segment fit. More...
 
virtual int degreesOfFreedom () const =0
 Degrees of freedom of the segment fit. More...
 
int dimension () const override=0
 Dimension (in parameter space) More...
 
virtual LocalVector localDirection () const =0
 Local direction. More...
 
virtual LocalError localDirectionError () const =0
 Error on the local direction. More...
 
 RecSegment (DetId id)
 
 RecSegment (TrackingRecHit::id_type id=0)
 
 ~RecSegment () override
 Destructor. More...
 
- Public Member Functions inherited from TrackingRecHit
virtual bool canImproveWithTrack () const
 
virtual TrackingRecHitclone () const =0
 
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
 
virtual LocalPoint localPosition () const =0
 
virtual LocalError localPositionError () const =0
 
virtual AlgebraicVector parameters () const =0
 
virtual AlgebraicSymMatrix parametersError () const =0
 
virtual AlgebraicMatrix projectionMatrix () const =0
 
id_type rawId () const
 
virtual std::vector< const TrackingRecHit * > recHits () const =0
 Access to component RecHits (if any) More...
 
virtual std::vector< TrackingRecHit * > recHits ()=0
 Non-const access to component RecHits (if any) More...
 
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 (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 ()
 

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

Base class for reconstructed segments.

In addition to RecHit, it has direction, chi2 and other stuff

Author
Stefano Lacaprara - INFN Legnaro stefa.nosp@m.no.l.nosp@m.acapr.nosp@m.ara@.nosp@m.pd.in.nosp@m.fn.i.nosp@m.t

Definition at line 27 of file RecSegment.h.

Constructor & Destructor Documentation

◆ RecSegment() [1/2]

RecSegment::RecSegment ( DetId  id)
inline

Definition at line 29 of file RecSegment.h.

29 : TrackingRecHit(id) {}

◆ RecSegment() [2/2]

RecSegment::RecSegment ( TrackingRecHit::id_type  id = 0)
inline

Definition at line 30 of file RecSegment.h.

30 : TrackingRecHit(id) {}

◆ ~RecSegment()

RecSegment::~RecSegment ( )
inlineoverride

Destructor.

Definition at line 33 of file RecSegment.h.

33 {};

Member Function Documentation

◆ chi2()

virtual double RecSegment::chi2 ( ) const
pure virtual

◆ degreesOfFreedom()

virtual int RecSegment::degreesOfFreedom ( ) const
pure virtual

Degrees of freedom of the segment fit.

Implemented in DTRecSegment2D, DTRecSegment4D, GEMSegment, ME0Segment, GEMCSCSegment, CSCSegment, and EmulatedME0Segment.

◆ dimension()

int RecSegment::dimension ( ) const
overridepure virtual

Dimension (in parameter space)

Implements TrackingRecHit.

Implemented in DTRecSegment2D, DTRecSegment4D, GEMSegment, ME0Segment, GEMCSCSegment, CSCSegment, and EmulatedME0Segment.

◆ localDirection()

virtual LocalVector RecSegment::localDirection ( ) const
pure virtual

◆ localDirectionError()

virtual LocalError RecSegment::localDirectionError ( ) const
pure virtual
TrackingRecHit::TrackingRecHit
TrackingRecHit(DetId id, Type type=valid)
Definition: TrackingRecHit.h:61