CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
< ConstRecHitPointer
ConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
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
}
 

Public Member Functions

virtual InvalidTrackingRecHitclone () const
 
virtual RecHitPointer cloneSH () const
 
virtual int dimension () const
 
 InvalidTrackingRecHit (GeomDet const &idet, Type type)
 
 InvalidTrackingRecHit (Type type)
 
 InvalidTrackingRecHit ()
 
virtual LocalPoint localPosition () const
 
virtual LocalError localPositionError () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any) More...
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
virtual ~InvalidTrackingRecHit ()
 
- 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:18
InvalidTrackingRecHit::InvalidTrackingRecHit ( )
inline

Definition at line 15 of file InvalidTrackingRecHit.h.

Referenced by clone().

virtual InvalidTrackingRecHit::~InvalidTrackingRecHit ( )
inlinevirtual

Definition at line 17 of file InvalidTrackingRecHit.h.

17 {}

Member Function Documentation

virtual InvalidTrackingRecHit* InvalidTrackingRecHit::clone ( void  ) const
inlinevirtual

Implements TrackingRecHit.

Reimplemented in InvalidTrackingRecHitNoDet.

Definition at line 19 of file InvalidTrackingRecHit.h.

References InvalidTrackingRecHit().

Referenced by cloneSH().

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

Reimplemented from TrackingRecHit.

Definition at line 21 of file InvalidTrackingRecHit.h.

References clone().

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

Implements TrackingRecHit.

Definition at line 31 of file InvalidTrackingRecHit.h.

31 { return 0;}
LocalPoint InvalidTrackingRecHit::localPosition ( ) const
virtual

Implements TrackingRecHit.

Definition at line 23 of file InvalidTrackingRecHit.cc.

References throwError().

23  {
24  throwError();
25  return LocalPoint();
26 }
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
LocalError InvalidTrackingRecHit::localPositionError ( ) const
virtual

Implements TrackingRecHit.

Definition at line 28 of file InvalidTrackingRecHit.cc.

References throwError().

28  {
29  throwError();
30  return LocalError();
31 }
AlgebraicVector InvalidTrackingRecHit::parameters ( void  ) const
virtual
AlgebraicSymMatrix InvalidTrackingRecHit::parametersError ( ) const
virtual

Implements TrackingRecHit.

Definition at line 13 of file InvalidTrackingRecHit.cc.

References throwError().

13  {
14  throwError();
15  return AlgebraicSymMatrix();
16 }
CLHEP::HepSymMatrix AlgebraicSymMatrix
AlgebraicMatrix InvalidTrackingRecHit::projectionMatrix ( ) const
virtual

Implements TrackingRecHit.

Definition at line 18 of file InvalidTrackingRecHit.cc.

References throwError().

18  {
19  throwError();
20  return AlgebraicMatrix();
21 }
CLHEP::HepMatrix AlgebraicMatrix
std::vector< const TrackingRecHit * > InvalidTrackingRecHit::recHits ( ) const
virtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 34 of file InvalidTrackingRecHit.cc.

References throwError().

34  {
35  throwError();
36  return std::vector<const TrackingRecHit*>();
37 }
std::vector< TrackingRecHit * > InvalidTrackingRecHit::recHits ( )
virtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 39 of file InvalidTrackingRecHit.cc.

References throwError().

39  {
40  throwError();
41  return std::vector<TrackingRecHit*>();
42 }
bool InvalidTrackingRecHit::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 44 of file InvalidTrackingRecHit.cc.

46 {
47  return false;
48 }
void InvalidTrackingRecHit::throwError ( ) const
private

Definition at line 4 of file InvalidTrackingRecHit.cc.

References Exception.

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

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