10 #ifndef FastTrackerRecHit_H
11 #define FastTrackerRecHit_H
15 namespace fastTrackerRecHitType {
59 is2D_(fastTrackerRecHitType::
is2D(hitType)),
94 virtual size_t nIds()
const {
return 0; }
95 virtual int32_t
id(
size_t i = 0)
const {
return -1; }
96 virtual int32_t
eventId(
size_t i = 0)
const {
return -1; }
118 std::vector<const TrackingRecHit*>
recHits()
const override {
return std::vector<TrackingRecHit const*>(); }
122 std::vector<TrackingRecHit*>
recHits()
override {
return std::vector<TrackingRecHit*>(); }
146 if (this->
nIds() == 1) {
147 if (otherCast->
nIds() == 1) {
148 return this->
sameId(otherCast, 0, 0);
153 return (this->
sameId(otherCast, 0, 0) || this->
sameId(otherCast, 0, 1));
157 if (otherCast->
nIds() == 1) {
161 return (this->
sameId(otherCast, 0, 0) || this->
sameId(otherCast, 1, 0));
165 return (this->
sameId(otherCast, 0, 0) && this->
sameId(otherCast, 1, 1));
167 return (this->
sameId(otherCast, 0, 0) || this->
sameId(otherCast, 1, 1));
194 return this->
clone();
trackerHitRTTI::RTTI rtti(HitType hitType)
SharedInputType
definition of equality via shared input
virtual size_t nIds() const
void set2D(bool is2D=true)
const bool isPixel_
hit is either on pixel modul (isPixel_ = true) or strip module (isPixel_ = false) ...
bool sameId(const FastTrackerRecHit *other, size_t i=0, size_t j=0) const
OmniClusterRef const & firstClusterRef() const override
virtual int32_t simTrackEventId(size_t i) const
uint32_t recHitCombinationIndex_
virtual void setEventId(int32_t eventId)
LocalError myErr_
helps making the hit postion and error persistent
void load()
helps making the hit postion and error persistent
void store()
helps making the hit postion and error persistent
bool is2D(HitType hitType)
void getKfComponents2D(KfComponentsHolder &holder) const
virtual int32_t simTrackId(size_t i) const
virtual int32_t recHitCombinationIndex() const
bool isFast(TrackingRecHit const &hit)
int dimension() const override
get the dimensions right
bool canImproveWithTrack() const override
void getKfComponents(KfComponentsHolder &holder) const override
std::vector< const TrackingRecHit * > recHits() const override
bool isPixel() const override
pixel or strip?
virtual size_t nSimTrackIds() const
void setEnergyLoss(float e)
void getKfComponents1D(KfComponentsHolder &holder) const
FastTrackerRecHit * clone_(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
FastTrackerRecHit(const LocalPoint &p, const LocalError &e, GeomDet const &idet, fastTrackerRecHitType::HitType hitType)
virtual int32_t eventId(size_t i=0) const
bool isPixel(HitType hitType)
virtual int32_t id(size_t i=0) const
trackerHitRTTI::RTTI rtti() const
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
~FastTrackerRecHit() override
virtual void setRecHitCombinationIndex(int32_t recHitCombinationIndex)
DetId geographicalId() const
FastTrackerRecHit * clone() const override
LocalPoint myPos_
helps making the hit postion and error persistent
std::vector< TrackingRecHit * > recHits() override
bool is2D_
hit is either one dimensional (is2D_ = false) or two dimensions (is2D_ = true)