25 static bool once=
true;
37 std::cout <<
"not a tracker hit! " <<
typeid(*thit).name() << std::endl;
40 std::cout <<
"undef hit! " <<
typeid(*thit).name() << std::endl;
42 if (dynamic_cast<SiPixelRecHit const *>(hit)) {
49 if (dynamic_cast<SiStripRecHit1D const *>(hit)) {
52 std::cout <<
"Strip1D:" << subd <<
" " << (
id&3) <<
" "<< bhit->
isSingle() <<
". ";
56 if (dynamic_cast<SiStripRecHit2D const *>(hit)) {
59 std::cout <<
"Strip2D:" << subd <<
" " << (
id&3) <<
" "<< bhit->
isSingle() <<
". ";
63 if (dynamic_cast<SiStripMatchedRecHit2D const *>(thit)) {
66 std::cout <<
"Strip Matched:" << subd <<
" " << (
id&3) <<
" " << bhit->
isMatched() <<
". " << std::endl;
70 if (dynamic_cast<ProjectedSiStripRecHit2D const *>(thit)) {
73 std::cout <<
"Strip Matched:" << subd <<
" " << (
id&3) <<
" " << bhit->
isProjected() <<
". " << std::endl;
82 std::cout <<
"not sharing with itself! " << what <<
" " 83 <<
typeid(*thit).name() << std::endl;
88 bool doingCheck =
false;
117 if (what ==
all)
return false;
122 std::vector<const TrackingRecHit*> otherHits = other->
recHits();
123 int ncomponents=otherHits.size();
124 if(ncomponents==0)
return false;
125 if(ncomponents==1)
return sharesInput(otherHits.front(),what);
127 if(what ==
all )
return false;
129 for(
int i=0;
i<ncomponents;
i++){
137 std::vector<const TrackingRecHit*> nullvector;
141 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
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
static const int kSubdetOffset
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const final
bool sameDetModule(TrackingRecHit const &hit) const
ClusterPixelRef cluster_pixel() const
uint32_t rawId() const
get the raw id
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
ClusterStripRef cluster_strip() const
OmniClusterRef const & omniCluster() const
bool isMatched(TrackingRecHit const &hit)
bool isNull() const
Checks for null.
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
bool isUndef(TrackingRecHit const &hit)
DetId geographicalId() const