CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 (DetId id, trackerHitRTTI::RTTI rt)
 
 BaseTrackerRecHit (const GeomDet &idet, trackerHitRTTI::RTTI rt)
 
 BaseTrackerRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, 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 (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 ()
 

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
< 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, 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::FastSingleTrackerRecHit ( )
inline

Definition at line 9 of file FastSingleTrackerRecHit.h.

Referenced by clone().

9 : FastTrackerRecHit(), id_(-1), eventId_(0) {}
int32_t eventId_
see setEeId(int32_t eeid)
int32_t id_
see setId(int32_t id)
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) {}
int32_t eventId_
see setEeId(int32_t eeid)
int32_t id_
see setId(int32_t id)

Member Function Documentation

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.

References simTrackIds_.

37 { simTrackIds_.push_back(simTrackId); }
std::vector< int32_t > simTrackIds_
see addSimTrackIds(int32_t)
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
FastSingleTrackerRecHit* FastSingleTrackerRecHit::clone ( void  ) const
inlineoverridevirtual
int32_t FastSingleTrackerRecHit::eventId ( size_t  i = 0) const
inlineoverridevirtual

Reimplemented from FastTrackerRecHit.

Definition at line 26 of file FastSingleTrackerRecHit.h.

References eventId_, and mps_fire::i.

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

26 { return i == 0 ? eventId_ : -1; }
int32_t eventId_
see setEeId(int32_t eeid)
int32_t FastSingleTrackerRecHit::id ( size_t  i = 0) const
inlineoverridevirtual

Reimplemented from FastTrackerRecHit.

Definition at line 25 of file FastSingleTrackerRecHit.h.

References mps_fire::i, and id_.

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

25 { return i == 0 ? id_ : -1; }
int32_t id_
see setId(int32_t id)
size_t FastSingleTrackerRecHit::nIds ( ) const
inlineoverridevirtual

Reimplemented from FastTrackerRecHit.

Definition at line 24 of file FastSingleTrackerRecHit.h.

24 { return 1; }
size_t FastSingleTrackerRecHit::nSimTrackIds ( ) const
inlineoverridevirtual
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.

References eventId(), and eventId_.

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

47 { eventId_ = eventId; }
int32_t eventId_
see setEeId(int32_t eeid)
int32_t eventId(size_t i=0) const override
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.

References id(), and id_.

42 { id_ = id; }
int32_t id(size_t i=0) const override
int32_t id_
see setId(int32_t id)
int32_t FastSingleTrackerRecHit::simTrackEventId ( size_t  i) const
inlineoverridevirtual
int32_t FastSingleTrackerRecHit::simTrackId ( size_t  i) const
inlineoverridevirtual

Member Data Documentation

int32_t FastSingleTrackerRecHit::eventId_
private

see setEeId(int32_t eeid)

Definition at line 51 of file FastSingleTrackerRecHit.h.

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

int32_t FastSingleTrackerRecHit::id_
private

see setId(int32_t id)

Definition at line 50 of file FastSingleTrackerRecHit.h.

Referenced by id(), and setId().

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().