CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiTrackerGSMatchedRecHit2D.cc
Go to the documentation of this file.
2 
4  GeomDet const & idet,
5  const int simhitId ,
6  const int simtrackId ,
7  const uint32_t eeId,
8  ClusterRef const& cluster ,
9  const int pixelMultiplicityX = -1,
10  const int pixelMultiplicityY = -1,
11  const bool isMatched = false,
12  const SiTrackerGSRecHit2D* rMono = 0 ,
13  const SiTrackerGSRecHit2D* rStereo= 0 ):
14  GSSiTrackerRecHit2DLocalPos(pos,err,idet) ,
15  simhitId_(simhitId) ,
16  simtrackId_(simtrackId) ,
17  eeId_(eeId) ,
18  cluster_(cluster),
19  pixelMultiplicityAlpha_(pixelMultiplicityX),
20  pixelMultiplicityBeta_(pixelMultiplicityY),
21  isMatched_(isMatched),
22  componentMono_(*rMono),
23  componentStereo_(*rStereo)
24 {}
25 
27  GeomDet const & idet,
28  const int simhitId ,
29  const int simtrackId ,
30  const uint32_t eeId,
31  ClusterRef const& cluster ,
32  const int pixelMultiplicityX = -1,
33  const int pixelMultiplicityY = -1):
34  GSSiTrackerRecHit2DLocalPos(pos,err,idet) ,
35  simhitId_(simhitId) ,
36  simtrackId_(simtrackId) ,
37  eeId_(eeId) ,
38  cluster_(cluster),
39  pixelMultiplicityAlpha_(pixelMultiplicityX),
40  pixelMultiplicityBeta_(pixelMultiplicityY),
41  isMatched_(0),
42  componentMono_(),
43  componentStereo_()
44 {}
45 
46 
47 
49  SharedInputType what) const
50  {
51  if (geographicalId() != other->geographicalId()) return false;
52  if(! other->isValid()) return false;
53 
54  const SiTrackerGSMatchedRecHit2D* otherCast = static_cast<const SiTrackerGSMatchedRecHit2D*>(other);
55 
56  return cluster_ == otherCast->cluster();
57  }
58 
SharedInputType
definition of equality via shared input
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
bool isMatched(TrackingRecHit const &hit)
ClusterRef const & cluster() const
bool isValid() const
DetId geographicalId() const