10 #ifndef FastTrackerRecHit_H 11 #define FastTrackerRecHit_H 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();
201 return (
one.geographicalId() <
other.geographicalId());
trackerHitRTTI::RTTI rtti(HitType hitType)
SharedInputType
definition of equality via shared input
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
virtual int32_t id(size_t i=0) 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)
virtual size_t nIds() const
virtual int32_t simTrackId(size_t i) const
trackerHitRTTI::RTTI rtti() const
virtual size_t nSimTrackIds() const
bool isFast(TrackingRecHit const &hit)
int dimension() const override
get the dimensions right
virtual int32_t simTrackEventId(size_t i) const
bool canImproveWithTrack() const override
void getKfComponents(KfComponentsHolder &holder) const override
std::vector< const TrackingRecHit * > recHits() const override
OmniClusterRef const & firstClusterRef() const override
bool isPixel() const override
pixel or strip?
void setEnergyLoss(float e)
virtual int32_t recHitCombinationIndex() const
FastTrackerRecHit * clone_(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) const override
FastTrackerRecHit(const LocalPoint &p, const LocalError &e, GeomDet const &idet, fastTrackerRecHitType::HitType hitType)
virtual int32_t eventId(size_t i=0) const
void getKfComponents1D(KfComponentsHolder &holder) const
bool isPixel(HitType hitType)
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
~FastTrackerRecHit() override
virtual void setRecHitCombinationIndex(int32_t recHitCombinationIndex)
FastTrackerRecHit * clone() const override
void getKfComponents2D(KfComponentsHolder &holder) const
LocalPoint myPos_
helps making the hit postion and error persistent
bool operator<(const FastTrackerRecHit &one, const FastTrackerRecHit &other)
std::vector< TrackingRecHit * > recHits() override
bool is2D_
hit is either one dimensional (is2D_ = false) or two dimensions (is2D_ = true)