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 20 of file MTDTransientTrackingRecHit.h.

Member Typedef Documentation

Definition at line 26 of file MTDTransientTrackingRecHit.h.

Definition at line 23 of file MTDTransientTrackingRecHit.h.

Definition at line 25 of file MTDTransientTrackingRecHit.h.

Definition at line 22 of file MTDTransientTrackingRecHit.h.

Constructor & Destructor Documentation

MTDTransientTrackingRecHit::~MTDTransientTrackingRecHit ( )
inlineoverride

Definition at line 28 of file MTDTransientTrackingRecHit.h.

References isBTL(), and isETL().

28 {}
MTDTransientTrackingRecHit::MTDTransientTrackingRecHit ( const GeomDet geom,
const TrackingRecHit rh 
)
private

Construct from a TrackingRecHit and its GeomDet.

Definition at line 21 of file MTDTransientTrackingRecHit.cc.

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

21  :
GenericTransientTrackingRecHit(const GeomDet &geom, const TrackingRecHit &rh)
MTDTransientTrackingRecHit::MTDTransientTrackingRecHit ( const MTDTransientTrackingRecHit other)
private

Copy ctor.

Definition at line 24 of file MTDTransientTrackingRecHit.cc.

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

Member Function Documentation

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

Definition at line 36 of file MTDTransientTrackingRecHit.h.

References MTDTransientTrackingRecHit().

36  {
37  return RecHitPointer( new MTDTransientTrackingRecHit(geom, rh));
38  }
std::shared_ptr< TrackingRecHit const > RecHitPointer
MTDTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
MTDTransientTrackingRecHit* MTDTransientTrackingRecHit::clone ( void  ) const
inlineoverrideprivatevirtual

Implements TValidTrackingRecHit.

Definition at line 55 of file MTDTransientTrackingRecHit.h.

References MTDTransientTrackingRecHit().

55  {
56  return new MTDTransientTrackingRecHit(*this);
57  }
MTDTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit *rh)
Construct from a TrackingRecHit and its GeomDet.
void MTDTransientTrackingRecHit::invalidateHit ( )

Definition at line 37 of file MTDTransientTrackingRecHit.cc.

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

Referenced by specificBuild().

37  {
38  setType(bad); //trackingRecHit_->setType(bad); // maybe add in later
39 }
void setType(Type ttype)
bool MTDTransientTrackingRecHit::isBTL ( ) const

if this rec hit is a BTL rec hit

Definition at line 27 of file MTDTransientTrackingRecHit.cc.

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

Referenced by ~MTDTransientTrackingRecHit().

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

if this rec hit is a ETL rec hit

Definition at line 32 of file MTDTransientTrackingRecHit.cc.

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

Referenced by ~MTDTransientTrackingRecHit().

32  {
34  return (temp.mtdSubDetector() == MTDDetId::ETL);
35 }
Detector identifier base class for the MIP Timing Layer.
Definition: MTDDetId.h:21
DetId geographicalId() const
static MTDRecHitPointer MTDTransientTrackingRecHit::specificBuild ( const GeomDet geom,
const TrackingRecHit rh 
)
inlinestatic

Definition at line 40 of file MTDTransientTrackingRecHit.h.

References relativeConstraints::geom, invalidateHit(), LogDebug, MTDTransientTrackingRecHit(), and trackingPlots::other.

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