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 (GeomDet const &idet, Type type)
 
 InvalidTrackingRecHit (Type type)
 
 InvalidTrackingRecHit ()
 
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 (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 ()
 

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

Definition at line 10 of file InvalidTrackingRecHit.h.

Constructor & Destructor Documentation

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

Definition at line 12 of file InvalidTrackingRecHit.h.

12 : TrackingRecHit(idet, type) {}
type
Definition: HCALResponse.h:21
TrackingRecHit(DetId id, Type type=valid)
InvalidTrackingRecHit::InvalidTrackingRecHit ( Type  type)
inlineexplicit

Definition at line 13 of file InvalidTrackingRecHit.h.

13 : TrackingRecHit(DetId(0), type) {}
type
Definition: HCALResponse.h:21
TrackingRecHit(DetId id, Type type=valid)
Definition: DetId.h:17
InvalidTrackingRecHit::InvalidTrackingRecHit ( )
inline

Definition at line 15 of file InvalidTrackingRecHit.h.

Referenced by clone().

InvalidTrackingRecHit::~InvalidTrackingRecHit ( )
inlineoverride

Definition at line 17 of file InvalidTrackingRecHit.h.

17 {}

Member Function Documentation

InvalidTrackingRecHit* InvalidTrackingRecHit::clone ( void  ) const
inlineoverridevirtual

Implements TrackingRecHit.

Reimplemented in InvalidTrackingRecHitNoDet.

Definition at line 19 of file InvalidTrackingRecHit.h.

References InvalidTrackingRecHit().

Referenced by cloneSH().

19 { return new InvalidTrackingRecHit(*this); }
RecHitPointer InvalidTrackingRecHit::cloneSH ( ) const
inlineoverridevirtual

Reimplemented from TrackingRecHit.

Definition at line 21 of file InvalidTrackingRecHit.h.

References clone(), parameters(), parametersError(), and projectionMatrix().

21 { return RecHitPointer(clone()); }
InvalidTrackingRecHit * clone() const override
std::shared_ptr< TrackingRecHit const > RecHitPointer
int InvalidTrackingRecHit::dimension ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 30 of file InvalidTrackingRecHit.h.

References localPosition(), localPositionError(), trackingPlots::other, recHits(), sharesInput(), and throwError().

30 { return 0; }
LocalPoint InvalidTrackingRecHit::localPosition ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 21 of file InvalidTrackingRecHit.cc.

References throwError().

Referenced by dimension().

21  {
22  throwError();
23  return LocalPoint();
24 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
LocalError InvalidTrackingRecHit::localPositionError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 26 of file InvalidTrackingRecHit.cc.

References throwError().

Referenced by dimension().

26  {
27  throwError();
28  return LocalError();
29 }
AlgebraicVector InvalidTrackingRecHit::parameters ( void  ) const
overridevirtual
AlgebraicSymMatrix InvalidTrackingRecHit::parametersError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 11 of file InvalidTrackingRecHit.cc.

References throwError().

Referenced by cloneSH().

11  {
12  throwError();
13  return AlgebraicSymMatrix();
14 }
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicMatrix InvalidTrackingRecHit::projectionMatrix ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 16 of file InvalidTrackingRecHit.cc.

References throwError().

Referenced by cloneSH().

16  {
17  throwError();
18  return AlgebraicMatrix();
19 }
CLHEP::HepMatrix AlgebraicMatrix
std::vector< const TrackingRecHit * > InvalidTrackingRecHit::recHits ( ) const
overridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 31 of file InvalidTrackingRecHit.cc.

References throwError().

Referenced by dimension().

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

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 36 of file InvalidTrackingRecHit.cc.

References throwError().

36  {
37  throwError();
38  return std::vector<TrackingRecHit*>();
39 }
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.

Referenced by dimension().

41 { return false; }
void InvalidTrackingRecHit::throwError ( ) const
private

Definition at line 4 of file InvalidTrackingRecHit.cc.

References Exception.

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

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