10 #ifndef FastTrackerRecHit_H 11 #define FastTrackerRecHit_H 46 , recHitCombinationIndex_(-1)
60 , recHitCombinationIndex_(-1)
71 int dimension()
const override {
return is2D_ ? 2 : 1;}
79 virtual size_t nIds()
const {
return 0;}
80 virtual int32_t
id(
size_t i = 0)
const {
return -1;}
81 virtual int32_t
eventId(
size_t i = 0)
const {
return -1;}
89 bool isPixel()
const override {
return isPixel_;}
101 virtual std::vector<const TrackingRecHit*>
recHits()
const override {
return std::vector<TrackingRecHit const*>();}
105 virtual std::vector<TrackingRecHit*>
recHits()
override {
return std::vector<TrackingRecHit*>();}
128 if(this->nIds() == 1){
129 if(otherCast->
nIds() == 1){
130 return this->sameId(otherCast,0,0);
137 return(this->sameId(otherCast,0,0) || this->sameId(otherCast,0,1));
142 if(otherCast->
nIds() == 1){
147 return(this->sameId(otherCast,0,0) || this->sameId(otherCast,1,0));
152 return(this->sameId(otherCast,0,0) && this->sameId(otherCast,1,1));
155 return(this->sameId(otherCast,0,0) || this->sameId(otherCast,1,1));
169 void store() { myPos_=pos_; myErr_=err_;}
170 void load() { pos_=myPos_; err_=myErr_;}
177 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
virtual FastTrackerRecHit * clone(TkCloner const &cloner, TrajectoryStateOnSurface const &tsos) 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)
virtual int32_t simTrackId(size_t i) const
virtual int32_t recHitCombinationIndex() const
bool isFast(TrackingRecHit const &hit)
virtual bool canImproveWithTrack() const override
int dimension() const override
get the dimensions right
virtual size_t nSimTrackIds() const
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
bool isPixel() const override
pixel or strip?
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
void getKfComponents(KfComponentsHolder &holder) const override
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
virtual void setRecHitCombinationIndex(int32_t recHitCombinationIndex)
DetId geographicalId() const
virtual std::vector< const TrackingRecHit * > recHits() const override
virtual FastTrackerRecHit * clone() const override
virtual std::vector< TrackingRecHit * > recHits() override
LocalPoint myPos_
helps making the hit postion and error persistent
bool operator<(const FastTrackerRecHit &one, const FastTrackerRecHit &other)
bool is2D_
hit is either one dimensional (is2D_ = false) or two dimensions (is2D_ = true)