27 static bool once=
true;
39 std::cout <<
"not a tracker hit! " <<
typeid(*thit).name() << std::endl;
42 std::cout <<
"undef hit! " <<
typeid(*thit).name() << std::endl;
44 if (dynamic_cast<SiPixelRecHit const *>(hit)) {
51 if (dynamic_cast<SiStripRecHit1D const *>(hit)) {
54 std::cout <<
"Strip1D:" << subd <<
" " << (
id&3) <<
" "<< bhit->
isSingle() <<
". ";
58 if (dynamic_cast<SiStripRecHit2D const *>(hit)) {
61 std::cout <<
"Strip2D:" << subd <<
" " << (
id&3) <<
" "<< bhit->
isSingle() <<
". ";
65 if (dynamic_cast<SiStripMatchedRecHit2D const *>(thit)) {
68 std::cout <<
"Strip Matched:" << subd <<
" " << (
id&3) <<
" " << bhit->
isMatched() <<
". " << std::endl;
72 if (dynamic_cast<ProjectedSiStripRecHit2D const *>(thit)) {
75 std::cout <<
"Strip Matched:" << subd <<
" " << (
id&3) <<
" " << bhit->
isProjected() <<
". " << std::endl;
84 std::cout <<
"not sharing with itself! " << what <<
" "
85 <<
typeid(*thit).name() << std::endl;
90 bool doingCheck =
false;
119 if (what ==
all)
return false;
120 return static_cast<SiStripMatchedRecHit2D
const &
>(*other).sharesInput(*
this);
124 std::vector<const TrackingRecHit*> otherHits = other->
recHits();
125 int ncomponents=otherHits.size();
126 if(ncomponents==0)
return false;
127 if(ncomponents==1)
return sharesInput(otherHits.front(),what);
129 if(what ==
all )
return false;
131 for(
int i=0;
i<ncomponents;
i++){
139 std::vector<const TrackingRecHit*> nullvector;
143 std::vector<TrackingRecHit*> nullvector;
SharedInputType
definition of equality via shared input
unsigned int rawIndex() const
bool isSingleType(TrackingRecHit const &hit)
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
static const int kSubdetOffset
bool sameDetModule(TrackingRecHit const &hit) const
ClusterPixelRef cluster_pixel() const
uint32_t rawId() const
get the raw id
bool isNull() const
Checks for null.
ClusterStripRef cluster_strip() const
OmniClusterRef const & omniCluster() const
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
bool isMatched(TrackingRecHit const &hit)
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const GCC11_FINAL
bool isUndef(TrackingRecHit const &hit)
DetId geographicalId() const