23 clusterRegional_(cluster),
35 if(! other->
isValid())
return false;
37 const std::type_info & otherType =
typeid(*other);
66 std::vector<const TrackingRecHit*> otherHits = other->
recHits();
67 int ncomponents=otherHits.size();
68 if(ncomponents==0)
return false;
69 else if(ncomponents==1)
return sharesInput(otherHits.front(),what);
70 else if (ncomponents>1){
71 if(what ==
all )
return false;
73 for(
int i=0;
i<ncomponents;
i++){
SharedInputType
definition of equality via shared input
ClusterRegionalRef clusterRegional_
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
ClusterRegionalRef const & cluster_regional() const
static const int kSubdetOffset
uint32_t rawId() const
get the raw id
bool isNonnull() const
Checks for non-null.
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
ClusterRef const & cluster() const
ClusterRegionalRef const & cluster_regional() const
ClusterRef const & cluster() const
DetId geographicalId() const