11 #if defined(DO_INTERNAL_CHECKS) 27 static bool once=
true;
36 if (trackerHitRTTI::isNotFromDet(*thit)) {
39 std::cout <<
"NotFromDet:" << subd <<
" " << (
id&3) <<
" "<< thit->
dimension() <<
". " << std::endl;
47 std::cout <<
"not a tracker hit! " <<
typeid(*thit).name() << std::endl;
50 std::cout <<
"undef hit! " <<
typeid(*thit).name() << std::endl;
52 if (dynamic_cast<SiPixelRecHit const *>(hit)) {
59 if (dynamic_cast<SiStripRecHit1D const *>(hit)) {
62 std::cout <<
"Strip1D:" << subd <<
" " << (
id&3) <<
" "<< bhit->
isSingle() <<
". ";
66 if (dynamic_cast<SiStripRecHit2D const *>(hit)) {
69 std::cout <<
"Strip2D:" << subd <<
" " << (
id&3) <<
" "<< bhit->
isSingle() <<
". ";
73 if (dynamic_cast<SiStripMatchedRecHit2D const *>(thit)) {
76 std::cout <<
"Strip Matched:" << subd <<
" " << (
id&3) <<
" " << bhit->
isMatched() <<
". " << std::endl;
80 if (dynamic_cast<ProjectedSiStripRecHit2D const *>(thit)) {
83 std::cout <<
"Strip Matched:" << subd <<
" " << (
id&3) <<
" " << bhit->
isProjected() <<
". " << std::endl;
92 std::cout <<
"not sharing with itself! " << what <<
" " 93 <<
typeid(*thit).name() << std::endl;
98 bool doingCheck =
false;
114 #if defined(DO_INTERNAL_CHECKS) 115 verify(
this); verify(other);
116 if (!doingCheck && (other!=
this)) checkSelf(
this,other);
128 if (what ==
all)
return false;
133 std::vector<const TrackingRecHit*> otherHits = other->
recHits();
134 int ncomponents=otherHits.size();
135 if(ncomponents==0)
return false;
136 if(ncomponents==1)
return sharesInput(otherHits.front(),what);
138 if(what ==
all )
return false;
140 for(
int i=0;
i<ncomponents;
i++){
148 std::vector<const TrackingRecHit*> nullvector;
152 std::vector<TrackingRecHit*> nullvector;
SharedInputType
definition of equality via shared input
unsigned int rawIndex() const
bool isSingleType(TrackingRecHit const &hit)
constexpr uint32_t rawId() const
get the raw id
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
static const int kSubdetOffset
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const final
bool sameDetModule(TrackingRecHit const &hit) const
ClusterPixelRef cluster_pixel() const
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
virtual int dimension() const =0
ClusterStripRef cluster_strip() const
OmniClusterRef const & omniCluster() const
bool isMatched(TrackingRecHit const &hit)
std::vector< const TrackingRecHit * > recHits() const override
Access to component RecHits (if any)
bool isNull() const
Checks for null.
bool isUndef(TrackingRecHit const &hit)
bool sharesInput(const TrackingRecHit *other, SharedInputType what) const override
DetId geographicalId() const