CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions
MTDTransientTrackingRecHit Class Referencefinal

#include <MTDTransientTrackingRecHit.h>

Inheritance diagram for MTDTransientTrackingRecHit:
GenericTransientTrackingRecHit TValidTrackingRecHit TrackingRecHit

Public Types

typedef std::vector< ConstMTDRecHitPointerConstMTDRecHitContainer
 
using ConstMTDRecHitPointer = std::shared_ptr< MTDTransientTrackingRecHit const >
 
typedef std::vector< MTDRecHitPointerMTDRecHitContainer
 
using MTDRecHitPointer = std::shared_ptr< MTDTransientTrackingRecHit >
 
- Public Types inherited from GenericTransientTrackingRecHit
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

void invalidateHit ()
 
bool isBTL () const
 if this rec hit is a BTL rec hit More...
 
bool isETL () const
 if this rec hit is a ETL rec hit More...
 
 ~MTDTransientTrackingRecHit () override
 
- Public Member Functions inherited from GenericTransientTrackingRecHit
bool canImproveWithTrack () const override
 
TrackingRecHitcloneHit () const override
 
int dimension () const override
 
const TrackingRecHithit () const override
 
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...
 
 ~GenericTransientTrackingRecHit () override
 
- Public Member Functions inherited from TValidTrackingRecHit
bool canImproveWithTrack () const override
 
TrackingRecHitcloneHit () const override
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float errorGlobalR () const final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
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)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Static Public Member Functions

static RecHitPointer build (const GeomDet *geom, const TrackingRecHit *rh)
 
static MTDRecHitPointer 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

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

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 MTD.

Author
L. Gray - FNAL

Definition at line 18 of file MTDTransientTrackingRecHit.h.

Member Typedef Documentation

◆ ConstMTDRecHitContainer

Definition at line 24 of file MTDTransientTrackingRecHit.h.

◆ ConstMTDRecHitPointer

Definition at line 21 of file MTDTransientTrackingRecHit.h.

◆ MTDRecHitContainer

Definition at line 23 of file MTDTransientTrackingRecHit.h.

◆ MTDRecHitPointer

Definition at line 20 of file MTDTransientTrackingRecHit.h.

Constructor & Destructor Documentation

◆ ~MTDTransientTrackingRecHit()

MTDTransientTrackingRecHit::~MTDTransientTrackingRecHit ( )
inlineoverride

Definition at line 26 of file MTDTransientTrackingRecHit.h.

26 {}

◆ MTDTransientTrackingRecHit() [1/2]

MTDTransientTrackingRecHit::MTDTransientTrackingRecHit ( const GeomDet geom,
const TrackingRecHit rh 
)
private

Construct from a TrackingRecHit and its GeomDet.

Definition at line 20 of file MTDTransientTrackingRecHit.cc.

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

GenericTransientTrackingRecHit(const GeomDet &geom, const TrackingRecHit &rh)

◆ MTDTransientTrackingRecHit() [2/2]

MTDTransientTrackingRecHit::MTDTransientTrackingRecHit ( const MTDTransientTrackingRecHit other)
private

Copy ctor.

Definition at line 23 of file MTDTransientTrackingRecHit.cc.

24  : GenericTransientTrackingRecHit(*other.det(), *(other.hit())) {}
GenericTransientTrackingRecHit(const GeomDet &geom, const TrackingRecHit &rh)

Member Function Documentation

◆ build()

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

Definition at line 34 of file MTDTransientTrackingRecHit.h.

References relativeConstraints::geom, and MTDTransientTrackingRecHit().

34  {
36  }
std::shared_ptr< TrackingRecHit const > RecHitPointer
MTDTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.

◆ clone()

MTDTransientTrackingRecHit* MTDTransientTrackingRecHit::clone ( void  ) const
inlineoverrideprivatevirtual

Implements TValidTrackingRecHit.

Definition at line 52 of file MTDTransientTrackingRecHit.h.

References MTDTransientTrackingRecHit().

52 { return new MTDTransientTrackingRecHit(*this); }
MTDTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.

◆ invalidateHit()

void MTDTransientTrackingRecHit::invalidateHit ( )

Definition at line 36 of file MTDTransientTrackingRecHit.cc.

References TrackingRecHit::bad, and TrackingRecHit::setType().

36  {
37  setType(bad); //trackingRecHit_->setType(bad); // maybe add in later
38 }
void setType(Type ttype)

◆ isBTL()

bool MTDTransientTrackingRecHit::isBTL ( ) const

if this rec hit is a BTL rec hit

Definition at line 26 of file MTDTransientTrackingRecHit.cc.

References MTDDetId::BTL, TrackingRecHit::geographicalId(), and groupFilesInBlocks::temp.

26  {
28  return (temp.mtdSubDetector() == MTDDetId::BTL);
29 }
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
DetId geographicalId() const

◆ isETL()

bool MTDTransientTrackingRecHit::isETL ( ) const

if this rec hit is a ETL rec hit

Definition at line 31 of file MTDTransientTrackingRecHit.cc.

References MTDDetId::ETL, TrackingRecHit::geographicalId(), and groupFilesInBlocks::temp.

31  {
33  return (temp.mtdSubDetector() == MTDDetId::ETL);
34 }
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
DetId geographicalId() const

◆ specificBuild()

static MTDRecHitPointer MTDTransientTrackingRecHit::specificBuild ( const GeomDet geom,
const TrackingRecHit rh 
)
inlinestatic

Definition at line 38 of file MTDTransientTrackingRecHit.h.

References relativeConstraints::geom, LogDebug, and MTDTransientTrackingRecHit().

38  {
39  LogDebug("MTDTransientTrackingRecHit") << "Getting specificBuild" << std::endl;
41  }
std::shared_ptr< MTDTransientTrackingRecHit > MTDRecHitPointer
MTDTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
#define LogDebug(id)