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  stereoHitFirst_(false),
23  componentMono_(*rMono),
24  componentStereo_(*rStereo)
25 {}
26 
28  GeomDet const & idet,
29  const int simhitId ,
30  const int simtrackId ,
31  const uint32_t eeId,
32  ClusterRef const& cluster ,
33  const int pixelMultiplicityX = -1,
34  const int pixelMultiplicityY = -1):
35  GSSiTrackerRecHit2DLocalPos(pos,err,idet) ,
36  simhitId_(simhitId) ,
37  simtrackId_(simtrackId) ,
38  eeId_(eeId) ,
39  cluster_(cluster),
40  pixelMultiplicityAlpha_(pixelMultiplicityX),
41  pixelMultiplicityBeta_(pixelMultiplicityY),
42  isMatched_(0),
43  stereoHitFirst_(false),
44  componentMono_(),
45  componentStereo_()
46 {}
47 
48 
49 
51  SharedInputType what) const
52  {
53  if (geographicalId() != other->geographicalId()) return false;
54  if(! other->isValid()) return false;
55 
56  const SiTrackerGSMatchedRecHit2D* otherCast = static_cast<const SiTrackerGSMatchedRecHit2D*>(other);
57 
58  return cluster_ == otherCast->cluster();
59  }
60 
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
volatile std::atomic< bool > shutdown_flag false