CMS 3D CMS Logo

SiStripMatchedRecHit2D Class Reference

#include <DataFormats/TrackerRecHit2D/interface/SiStripMatchedRecHit2D.h>

Inheritance diagram for SiStripMatchedRecHit2D:

BaseSiTrackerRecHit2DLocalPos RecHit2DLocalPos TrackingRecHit

List of all members.

Public Member Functions

virtual SiStripMatchedRecHit2Dclone () const
SiStripRecHit2DmonoHit ()
const SiStripRecHit2DmonoHit () const
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any).
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any).
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise.
 SiStripMatchedRecHit2D (const LocalPoint &pos, const LocalError &err, const DetId &id, const SiStripRecHit2D *rMono, const SiStripRecHit2D *rStereo)
 SiStripMatchedRecHit2D ()
SiStripRecHit2DstereoHit ()
const SiStripRecHit2DstereoHit () const
 ~SiStripMatchedRecHit2D ()

Private Attributes

SiStripRecHit2D componentMono_
SiStripRecHit2D componentStereo_


Detailed Description

Definition at line 8 of file SiStripMatchedRecHit2D.h.


Constructor & Destructor Documentation

SiStripMatchedRecHit2D::SiStripMatchedRecHit2D (  )  [inline]

Definition at line 10 of file SiStripMatchedRecHit2D.h.

Referenced by clone().

SiStripMatchedRecHit2D::~SiStripMatchedRecHit2D (  )  [inline]

Definition at line 11 of file SiStripMatchedRecHit2D.h.

00011 {}

SiStripMatchedRecHit2D::SiStripMatchedRecHit2D ( const LocalPoint pos,
const LocalError err,
const DetId id,
const SiStripRecHit2D rMono,
const SiStripRecHit2D rStereo 
)

Definition at line 4 of file SiStripMatchedRecHit2D.cc.

00005                                                                                                                                               : BaseSiTrackerRecHit2DLocalPos(pos, err, id), componentMono_(*rMono),componentStereo_(*rStereo){}


Member Function Documentation

virtual SiStripMatchedRecHit2D* SiStripMatchedRecHit2D::clone ( void   )  const [inline, virtual]

Implements RecHit2DLocalPos.

Definition at line 21 of file SiStripMatchedRecHit2D.h.

References SiStripMatchedRecHit2D().

Referenced by SiStripRecHitMatcher::match().

00021 {return new SiStripMatchedRecHit2D( * this); }

SiStripRecHit2D* SiStripMatchedRecHit2D::monoHit (  )  [inline]

Definition at line 19 of file SiStripMatchedRecHit2D.h.

References componentMono_.

00019 { return &componentMono_;}

const SiStripRecHit2D* SiStripMatchedRecHit2D::monoHit (  )  const [inline]

Definition at line 15 of file SiStripMatchedRecHit2D.h.

References componentMono_.

Referenced by SiStripQualityHotStripIdentifier::algoAnalyze(), SiStripGainFromData::algoAnalyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), TrackerHitAssociator::associateMatchedRecHit(), SimpleCosmicBONSeeder::checkCharge(), TSiStripMatchedRecHit::clone(), SiStripFineDelayHit::closestCluster(), helper::MuonCollectionStoreManager::clusterRefsOK(), RoadSearchCloudMakerAlgorithm::CorrectMatchedHit(), SiStripFineDelayTLA::findtrackangle(), AlignmentTrackSelector::isOkCharge(), CalibrationTrackSelector::isOkCharge(), HitComparator::less(), VisTrackerRechit2DTwig::localPosition(), VisLocalPosition::localPosition(), VisEventSetupService::localPosition(), VisEventSetupService::localPositions(), VisLocalPosition::localPositions(), VisTrackerRechit2DTwig::localPositions(), SiStripRecHitMatcher::match(), TrackClusterRemover::process(), helper::MuonCollectionStoreManager::processHit(), helper::TrackCollectionStoreManager::processTrack(), RemainingClusterProducer::produce(), DeDxDiscriminatorProducer::produce(), ClusterRemovalRefSetter::reKey(), helper::TrackCollectionStoreManager::ClusterHitRecord< RecHitType, ClusterRefType >::rekey(), helper::MuonCollectionStoreManager::ClusterHitRecord< RecHitType, ClusterRefType >::rekey(), sharesInput(), CRackTrajectoryBuilder::SortHits(), ClusterShapeTrajectoryFilter::toBeContinued(), SiStripMonitorTrackEfficiency::trackStudy(), SiStripMonitorTrack::trackStudy(), cms::ClusterAnalysis::trackStudy(), and TSiStripMatchedRecHit::transientHits().

00015 { return &componentMono_;}

std::vector< TrackingRecHit * > SiStripMatchedRecHit2D::recHits (  )  [virtual]

Non-const access to component RecHits (if any).

Reimplemented from RecHit2DLocalPos.

Definition at line 39 of file SiStripMatchedRecHit2D.cc.

References componentMono_, and componentStereo_.

00039                                 {
00040   std::vector<TrackingRecHit*> rechits(2);
00041   rechits[0]=&componentMono_;
00042   rechits[1]=&componentStereo_;
00043   return rechits;
00044 }

std::vector< const TrackingRecHit * > SiStripMatchedRecHit2D::recHits (  )  const [virtual]

Access to component RecHits (if any).

Reimplemented from RecHit2DLocalPos.

Definition at line 31 of file SiStripMatchedRecHit2D.cc.

References componentMono_, and componentStereo_.

00031                                      {
00032   std::vector<const TrackingRecHit*> rechits(2);
00033   rechits[0]=&componentMono_;
00034   rechits[1]=&componentStereo_;
00035   return rechits;
00036 }

bool SiStripMatchedRecHit2D::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 8 of file SiStripMatchedRecHit2D.cc.

References TrackingRecHit::all, TrackingRecHit::geographicalId(), monoHit(), SiStripRecHit2D::sharesInput(), and stereoHit().

00010 {
00011   if (what==all && (geographicalId() != other->geographicalId())) return false;
00012   
00013   if ( typeid(*other)!=typeid(SiStripMatchedRecHit2D)){
00014     if (what==all)  return false;
00015     else return (monoHit()->sharesInput( other,what)|| stereoHit()->sharesInput( other,what));
00016   }
00017   else{
00018     const SiStripMatchedRecHit2D* otherMatched = static_cast<const SiStripMatchedRecHit2D*>(other);
00019     if ( what == all) {
00020       return (monoHit()->sharesInput( otherMatched->monoHit(),what) && 
00021               stereoHit()->sharesInput( otherMatched->stereoHit(),what));
00022     }
00023     else {
00024       return (monoHit()->sharesInput( otherMatched->monoHit(),what) || 
00025               stereoHit()->sharesInput( otherMatched->stereoHit(),what));
00026     }
00027   }
00028 }

SiStripRecHit2D* SiStripMatchedRecHit2D::stereoHit (  )  [inline]

Definition at line 18 of file SiStripMatchedRecHit2D.h.

References componentStereo_.

00018 { return &componentStereo_;}

const SiStripRecHit2D* SiStripMatchedRecHit2D::stereoHit (  )  const [inline]

Definition at line 14 of file SiStripMatchedRecHit2D.h.

References componentStereo_.

Referenced by SiStripQualityHotStripIdentifier::algoAnalyze(), SiStripGainFromData::algoAnalyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), TrackerHitAssociator::associateMatchedRecHit(), SimpleCosmicBONSeeder::checkCharge(), TSiStripMatchedRecHit::clone(), SiStripFineDelayHit::closestCluster(), helper::MuonCollectionStoreManager::clusterRefsOK(), SiStripFineDelayTLA::findtrackangle(), AlignmentTrackSelector::isOkCharge(), CalibrationTrackSelector::isOkCharge(), HitComparator::less(), VisTrackerRechit2DTwig::localPosition(), VisLocalPosition::localPosition(), VisEventSetupService::localPosition(), VisEventSetupService::localPositions(), VisLocalPosition::localPositions(), VisTrackerRechit2DTwig::localPositions(), SiStripRecHitMatcher::match(), TrackClusterRemover::process(), helper::MuonCollectionStoreManager::processHit(), helper::TrackCollectionStoreManager::processTrack(), RemainingClusterProducer::produce(), DeDxDiscriminatorProducer::produce(), ClusterRemovalRefSetter::reKey(), helper::TrackCollectionStoreManager::ClusterHitRecord< RecHitType, ClusterRefType >::rekey(), helper::MuonCollectionStoreManager::ClusterHitRecord< RecHitType, ClusterRefType >::rekey(), sharesInput(), CRackTrajectoryBuilder::SortHits(), ClusterShapeTrajectoryFilter::toBeContinued(), SiStripMonitorTrackEfficiency::trackStudy(), SiStripMonitorTrack::trackStudy(), cms::ClusterAnalysis::trackStudy(), and TSiStripMatchedRecHit::transientHits().

00014 { return &componentStereo_;}


Member Data Documentation

SiStripRecHit2D SiStripMatchedRecHit2D::componentMono_ [private]

Definition at line 31 of file SiStripMatchedRecHit2D.h.

Referenced by monoHit(), and recHits().

SiStripRecHit2D SiStripMatchedRecHit2D::componentStereo_ [private]

Definition at line 31 of file SiStripMatchedRecHit2D.h.

Referenced by recHits(), and stereoHit().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:32:24 2009 for CMSSW by  doxygen 1.5.4