#include <SiTrackerGSMatchedRecHit2D.h>
Public Types | |
typedef edm::Ref < FastTrackerClusterCollection, FastTrackerCluster > | ClusterRef |
typedef edm::RefProd < FastTrackerClusterCollection > | ClusterRefProd |
Public Member Functions | |
virtual SiTrackerGSMatchedRecHit2D * | clone () const |
ClusterRef const & | cluster () const |
const uint32_t & | eeId () const |
const bool & | isMatched () const |
const SiTrackerGSRecHit2D * | monoHit () const |
void | setClusterRef (const ClusterRef &ref) |
virtual bool | sharesInput (const TrackingRecHit *other, SharedInputType what) const |
const int & | simhitId () const |
const int & | simMultX () const |
const int & | simMultY () const |
const int & | simtrackId () const |
SiTrackerGSMatchedRecHit2D (const LocalPoint &, const LocalError &, const DetId &, const int simhitId, const int simtrackId, const uint32_t eeId, ClusterRef const &cluster, const int pixelMultiplicityX, const int pixelMultiplicityY, const bool isMatched, const SiTrackerGSRecHit2D *rMono, const SiTrackerGSRecHit2D *rStereo) | |
SiTrackerGSMatchedRecHit2D () | |
SiTrackerGSMatchedRecHit2D (const LocalPoint &, const LocalError &, const DetId &, const int simhitId, const int simtrackId, const uint32_t eeId, ClusterRef const &cluster, const int pixelMultiplicityX, const int pixelMultiplicityY) | |
const SiTrackerGSRecHit2D * | stereoHit () const |
~SiTrackerGSMatchedRecHit2D () | |
Private Attributes | |
ClusterRef | cluster_ |
SiTrackerGSRecHit2D | componentMono_ |
SiTrackerGSRecHit2D | componentStereo_ |
uint32_t const | eeId_ |
bool | isMatched_ |
int const | pixelMultiplicityAlpha_ |
int const | pixelMultiplicityBeta_ |
int const | simhitId_ |
int const | simtrackId_ |
Definition at line 8 of file SiTrackerGSMatchedRecHit2D.h.
typedef edm::Ref<FastTrackerClusterCollection, FastTrackerCluster > SiTrackerGSMatchedRecHit2D::ClusterRef |
Definition at line 25 of file SiTrackerGSMatchedRecHit2D.h.
Definition at line 26 of file SiTrackerGSMatchedRecHit2D.h.
SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D | ( | ) | [inline] |
Definition at line 12 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by clone().
: GSSiTrackerRecHit2DLocalPos(), simhitId_(), simtrackId_(), eeId_(), cluster_(), pixelMultiplicityAlpha_(), pixelMultiplicityBeta_(), isMatched_(), componentMono_(), componentStereo_() {}
SiTrackerGSMatchedRecHit2D::~SiTrackerGSMatchedRecHit2D | ( | ) | [inline] |
Definition at line 23 of file SiTrackerGSMatchedRecHit2D.h.
{}
SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const DetId & | id, | ||
const int | simhitId, | ||
const int | simtrackId, | ||
const uint32_t | eeId, | ||
ClusterRef const & | cluster, | ||
const int | pixelMultiplicityX = -1 , |
||
const int | pixelMultiplicityY = -1 , |
||
const bool | isMatched = false , |
||
const SiTrackerGSRecHit2D * | rMono = 0 , |
||
const SiTrackerGSRecHit2D * | rStereo = 0 |
||
) |
Definition at line 3 of file SiTrackerGSMatchedRecHit2D.cc.
: GSSiTrackerRecHit2DLocalPos(pos,err,id) , simhitId_(simhitId) , simtrackId_(simtrackId) , eeId_(eeId) , cluster_(cluster), pixelMultiplicityAlpha_(pixelMultiplicityX), pixelMultiplicityBeta_(pixelMultiplicityY), isMatched_(isMatched), componentMono_(*rMono), componentStereo_(*rStereo) {}
SiTrackerGSMatchedRecHit2D::SiTrackerGSMatchedRecHit2D | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const DetId & | id, | ||
const int | simhitId, | ||
const int | simtrackId, | ||
const uint32_t | eeId, | ||
ClusterRef const & | cluster, | ||
const int | pixelMultiplicityX = -1 , |
||
const int | pixelMultiplicityY = -1 |
||
) |
Definition at line 26 of file SiTrackerGSMatchedRecHit2D.cc.
: GSSiTrackerRecHit2DLocalPos(pos,err,id) , simhitId_(simhitId) , simtrackId_(simtrackId) , eeId_(eeId) , cluster_(cluster), pixelMultiplicityAlpha_(pixelMultiplicityX), pixelMultiplicityBeta_(pixelMultiplicityY), isMatched_(0), componentMono_(), componentStereo_() {}
virtual SiTrackerGSMatchedRecHit2D* SiTrackerGSMatchedRecHit2D::clone | ( | void | ) | const [inline, virtual] |
Implements RecHit2DLocalPos.
Definition at line 52 of file SiTrackerGSMatchedRecHit2D.h.
References SiTrackerGSMatchedRecHit2D().
{return new SiTrackerGSMatchedRecHit2D( * this); }
ClusterRef const& SiTrackerGSMatchedRecHit2D::cluster | ( | ) | const [inline] |
Definition at line 63 of file SiTrackerGSMatchedRecHit2D.h.
References cluster_.
Referenced by sharesInput().
{ return cluster_;}
const uint32_t& SiTrackerGSMatchedRecHit2D::eeId | ( | ) | const [inline] |
Definition at line 56 of file SiTrackerGSMatchedRecHit2D.h.
References eeId_.
Referenced by TrackerHitAssociator::associateGSMatchedRecHit().
{ return eeId_;}
const bool& SiTrackerGSMatchedRecHit2D::isMatched | ( | ) | const [inline] |
Definition at line 59 of file SiTrackerGSMatchedRecHit2D.h.
References isMatched_.
Referenced by TrackCandidateProducer::produce().
{ return isMatched_;}
const SiTrackerGSRecHit2D* SiTrackerGSMatchedRecHit2D::monoHit | ( | ) | const [inline] |
Definition at line 60 of file SiTrackerGSMatchedRecHit2D.h.
References componentMono_.
Referenced by TrackCandidateProducer::addSplitHits().
{ return &componentMono_;}
void SiTrackerGSMatchedRecHit2D::setClusterRef | ( | const ClusterRef & | ref | ) | [inline] |
Definition at line 64 of file SiTrackerGSMatchedRecHit2D.h.
References cluster_.
{ cluster_ = ref; }
bool SiTrackerGSMatchedRecHit2D::sharesInput | ( | const TrackingRecHit * | other, |
SharedInputType | what | ||
) | const [virtual] |
Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise. The second argument specifies how much sharing is needed in order to return true: the value "all" means that all inputs of the two hits must be identical; the value "some" means that at least one of the inputs is in common.
Reimplemented from GSSiTrackerRecHit2DLocalPos.
Definition at line 48 of file SiTrackerGSMatchedRecHit2D.cc.
References cluster(), cluster_, TrackingRecHit::geographicalId(), and TrackingRecHit::isValid().
{ if (geographicalId() != other->geographicalId()) return false; if(! other->isValid()) return false; const SiTrackerGSMatchedRecHit2D* otherCast = static_cast<const SiTrackerGSMatchedRecHit2D*>(other); return cluster_ == otherCast->cluster(); }
const int& SiTrackerGSMatchedRecHit2D::simhitId | ( | ) | const [inline] |
Definition at line 54 of file SiTrackerGSMatchedRecHit2D.h.
References simhitId_.
{ return simhitId_;}
const int& SiTrackerGSMatchedRecHit2D::simMultX | ( | ) | const [inline] |
Definition at line 57 of file SiTrackerGSMatchedRecHit2D.h.
References pixelMultiplicityAlpha_.
{ return pixelMultiplicityAlpha_;}
const int& SiTrackerGSMatchedRecHit2D::simMultY | ( | ) | const [inline] |
Definition at line 58 of file SiTrackerGSMatchedRecHit2D.h.
References pixelMultiplicityBeta_.
{ return pixelMultiplicityBeta_;}
const int& SiTrackerGSMatchedRecHit2D::simtrackId | ( | ) | const [inline] |
Definition at line 55 of file SiTrackerGSMatchedRecHit2D.h.
References simtrackId_.
Referenced by TrackerHitAssociator::associateGSMatchedRecHit(), FastTrackMerger::findId(), TrackCandidateProducer::findId(), PFSimParticleProducer::getSimIDs(), TrackCandidateProducer::produce(), FastTSGFromL2Muon::produce(), and FastTSGFromIOHit::trackerSeeds().
{ return simtrackId_;}
const SiTrackerGSRecHit2D* SiTrackerGSMatchedRecHit2D::stereoHit | ( | ) | const [inline] |
Definition at line 61 of file SiTrackerGSMatchedRecHit2D.h.
References componentStereo_.
Referenced by TrackCandidateProducer::addSplitHits().
{ return &componentStereo_;}
Definition at line 73 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by cluster(), setClusterRef(), and sharesInput().
Definition at line 78 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by monoHit().
Definition at line 79 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by stereoHit().
uint32_t const SiTrackerGSMatchedRecHit2D::eeId_ [private] |
Definition at line 72 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by eeId().
bool SiTrackerGSMatchedRecHit2D::isMatched_ [private] |
Definition at line 76 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by isMatched().
int const SiTrackerGSMatchedRecHit2D::pixelMultiplicityAlpha_ [private] |
Definition at line 74 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by simMultX().
int const SiTrackerGSMatchedRecHit2D::pixelMultiplicityBeta_ [private] |
Definition at line 75 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by simMultY().
int const SiTrackerGSMatchedRecHit2D::simhitId_ [private] |
Definition at line 70 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by simhitId().
int const SiTrackerGSMatchedRecHit2D::simtrackId_ [private] |
Definition at line 71 of file SiTrackerGSMatchedRecHit2D.h.
Referenced by simtrackId().