CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FastMatchedTrackerRecHit Class Reference

#include <FastMatchedTrackerRecHit.h>

Inheritance diagram for FastMatchedTrackerRecHit:
FastTrackerRecHit BaseTrackerRecHit TrackingRecHit

Public Member Functions

FastMatchedTrackerRecHitclone () const override
 
int32_t eventId (size_t i=0) const override
 
 FastMatchedTrackerRecHit ()
 
 FastMatchedTrackerRecHit (const LocalPoint &pos, const LocalError &err, const GeomDet &idet, const FastSingleTrackerRecHit &rMono, const FastSingleTrackerRecHit &rStereo, bool stereoHitFirst=false)
 
const FastSingleTrackerRecHitfirstHit () const
 
int32_t id (size_t i=0) const override
 
const FastSingleTrackerRecHitmonoHit () const
 
size_t nIds () const override
 
size_t nSimTrackIds () const override
 see addSimTrackId(int32_t simTrackId) More...
 
const FastSingleTrackerRecHitsecondHit () const
 
void setEventId (int32_t eventId) override
 
void setRecHitCombinationIndex (int32_t recHitCombinationIndex) override
 
void setStereoLayerFirst (bool stereoHitFirst=true)
 
int32_t simTrackEventId (size_t i) const override
 
int32_t simTrackId (size_t i) const override
 
const FastSingleTrackerRecHitstereoHit () const
 
 ~FastMatchedTrackerRecHit () override
 
- Public Member Functions inherited from FastTrackerRecHit
bool canImproveWithTrack () const override
 
FastTrackerRecHitclone () const override
 
int dimension () const override
 get the dimensions right More...
 
float energyLoss () const
 
 FastTrackerRecHit ()
 
 FastTrackerRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, fastTrackerRecHitType::HitType hitType)
 
OmniClusterRef const & firstClusterRef () const override
 
void getKfComponents (KfComponentsHolder &holder) const override
 
bool isPixel () const override
 pixel or strip? More...
 
virtual int32_t recHitCombinationIndex () const
 
std::vector< const TrackingRecHit * > recHits () const override
 
std::vector< TrackingRecHit * > recHits () override
 
bool sameId (const FastTrackerRecHit *other, size_t i=0, size_t j=0) const
 
void set2D (bool is2D=true)
 
void setEnergyLoss (float e)
 
bool sharesInput (const TrackingRecHit *other, SharedInputType what) const override
 
 ~FastTrackerRecHit () override
 
- Public Member Functions inherited from BaseTrackerRecHit
 BaseTrackerRecHit ()
 
 BaseTrackerRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt)
 
 BaseTrackerRecHit (DetId id, trackerHitRTTI::RTTI rt)
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float errorGlobalR () const final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
void getKfComponents1D (KfComponentsHolder &holder) const
 
void getKfComponents2D (KfComponentsHolder &holder) const
 
GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
bool hasPositionAndError () const final
 to be redefined by daughter class More...
 
BaseTrackerRecHit const * hit () const final
 
bool isMatched () const
 
bool isMulti () const
 
virtual bool isPhase2 () const
 
bool isProjected () const
 
bool isProjMono () const
 
bool isProjStereo () const
 
bool isSingle () const
 
LocalPoint localPosition () const final
 
LocalError localPositionError () const final
 
const LocalErrorlocalPositionErrorFast () const
 
const LocalPointlocalPositionFast () const
 
AlgebraicVector parameters () const override
 
AlgebraicSymMatrix parametersError () const override
 
AlgebraicMatrix projectionMatrix () const override
 
trackerHitRTTI::RTTI rtti () const
 
bool sameDetModule (TrackingRecHit const &hit) const
 
const Surfacesurface () const final
 
 ~BaseTrackerRecHit () override
 
- Public Member Functions inherited from TrackingRecHit
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
DetId geographicalId () const
 
unsigned int getRTTI () const
 
Type getType () 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)
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Private Attributes

FastSingleTrackerRecHit componentMono_
 
FastSingleTrackerRecHit componentStereo_
 
bool stereoHitFirst_
 

Additional Inherited Members

- 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
}
 
- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Protected Member Functions inherited from FastTrackerRecHit
FastTrackerRecHitclone_ (TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
 
void load ()
 helps making the hit postion and error persistent More...
 
void store ()
 helps making the hit postion and error persistent More...
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 
- Protected Attributes inherited from FastTrackerRecHit
float energyLoss_
 
bool is2D_
 hit is either one dimensional (is2D_ = false) or two dimensions (is2D_ = true) More...
 
const bool isPixel_
 hit is either on pixel modul (isPixel_ = true) or strip module (isPixel_ = false) More...
 
LocalError myErr_
 helps making the hit postion and error persistent More...
 
LocalPoint myPos_
 helps making the hit postion and error persistent More...
 
uint32_t recHitCombinationIndex_
 
- Protected Attributes inherited from BaseTrackerRecHit
LocalError err_
 
LocalPoint pos_
 
unsigned int qualWord_
 

Detailed Description

Definition at line 7 of file FastMatchedTrackerRecHit.h.

Constructor & Destructor Documentation

◆ FastMatchedTrackerRecHit() [1/2]

FastMatchedTrackerRecHit::FastMatchedTrackerRecHit ( )
inline

Definition at line 9 of file FastMatchedTrackerRecHit.h.

9 : stereoHitFirst_(false) {}

Referenced by clone().

◆ ~FastMatchedTrackerRecHit()

FastMatchedTrackerRecHit::~FastMatchedTrackerRecHit ( )
inlineoverride

Definition at line 11 of file FastMatchedTrackerRecHit.h.

11 {}

◆ FastMatchedTrackerRecHit() [2/2]

FastMatchedTrackerRecHit::FastMatchedTrackerRecHit ( const LocalPoint pos,
const LocalError err,
const GeomDet idet,
const FastSingleTrackerRecHit rMono,
const FastSingleTrackerRecHit rStereo,
bool  stereoHitFirst = false 
)
inline

Definition at line 13 of file FastMatchedTrackerRecHit.h.

20  stereoHitFirst_(stereoHitFirst),
21  componentMono_(rMono),
22  componentStereo_(rStereo){};

Member Function Documentation

◆ clone()

FastMatchedTrackerRecHit* FastMatchedTrackerRecHit::clone ( void  ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 24 of file FastMatchedTrackerRecHit.h.

24  {
26  p->load();
27  return p;
28  }

References FastMatchedTrackerRecHit(), and AlCaHLTBitMon_ParallelJobs::p.

◆ eventId()

int32_t FastMatchedTrackerRecHit::eventId ( size_t  i = 0) const
inlineoverridevirtual

Reimplemented from FastTrackerRecHit.

Definition at line 32 of file FastMatchedTrackerRecHit.h.

32 { return i == 0 ? monoHit().eventId() : stereoHit().eventId(); }

References FastSingleTrackerRecHit::eventId(), mps_fire::i, monoHit(), and stereoHit().

Referenced by ntupleDataFormat.Event::eventIdStr(), and setEventId().

◆ firstHit()

const FastSingleTrackerRecHit& FastMatchedTrackerRecHit::firstHit ( ) const
inline

◆ id()

int32_t FastMatchedTrackerRecHit::id ( size_t  i = 0) const
inlineoverridevirtual

Reimplemented from FastTrackerRecHit.

Definition at line 31 of file FastMatchedTrackerRecHit.h.

31 { return i == 0 ? monoHit().id() : stereoHit().id(); }

References mps_fire::i, FastSingleTrackerRecHit::id(), monoHit(), and stereoHit().

◆ monoHit()

const FastSingleTrackerRecHit& FastMatchedTrackerRecHit::monoHit ( ) const
inline

Definition at line 46 of file FastMatchedTrackerRecHit.h.

46 { return componentMono_; }

References componentMono_.

Referenced by eventId(), and id().

◆ nIds()

size_t FastMatchedTrackerRecHit::nIds ( ) const
inlineoverridevirtual

Reimplemented from FastTrackerRecHit.

Definition at line 30 of file FastMatchedTrackerRecHit.h.

30 { return 2; }

◆ nSimTrackIds()

size_t FastMatchedTrackerRecHit::nSimTrackIds ( ) const
inlineoverridevirtual

see addSimTrackId(int32_t simTrackId)

Reimplemented from FastTrackerRecHit.

Definition at line 34 of file FastMatchedTrackerRecHit.h.

References componentMono_, componentStereo_, and FastSingleTrackerRecHit::nSimTrackIds().

◆ secondHit()

const FastSingleTrackerRecHit& FastMatchedTrackerRecHit::secondHit ( ) const
inline

◆ setEventId()

void FastMatchedTrackerRecHit::setEventId ( int32_t  eventId)
inlineoverridevirtual

◆ setRecHitCombinationIndex()

void FastMatchedTrackerRecHit::setRecHitCombinationIndex ( int32_t  recHitCombinationIndex)
inlineoverridevirtual

◆ setStereoLayerFirst()

void FastMatchedTrackerRecHit::setStereoLayerFirst ( bool  stereoHitFirst = true)
inline

Definition at line 51 of file FastMatchedTrackerRecHit.h.

51 { stereoHitFirst_ = stereoHitFirst; }

References stereoHitFirst_.

◆ simTrackEventId()

int32_t FastMatchedTrackerRecHit::simTrackEventId ( size_t  i) const
inlineoverridevirtual

◆ simTrackId()

int32_t FastMatchedTrackerRecHit::simTrackId ( size_t  i) const
inlineoverridevirtual

◆ stereoHit()

const FastSingleTrackerRecHit& FastMatchedTrackerRecHit::stereoHit ( ) const
inline

Definition at line 47 of file FastMatchedTrackerRecHit.h.

47 { return componentStereo_; }

References componentStereo_.

Referenced by eventId(), and id().

Member Data Documentation

◆ componentMono_

FastSingleTrackerRecHit FastMatchedTrackerRecHit::componentMono_
private

◆ componentStereo_

FastSingleTrackerRecHit FastMatchedTrackerRecHit::componentStereo_
private

◆ stereoHitFirst_

bool FastMatchedTrackerRecHit::stereoHitFirst_
private

Definition at line 64 of file FastMatchedTrackerRecHit.h.

Referenced by firstHit(), secondHit(), and setStereoLayerFirst().

FastMatchedTrackerRecHit
Definition: FastMatchedTrackerRecHit.h:7
FastTrackerRecHit::setRecHitCombinationIndex
virtual void setRecHitCombinationIndex(int32_t recHitCombinationIndex)
Definition: FastTrackerRecHit.h:112
mps_fire.i
i
Definition: mps_fire.py:355
FastMatchedTrackerRecHit::FastMatchedTrackerRecHit
FastMatchedTrackerRecHit()
Definition: FastMatchedTrackerRecHit.h:9
FastSingleTrackerRecHit::simTrackEventId
int32_t simTrackEventId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
Definition: FastSingleTrackerRecHit.h:31
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
pos
Definition: PixelAliasList.h:18
FastSingleTrackerRecHit::id
int32_t id(size_t i=0) const override
Definition: FastSingleTrackerRecHit.h:25
fastTrackerRecHitType::siStripMatched2D
Definition: FastTrackerRecHit.h:20
FastMatchedTrackerRecHit::monoHit
const FastSingleTrackerRecHit & monoHit() const
Definition: FastMatchedTrackerRecHit.h:46
FastSingleTrackerRecHit::simTrackId
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
Definition: FastSingleTrackerRecHit.h:28
FastMatchedTrackerRecHit::stereoHit
const FastSingleTrackerRecHit & stereoHit() const
Definition: FastMatchedTrackerRecHit.h:47
FastMatchedTrackerRecHit::componentMono_
FastSingleTrackerRecHit componentMono_
Definition: FastMatchedTrackerRecHit.h:65
FastMatchedTrackerRecHit::componentStereo_
FastSingleTrackerRecHit componentStereo_
Definition: FastMatchedTrackerRecHit.h:66
FastSingleTrackerRecHit::nSimTrackIds
size_t nSimTrackIds() const override
see addSimTrackId(int32_t simTrackId)
Definition: FastSingleTrackerRecHit.h:27
FastMatchedTrackerRecHit::stereoHitFirst_
bool stereoHitFirst_
Definition: FastMatchedTrackerRecHit.h:64
runTheMatrix.err
err
Definition: runTheMatrix.py:288
FastTrackerRecHit::recHitCombinationIndex
virtual int32_t recHitCombinationIndex() const
Definition: FastTrackerRecHit.h:102
FastTrackerRecHit::FastTrackerRecHit
FastTrackerRecHit()
Definition: FastTrackerRecHit.h:44
FastSingleTrackerRecHit::eventId
int32_t eventId(size_t i=0) const override
Definition: FastSingleTrackerRecHit.h:26
FastSingleTrackerRecHit::setEventId
void setEventId(int32_t eventId) override
Definition: FastSingleTrackerRecHit.h:47
FastMatchedTrackerRecHit::eventId
int32_t eventId(size_t i=0) const override
Definition: FastMatchedTrackerRecHit.h:32