CMS 3D CMS Logo

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

#include <FastSingleTrackerRecHit.h>

Inheritance diagram for FastSingleTrackerRecHit:
FastTrackerRecHit BaseTrackerRecHit TrackingRecHit

Public Member Functions

void addSimTrackId (int32_t simTrackId)
 
FastSingleTrackerRecHitclone () const override
 
int32_t eventId (size_t i=0) const override
 
 FastSingleTrackerRecHit ()
 
 FastSingleTrackerRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, fastTrackerRecHitType::HitType hitType)
 
int32_t id (size_t i=0) const override
 
size_t nIds () const override
 
size_t nSimTrackIds () const override
 see addSimTrackId(int32_t simTrackId) More...
 
void setEventId (int32_t eventId) override
 
void setId (int32_t id)
 
int32_t simTrackEventId (size_t i) const override
 see addSimTrackId(int32_t simTrackId) More...
 
int32_t simTrackId (size_t i) const override
 see addSimTrackId(int32_t simTrackId) More...
 
- 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)
 
virtual void setRecHitCombinationIndex (int32_t recHitCombinationIndex)
 
bool sharesInput (const TrackingRecHit *other, SharedInputType what) const override
 
 ~FastTrackerRecHit () override
 
- Public Member Functions inherited from BaseTrackerRecHit
 BaseTrackerRecHit ()
 
 BaseTrackerRecHit (const GeomDet &idet, trackerHitRTTI::RTTI rt)
 
 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 override
 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 override
 
LocalError localPositionError () const override
 
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

int32_t eventId_
 see setEeId(int32_t eeid) More...
 
int32_t id_
 see setId(int32_t id) More...
 
std::vector< int32_t > simTrackIds_
 see addSimTrackIds(int32_t) More...
 

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 FastSingleTrackerRecHit.h.

Constructor & Destructor Documentation

◆ FastSingleTrackerRecHit() [1/2]

FastSingleTrackerRecHit::FastSingleTrackerRecHit ( )
inline

Definition at line 9 of file FastSingleTrackerRecHit.h.

9 : FastTrackerRecHit(), id_(-1), eventId_(0) {}

Referenced by clone().

◆ FastSingleTrackerRecHit() [2/2]

FastSingleTrackerRecHit::FastSingleTrackerRecHit ( const LocalPoint p,
const LocalError e,
GeomDet const &  idet,
fastTrackerRecHitType::HitType  hitType 
)
inline

Definition at line 11 of file FastSingleTrackerRecHit.h.

15  : FastTrackerRecHit(p, e, idet, hitType), id_(-1), eventId_(0) {}

Member Function Documentation

◆ addSimTrackId()

void FastSingleTrackerRecHit::addSimTrackId ( int32_t  simTrackId)
inline

add an id number to the list of id numbers of SimTracks from which the hit originates the SimTrack id numbers are the indices of the SimTracks in the SimTrack collection

Definition at line 37 of file FastSingleTrackerRecHit.h.

37 { simTrackIds_.push_back(simTrackId); }

References simTrackId(), and simTrackIds_.

◆ clone()

FastSingleTrackerRecHit* FastSingleTrackerRecHit::clone ( void  ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 18 of file FastSingleTrackerRecHit.h.

18  {
20  p->load();
21  return p;
22  }

References FastSingleTrackerRecHit(), and AlCaHLTBitMon_ParallelJobs::p.

◆ eventId()

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

◆ id()

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

Reimplemented from FastTrackerRecHit.

Definition at line 25 of file FastSingleTrackerRecHit.h.

25 { return i == 0 ? id_ : -1; }

References mps_fire::i, and id_.

Referenced by FastMatchedTrackerRecHit::id(), FastProjectedTrackerRecHit::id(), and setId().

◆ nIds()

size_t FastSingleTrackerRecHit::nIds ( ) const
inlineoverridevirtual

Reimplemented from FastTrackerRecHit.

Definition at line 24 of file FastSingleTrackerRecHit.h.

24 { return 1; }

◆ nSimTrackIds()

size_t FastSingleTrackerRecHit::nSimTrackIds ( ) const
inlineoverridevirtual

◆ setEventId()

void FastSingleTrackerRecHit::setEventId ( int32_t  eventId)
inlineoverridevirtual

set the hit's event number there is in principle no reason to play with this variable outside the PU mixing modules see Adjuster::doTheOffset(int bunchSpace, int bcr, TrackingRecHitCollection & trackingrechits, unsigned int evtNr, int vertexOffset)

Reimplemented from FastTrackerRecHit.

Definition at line 47 of file FastSingleTrackerRecHit.h.

47 { eventId_ = eventId; }

References eventId(), and eventId_.

Referenced by FastProjectedTrackerRecHit::setEventId(), and FastMatchedTrackerRecHit::setEventId().

◆ setId()

void FastSingleTrackerRecHit::setId ( int32_t  id)
inline

set the hit id number for any particular hit in any particular event,

Definition at line 42 of file FastSingleTrackerRecHit.h.

42 { id_ = id; }

References id(), and id_.

◆ simTrackEventId()

int32_t FastSingleTrackerRecHit::simTrackEventId ( size_t  i) const
inlineoverridevirtual

◆ simTrackId()

int32_t FastSingleTrackerRecHit::simTrackId ( size_t  i) const
inlineoverridevirtual

Member Data Documentation

◆ eventId_

int32_t FastSingleTrackerRecHit::eventId_
private

see setEeId(int32_t eeid)

Definition at line 51 of file FastSingleTrackerRecHit.h.

Referenced by eventId(), setEventId(), and simTrackEventId().

◆ id_

int32_t FastSingleTrackerRecHit::id_
private

see setId(int32_t id)

Definition at line 50 of file FastSingleTrackerRecHit.h.

Referenced by id(), and setId().

◆ simTrackIds_

std::vector<int32_t> FastSingleTrackerRecHit::simTrackIds_
private

see addSimTrackIds(int32_t)

Definition at line 52 of file FastSingleTrackerRecHit.h.

Referenced by addSimTrackId(), nSimTrackIds(), simTrackEventId(), and simTrackId().

mps_fire.i
i
Definition: mps_fire.py:428
FastSingleTrackerRecHit::simTrackIds_
std::vector< int32_t > simTrackIds_
see addSimTrackIds(int32_t)
Definition: FastSingleTrackerRecHit.h:52
FastSingleTrackerRecHit::id
int32_t id(size_t i=0) const override
Definition: FastSingleTrackerRecHit.h:25
FastSingleTrackerRecHit::simTrackId
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
Definition: FastSingleTrackerRecHit.h:28
FastSingleTrackerRecHit::eventId_
int32_t eventId_
see setEeId(int32_t eeid)
Definition: FastSingleTrackerRecHit.h:51
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
FastSingleTrackerRecHit
Definition: FastSingleTrackerRecHit.h:7
FastTrackerRecHit::FastTrackerRecHit
FastTrackerRecHit()
Definition: FastTrackerRecHit.h:44
FastSingleTrackerRecHit::FastSingleTrackerRecHit
FastSingleTrackerRecHit()
Definition: FastSingleTrackerRecHit.h:9
FastSingleTrackerRecHit::eventId
int32_t eventId(size_t i=0) const override
Definition: FastSingleTrackerRecHit.h:26
FastSingleTrackerRecHit::id_
int32_t id_
see setId(int32_t id)
Definition: FastSingleTrackerRecHit.h:50
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37