CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions
InvalidTrackingRecHit Class Reference

#include <InvalidTrackingRecHit.h>

Inheritance diagram for InvalidTrackingRecHit:
TrackingRecHit InvalidTrackingRecHitNoDet

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

InvalidTrackingRecHitclone () const override
 
RecHitPointer cloneSH () const override
 
int dimension () const override
 
 InvalidTrackingRecHit ()
 
 InvalidTrackingRecHit (GeomDet const &idet, Type type)
 
 InvalidTrackingRecHit (Type type)
 
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 *other, SharedInputType what) const override
 
 ~InvalidTrackingRecHit () override
 
- Public Member Functions inherited from TrackingRecHit
virtual bool canImproveWithTrack () const
 
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () 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 ()
 

Private Member Functions

void throwError () const
 

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

Definition at line 8 of file InvalidTrackingRecHit.h.

Member Typedef Documentation

◆ Type

Definition at line 10 of file InvalidTrackingRecHit.h.

Constructor & Destructor Documentation

◆ InvalidTrackingRecHit() [1/3]

InvalidTrackingRecHit::InvalidTrackingRecHit ( GeomDet const &  idet,
Type  type 
)
inline

Definition at line 12 of file InvalidTrackingRecHit.h.

12 : TrackingRecHit(idet, type) {}

◆ InvalidTrackingRecHit() [2/3]

InvalidTrackingRecHit::InvalidTrackingRecHit ( Type  type)
inlineexplicit

Definition at line 13 of file InvalidTrackingRecHit.h.

13 : TrackingRecHit(DetId(0), type) {}

◆ InvalidTrackingRecHit() [3/3]

InvalidTrackingRecHit::InvalidTrackingRecHit ( )
inline

Definition at line 15 of file InvalidTrackingRecHit.h.

Referenced by clone().

◆ ~InvalidTrackingRecHit()

InvalidTrackingRecHit::~InvalidTrackingRecHit ( )
inlineoverride

Definition at line 17 of file InvalidTrackingRecHit.h.

17 {}

Member Function Documentation

◆ clone()

InvalidTrackingRecHit* InvalidTrackingRecHit::clone ( void  ) const
inlineoverridevirtual

Implements TrackingRecHit.

Reimplemented in InvalidTrackingRecHitNoDet.

Definition at line 19 of file InvalidTrackingRecHit.h.

19 { return new InvalidTrackingRecHit(*this); }

References InvalidTrackingRecHit().

Referenced by cloneSH().

◆ cloneSH()

RecHitPointer InvalidTrackingRecHit::cloneSH ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 21 of file InvalidTrackingRecHit.h.

21 { return RecHitPointer(clone()); }

References clone().

◆ dimension()

int InvalidTrackingRecHit::dimension ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 30 of file InvalidTrackingRecHit.h.

30 { return 0; }

◆ localPosition()

LocalPoint InvalidTrackingRecHit::localPosition ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 21 of file InvalidTrackingRecHit.cc.

21  {
22  throwError();
23  return LocalPoint();
24 }

References throwError().

◆ localPositionError()

LocalError InvalidTrackingRecHit::localPositionError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 26 of file InvalidTrackingRecHit.cc.

26  {
27  throwError();
28  return LocalError();
29 }

References throwError().

◆ parameters()

AlgebraicVector InvalidTrackingRecHit::parameters ( void  ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 6 of file InvalidTrackingRecHit.cc.

6  {
7  throwError();
8  return AlgebraicVector();
9 }

References throwError().

◆ parametersError()

AlgebraicSymMatrix InvalidTrackingRecHit::parametersError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 11 of file InvalidTrackingRecHit.cc.

11  {
12  throwError();
13  return AlgebraicSymMatrix();
14 }

References throwError().

◆ projectionMatrix()

AlgebraicMatrix InvalidTrackingRecHit::projectionMatrix ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 16 of file InvalidTrackingRecHit.cc.

16  {
17  throwError();
18  return AlgebraicMatrix();
19 }

References throwError().

◆ recHits() [1/2]

std::vector< const TrackingRecHit * > InvalidTrackingRecHit::recHits ( ) const
overridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 31 of file InvalidTrackingRecHit.cc.

31  {
32  throwError();
33  return std::vector<const TrackingRecHit*>();
34 }

References throwError().

◆ recHits() [2/2]

std::vector< TrackingRecHit * > InvalidTrackingRecHit::recHits ( )
overridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 36 of file InvalidTrackingRecHit.cc.

36  {
37  throwError();
38  return std::vector<TrackingRecHit*>();
39 }

References throwError().

◆ sharesInput()

bool InvalidTrackingRecHit::sharesInput ( const TrackingRecHit other,
SharedInputType  what 
) const
overridevirtual

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 41 of file InvalidTrackingRecHit.cc.

41 { return false; }

◆ throwError()

void InvalidTrackingRecHit::throwError ( ) const
private

Definition at line 4 of file InvalidTrackingRecHit.cc.

4 { throw cms::Exception("Invalid TrackingRecHit used"); }

References Exception.

Referenced by localPosition(), localPositionError(), parameters(), parametersError(), projectionMatrix(), and recHits().

InvalidTrackingRecHit::throwError
void throwError() const
Definition: InvalidTrackingRecHit.cc:4
InvalidTrackingRecHit::clone
InvalidTrackingRecHit * clone() const override
Definition: InvalidTrackingRecHit.h:19
TrackingRecHit::TrackingRecHit
TrackingRecHit(DetId id, Type type=valid)
Definition: TrackingRecHit.h:61
align::LocalPoint
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition: TrackingRecHit.h:24
DetId
Definition: DetId.h:17
AlgebraicVector
CLHEP::HepVector AlgebraicVector
Definition: AlgebraicObjects.h:13
InvalidTrackingRecHit::InvalidTrackingRecHit
InvalidTrackingRecHit()
Definition: InvalidTrackingRecHit.h:15
LocalError
Definition: LocalError.h:12
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
TrackingRecHit::missing
Definition: TrackingRecHit.h:47
AlgebraicSymMatrix
CLHEP::HepSymMatrix AlgebraicSymMatrix
Definition: AlgebraicObjects.h:15
AlgebraicMatrix
CLHEP::HepMatrix AlgebraicMatrix
Definition: AlgebraicObjects.h:14
Exception
Definition: hltDiff.cc:245