#include <SiStripRecHit2D.h>
Public Types | |
typedef edm::Ref < edmNew::DetSetVector < SiStripCluster > , SiStripCluster > | ClusterRef |
typedef edm::Ref < edm::LazyGetter < SiStripCluster > , SiStripCluster, edm::FindValue< SiStripCluster > > | ClusterRegionalRef |
Public Member Functions | |
virtual SiStripRecHit2D * | clone () const |
ClusterRef const & | cluster () const |
ClusterRegionalRef const & | cluster_regional () const |
void | setClusterRef (ClusterRef const &ref) |
void | setClusterRegionalRef (ClusterRegionalRef const &ref) |
void | setSigmaPitch (double sigmap) const |
virtual bool | sharesInput (const TrackingRecHit *other, SharedInputType what) const |
double | sigmaPitch () const |
SiStripRecHit2D () | |
SiStripRecHit2D (const LocalPoint &, const LocalError &, const DetId &, ClusterRegionalRef const &cluster) | |
SiStripRecHit2D (const LocalPoint &, const LocalError &, const DetId &, ClusterRef const &cluster) | |
~SiStripRecHit2D () | |
Private Attributes | |
ClusterRef | cluster_ |
ClusterRegionalRef | clusterRegional_ |
double | sigmaPitch_ |
cache for the matcher.... |
Definition at line 10 of file SiStripRecHit2D.h.
Definition at line 18 of file SiStripRecHit2D.h.
typedef edm::Ref< edm::LazyGetter<SiStripCluster>, SiStripCluster, edm::FindValue<SiStripCluster> > SiStripRecHit2D::ClusterRegionalRef |
Definition at line 23 of file SiStripRecHit2D.h.
SiStripRecHit2D::SiStripRecHit2D | ( | ) | [inline] |
Definition at line 13 of file SiStripRecHit2D.h.
Referenced by clone().
: BaseSiTrackerRecHit2DLocalPos(),cluster_(),clusterRegional_(), sigmaPitch_(-1.){}
SiStripRecHit2D::~SiStripRecHit2D | ( | ) | [inline] |
Definition at line 16 of file SiStripRecHit2D.h.
{}
SiStripRecHit2D::SiStripRecHit2D | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const DetId & | id, | ||
ClusterRef const & | cluster | ||
) |
Definition at line 7 of file SiStripRecHit2D.cc.
: BaseSiTrackerRecHit2DLocalPos(pos,err,id), cluster_(cluster), clusterRegional_(), sigmaPitch_(-1.) {}
SiStripRecHit2D::SiStripRecHit2D | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const DetId & | id, | ||
ClusterRegionalRef const & | cluster | ||
) |
Definition at line 18 of file SiStripRecHit2D.cc.
: BaseSiTrackerRecHit2DLocalPos(pos,err,id), cluster_(), clusterRegional_(cluster), sigmaPitch_(-1.) {}
virtual SiStripRecHit2D* SiStripRecHit2D::clone | ( | void | ) | const [inline, virtual] |
Implements RecHit2DLocalPos.
Definition at line 28 of file SiStripRecHit2D.h.
References SiStripRecHit2D().
{return new SiStripRecHit2D( * this); }
ClusterRef const& SiStripRecHit2D::cluster | ( | ) | const [inline] |
Definition at line 32 of file SiStripRecHit2D.h.
References cluster_.
Referenced by fireworks::addSiStripClusters(), SiStripQualityHotStripIdentifier::algoAnalyze(), SiStripGainCosmicCalculator::algoAnalyze(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), SiStripElectronAnalyzer::analyze(), SiStripRecHitsValid::analyze(), AlignmentStats::analyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), TrackerHitAssociator::associateSimpleRecHit(), SimpleCosmicBONSeeder::checkCharge(), AlignmentTrackSelector::checkPrescaledHits(), reco::modules::TrackerTrackHitFilter::checkStoN(), TSiStripMatchedRecHit::clone(), TSiStripRecHit2DLocalPos::clone(), ProjectedRecHit2D::clone(), cms::clusterProduct(), helper::MuonCollectionStoreManager::clusterRefsOK(), helper::ClusterStorer::ClusterHitRecord< SiStripRecHit2D::ClusterRef >rekey(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), JPTJetAnalyzer::fillSiStripHitSoNForSingleHit(), GlobalTrajectoryBuilderBase::fixTEC(), ClusterShapeHitFilter::getSizes(), TrackerDpgAnalysis::insertMeasurement(), CalibrationTrackSelector::isOkCharge(), AlignmentTrackSelector::isOkChargeStripHit(), TrackHitFilter::keepThisHit(), HitComparator::less(), DetIdLess::operator()(), TrackClusterRemover::process(), DeDxEstimatorProducer::produce(), ShallowRechitClustersProducer::produce(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), ShallowTrackClustersProducer::produce(), ShallowGainCalibration::produce(), DeDxDiscriminatorProducer::produce(), ProjectedRecHit2D::ProjectedRecHit2D(), ClusterRemovalRefSetter::reKey(), HIPAlignmentAlgorithm::run(), sharesInput(), SiStripRecHit1D::sharesInput(), SiStripRecHit1D::SiStripRecHit1D(), DeDxTools::trajectoryRawHits(), and TSiStripRecHit2DLocalPos::TSiStripRecHit2DLocalPos().
{ return cluster_;}
ClusterRegionalRef const& SiStripRecHit2D::cluster_regional | ( | ) | const [inline] |
Definition at line 30 of file SiStripRecHit2D.h.
References clusterRegional_.
Referenced by TrackerHitAssociator::associateSimpleRecHit(), SimpleCosmicBONSeeder::checkCharge(), TSiStripMatchedRecHit::clone(), TSiStripRecHit2DLocalPos::clone(), ProjectedRecHit2D::clone(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), JPTJetAnalyzer::fillSiStripHitSoNForSingleHit(), GlobalTrajectoryBuilderBase::fixTEC(), ProjectedRecHit2D::ProjectedRecHit2D(), sharesInput(), SiStripRecHit1D::sharesInput(), SiStripRecHit1D::SiStripRecHit1D(), and TSiStripRecHit2DLocalPos::TSiStripRecHit2DLocalPos().
{ return clusterRegional_;}
void SiStripRecHit2D::setClusterRef | ( | ClusterRef const & | ref | ) | [inline] |
Definition at line 34 of file SiStripRecHit2D.h.
References cluster_.
Referenced by helper::ClusterStorer::ClusterHitRecord< SiStripRecHit2D::ClusterRef >rekey(), and ClusterRemovalRefSetter::reKey().
{ cluster_ = ref; }
void SiStripRecHit2D::setClusterRegionalRef | ( | ClusterRegionalRef const & | ref | ) | [inline] |
Definition at line 35 of file SiStripRecHit2D.h.
References clusterRegional_.
{ clusterRegional_ = ref; }
void SiStripRecHit2D::setSigmaPitch | ( | double | sigmap | ) | const [inline] |
Definition at line 40 of file SiStripRecHit2D.h.
References sigmaPitch_.
Referenced by SiStripRecHitMatcher::match().
{ sigmaPitch_=sigmap;}
bool SiStripRecHit2D::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 TrackingRecHit.
Definition at line 28 of file SiStripRecHit2D.cc.
References TrackingRecHit::all, SiStripRecHit1D::cluster(), cluster(), cluster_, SiStripRecHit1D::cluster_regional(), cluster_regional(), clusterRegional_, TrackingRecHit::geographicalId(), i, edm::Ref< C, T, F >::isNonnull(), TrackingRecHit::isValid(), DetId::kSubdetOffset, DetId::rawId(), and TrackingRecHit::recHits().
Referenced by ProjectedSiStripRecHit2D::sharesInput(), and SiStripMatchedRecHit2D::sharesInput().
{ //here we exclude non si-strip subdetectors if( ((geographicalId().rawId()) >> (DetId::kSubdetOffset) ) != ( (other->geographicalId().rawId())>> (DetId::kSubdetOffset)) ) return false; //Protection against invalid hits if(! other->isValid()) return false; const std::type_info & otherType = typeid(*other); if (otherType == typeid(SiStripRecHit2D)) { const SiStripRecHit2D* otherCast = static_cast<const SiStripRecHit2D*>(other); // as 'null == null' is true, we can't just "or" the two equality tests: one of the two refs is always null! (gpetrucc) if (cluster_.isNonnull()) { return (cluster_ == otherCast->cluster()); } else { return (clusterRegional_ == otherCast->cluster_regional()); } } else if (otherType == typeid(SiStripRecHit1D)) { const SiStripRecHit1D* otherCast = static_cast<const SiStripRecHit1D*>(other); // as 'null == null' is true, we can't just "or" the two equality tests: one of the two refs is always null! (gpetrucc) if (cluster_.isNonnull()) { return (cluster_ == otherCast->cluster()); } else { return (clusterRegional_ == otherCast->cluster_regional()); } } else if (otherType == typeid(ProjectedSiStripRecHit2D)) { const SiStripRecHit2D* otherCast = & (static_cast<const ProjectedSiStripRecHit2D*>(other)->originalHit()); // as 'null == null' is true, we can't just "or" the two equality tests: one of the two refs is always null! (gpetrucc) if (cluster_.isNonnull()) { return (cluster_ == otherCast->cluster()); } else { return (clusterRegional_ == otherCast->cluster_regional()); } } else if ((otherType == typeid(SiStripMatchedRecHit2D)) && (what == all)) { return false; } else { // last resort, recur to 'recHits()', even if it returns a vector by value std::vector<const TrackingRecHit*> otherHits = other->recHits(); int ncomponents=otherHits.size(); if(ncomponents==0)return false; else if(ncomponents==1)return sharesInput(otherHits.front(),what); else if (ncomponents>1){ if(what == all )return false; else{ for(int i=0;i<ncomponents;i++){ if(sharesInput(otherHits[i],what))return true; } return false; } } return false; } }
double SiStripRecHit2D::sigmaPitch | ( | ) | const [inline] |
Definition at line 39 of file SiStripRecHit2D.h.
References sigmaPitch_.
Referenced by SiStripRecHitMatcher::match().
{ return sigmaPitch_;}
ClusterRef SiStripRecHit2D::cluster_ [private] |
Definition at line 45 of file SiStripRecHit2D.h.
Referenced by cluster(), setClusterRef(), and sharesInput().
Definition at line 49 of file SiStripRecHit2D.h.
Referenced by cluster_regional(), setClusterRegionalRef(), and sharesInput().
double SiStripRecHit2D::sigmaPitch_ [mutable, private] |
cache for the matcher....
Definition at line 52 of file SiStripRecHit2D.h.
Referenced by setSigmaPitch(), and sigmaPitch().