Go to the documentation of this file.00001 #include "DataFormats/TrackerRecHit2D/interface/SiTrackerGSMatchedRecHit2D.h"
00002
00003 SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D( const LocalPoint& pos, const LocalError& err,
00004 const DetId& id,
00005 const int simhitId ,
00006 const int simtrackId ,
00007 const uint32_t eeId,
00008 ClusterRef const& cluster ,
00009 const int pixelMultiplicityX = -1,
00010 const int pixelMultiplicityY = -1,
00011 const bool isMatched = false,
00012 const SiTrackerGSRecHit2D* rMono = 0 ,
00013 const SiTrackerGSRecHit2D* rStereo= 0 ):
00014 GSSiTrackerRecHit2DLocalPos(pos,err,id) ,
00015 simhitId_(simhitId) ,
00016 simtrackId_(simtrackId) ,
00017 eeId_(eeId) ,
00018 cluster_(cluster),
00019 pixelMultiplicityAlpha_(pixelMultiplicityX),
00020 pixelMultiplicityBeta_(pixelMultiplicityY),
00021 isMatched_(isMatched),
00022 componentMono_(*rMono),
00023 componentStereo_(*rStereo)
00024 {}
00025
00026 SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D( const LocalPoint& pos, const LocalError& err,
00027 const DetId& id,
00028 const int simhitId ,
00029 const int simtrackId ,
00030 const uint32_t eeId,
00031 ClusterRef const& cluster ,
00032 const int pixelMultiplicityX = -1,
00033 const int pixelMultiplicityY = -1):
00034 GSSiTrackerRecHit2DLocalPos(pos,err,id) ,
00035 simhitId_(simhitId) ,
00036 simtrackId_(simtrackId) ,
00037 eeId_(eeId) ,
00038 cluster_(cluster),
00039 pixelMultiplicityAlpha_(pixelMultiplicityX),
00040 pixelMultiplicityBeta_(pixelMultiplicityY),
00041 isMatched_(0),
00042 componentMono_(),
00043 componentStereo_()
00044 {}
00045
00046
00047
00048 bool SiTrackerGSMatchedRecHit2D::sharesInput( const TrackingRecHit* other,
00049 SharedInputType what) const
00050 {
00051 if (geographicalId() != other->geographicalId()) return false;
00052 if(! other->isValid()) return false;
00053
00054 const SiTrackerGSMatchedRecHit2D* otherCast = static_cast<const SiTrackerGSMatchedRecHit2D*>(other);
00055
00056 return cluster_ == otherCast->cluster();
00057 }
00058