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 | Static Public Member Functions | Private Member Functions | Friends
MuonTransientTrackingRecHit Class Referencefinal

#include <MuonTransientTrackingRecHit.h>

Inheritance diagram for MuonTransientTrackingRecHit:
GenericTransientTrackingRecHit TValidTrackingRecHit TrackingRecHit

Public Types

typedef std::vector
< ConstMuonRecHitPointer
ConstMuonRecHitContainer
 
using ConstMuonRecHitPointer = std::shared_ptr< MuonTransientTrackingRecHit const >
 
typedef std::vector
< MuonRecHitPointer
MuonRecHitContainer
 
using MuonRecHitPointer = std::shared_ptr< MuonTransientTrackingRecHit >
 
- Public Types inherited from GenericTransientTrackingRecHit
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 double chi2 () const
 Chi square of the fit for segments, else 0. More...
 
virtual int degreesOfFreedom () const
 Degrees of freedom for segments, else 0. More...
 
virtual GlobalVector globalDirection () const
 Direction in 3D for segments, otherwise (0,0,0) More...
 
virtual GlobalError globalDirectionError () const
 Error on the global direction. More...
 
void invalidateHit ()
 
bool isCSC () const
 if this rec hit is a CSC rec hit More...
 
bool isDT () const
 if this rec hit is a DT rec hit More...
 
bool isGEM () const
 if this rec hit is a GEM rec hit More...
 
bool isME0 () const
 if this rec hit is a ME0 rec hit More...
 
bool isRPC () const
 if this rec hit is a RPC rec hit More...
 
virtual LocalVector localDirection () const
 Direction in 3D for segments, otherwise (0,0,0) More...
 
virtual LocalError localDirectionError () const
 Error on the local direction. More...
 
virtual AlgebraicSymMatrix parametersError () const override
 
virtual ConstRecHitContainer transientHits () const override
 return the sub components of this transient rechit More...
 
virtual ~MuonTransientTrackingRecHit ()
 
- Public Member Functions inherited from GenericTransientTrackingRecHit
virtual bool canImproveWithTrack () const override
 
TrackingRecHitcloneHit () const
 
virtual int dimension () const
 
virtual const TrackingRecHithit () const
 
virtual LocalPoint localPosition () const override
 
virtual LocalError localPositionError () const override
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const override
 Access to component RecHits (if any) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits () override
 Non-const access to component RecHits (if any) More...
 
virtual ~GenericTransientTrackingRecHit ()
 
- Public Member Functions inherited from TValidTrackingRecHit
TrackingRecHitcloneHit () const
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float errorGlobalR () const final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
virtual GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
virtual const Surfacesurface () const final
 
 TValidTrackingRecHit (const GeomDet &geom)
 
template<typename... Args>
 TValidTrackingRecHit (Args &&...args)
 
- Public Member Functions inherited from TrackingRecHit
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
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 bool sharesInput (const TrackingRecHit *other, SharedInputType what) 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)
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Static Public Member Functions

static RecHitPointer build (const GeomDet *geom, const TrackingRecHit *rh)
 FIXME virtual ConstMuonRecHitContainer specificTransientHits() const;. More...
 
static MuonRecHitPointer specificBuild (const GeomDet *geom, const TrackingRecHit *rh)
 
- Static Public Member Functions inherited from GenericTransientTrackingRecHit
static RecHitPointer build (const GeomDet *geom, const TrackingRecHit *rh)
 

Private Member Functions

virtual
MuonTransientTrackingRecHit
clone () const override
 
 MuonTransientTrackingRecHit (const GeomDet *geom, const TrackingRecHit *rh)
 Construct from a TrackingRecHit and its GeomDet. More...
 
 MuonTransientTrackingRecHit (const MuonTransientTrackingRecHit &other)
 Copy ctor. More...
 

Friends

class kkkwwwxxxyyyzzz
 

Additional Inherited Members

- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Protected Member Functions inherited from GenericTransientTrackingRecHit
 GenericTransientTrackingRecHit (const GeomDet &geom, const TrackingRecHit &rh)
 
 GenericTransientTrackingRecHit (const GeomDet &geom, TrackingRecHit *rh)
 for derived classes convenience, does not clone! More...
 
 GenericTransientTrackingRecHit (const GenericTransientTrackingRecHit &other)
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 
- Protected Attributes inherited from GenericTransientTrackingRecHit
TrackingRecHittrackingRecHit_
 

Detailed Description

A TransientTrackingRecHit for muons.

Author
C. Liu Purdue University

by C. Calabria INFN & Universita  Bari

Definition at line 21 of file MuonTransientTrackingRecHit.h.

Member Typedef Documentation

Definition at line 29 of file MuonTransientTrackingRecHit.h.

Definition at line 24 of file MuonTransientTrackingRecHit.h.

Definition at line 28 of file MuonTransientTrackingRecHit.h.

Definition at line 23 of file MuonTransientTrackingRecHit.h.

Constructor & Destructor Documentation

virtual MuonTransientTrackingRecHit::~MuonTransientTrackingRecHit ( )
inlinevirtual

Definition at line 31 of file MuonTransientTrackingRecHit.h.

31 {}
MuonTransientTrackingRecHit::MuonTransientTrackingRecHit ( const GeomDet geom,
const TrackingRecHit rh 
)
private

Construct from a TrackingRecHit and its GeomDet.

Definition at line 21 of file MuonTransientTrackingRecHit.cc.

Referenced by build(), clone(), and specificBuild().

MuonTransientTrackingRecHit::MuonTransientTrackingRecHit ( const MuonTransientTrackingRecHit other)
private

Copy ctor.

Definition at line 24 of file MuonTransientTrackingRecHit.cc.

Member Function Documentation

static RecHitPointer MuonTransientTrackingRecHit::build ( const GeomDet geom,
const TrackingRecHit rh 
)
inlinestatic

FIXME virtual ConstMuonRecHitContainer specificTransientHits() const;.

Definition at line 73 of file MuonTransientTrackingRecHit.h.

References MuonTransientTrackingRecHit().

73  {
74  return RecHitPointer( new MuonTransientTrackingRecHit(geom, rh));
75  }
MuonTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
std::shared_ptr< TrackingRecHit const > RecHitPointer
double MuonTransientTrackingRecHit::chi2 ( void  ) const
virtual

Chi square of the fit for segments, else 0.

Definition at line 126 of file MuonTransientTrackingRecHit.cc.

virtual MuonTransientTrackingRecHit* MuonTransientTrackingRecHit::clone ( void  ) const
inlineoverrideprivatevirtual

Reimplemented from GenericTransientTrackingRecHit.

Definition at line 94 of file MuonTransientTrackingRecHit.h.

References MuonTransientTrackingRecHit().

94  {
95  return new MuonTransientTrackingRecHit(*this);
96  }
MuonTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
int MuonTransientTrackingRecHit::degreesOfFreedom ( ) const
virtual

Degrees of freedom for segments, else 0.

Definition at line 133 of file MuonTransientTrackingRecHit.cc.

GlobalVector MuonTransientTrackingRecHit::globalDirection ( ) const
virtual

Direction in 3D for segments, otherwise (0,0,0)

Definition at line 44 of file MuonTransientTrackingRecHit.cc.

GlobalError MuonTransientTrackingRecHit::globalDirectionError ( ) const
virtual

Error on the global direction.

Definition at line 49 of file MuonTransientTrackingRecHit.cc.

void MuonTransientTrackingRecHit::invalidateHit ( )

Definition at line 223 of file MuonTransientTrackingRecHit.cc.

bool MuonTransientTrackingRecHit::isCSC ( ) const

if this rec hit is a CSC rec hit

Definition at line 144 of file MuonTransientTrackingRecHit.cc.

bool MuonTransientTrackingRecHit::isDT ( ) const

if this rec hit is a DT rec hit

Definition at line 140 of file MuonTransientTrackingRecHit.cc.

bool MuonTransientTrackingRecHit::isGEM ( ) const

if this rec hit is a GEM rec hit

Definition at line 148 of file MuonTransientTrackingRecHit.cc.

bool MuonTransientTrackingRecHit::isME0 ( ) const

if this rec hit is a ME0 rec hit

Definition at line 152 of file MuonTransientTrackingRecHit.cc.

bool MuonTransientTrackingRecHit::isRPC ( ) const

if this rec hit is a RPC rec hit

Definition at line 157 of file MuonTransientTrackingRecHit.cc.

LocalVector MuonTransientTrackingRecHit::localDirection ( ) const
virtual

Direction in 3D for segments, otherwise (0,0,0)

Definition at line 28 of file MuonTransientTrackingRecHit.cc.

LocalError MuonTransientTrackingRecHit::localDirectionError ( ) const
virtual

Error on the local direction.

Definition at line 36 of file MuonTransientTrackingRecHit.cc.

AlgebraicSymMatrix MuonTransientTrackingRecHit::parametersError ( ) const
overridevirtual

Reimplemented from GenericTransientTrackingRecHit.

Definition at line 55 of file MuonTransientTrackingRecHit.cc.

static MuonRecHitPointer MuonTransientTrackingRecHit::specificBuild ( const GeomDet geom,
const TrackingRecHit rh 
)
inlinestatic

Definition at line 77 of file MuonTransientTrackingRecHit.h.

References LogDebug, and MuonTransientTrackingRecHit().

Referenced by MuonTransientTrackingRecHitBuilder::build(), MuonMillepedeTrackRefitter::produce(), and ExhaustiveMuonTrajectoryBuilder::trajectories().

77  {
78  LogDebug("Muon|RecoMuon|MuonDetLayerMeasurements") << "Getting specificBuild"<<std::endl;
79  return MuonRecHitPointer(new MuonTransientTrackingRecHit(geom, rh));
80  }
#define LogDebug(id)
MuonTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
std::shared_ptr< MuonTransientTrackingRecHit > MuonRecHitPointer
TransientTrackingRecHit::ConstRecHitContainer MuonTransientTrackingRecHit::transientHits ( ) const
overridevirtual

return the sub components of this transient rechit

Reimplemented from TrackingRecHit.

Definition at line 163 of file MuonTransientTrackingRecHit.cc.

Friends And Related Function Documentation

friend class kkkwwwxxxyyyzzz
friend

Definition at line 86 of file MuonTransientTrackingRecHit.h.