CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TrajectorySeedHitCandidate Class Reference

#include <TrajectorySeedHitCandidate.h>

Public Member Functions

const TrackingLayergetTrackingLayer () const
 
const FastTrackerRecHithit () const
 The Hit itself. More...
 
bool isOnTheSameLayer (const TrajectorySeedHitCandidate &other) const
 Check if the hit is on one of the requested detector. More...
 
unsigned int layerNumber () const
 The Layer Number. More...
 
LocalPoint localPosition () const
 The local position. More...
 
unsigned int subDetId () const
 The subdet Id. More...
 
 TrajectorySeedHitCandidate ()
 Default Constructor. More...
 
 TrajectorySeedHitCandidate (const FastTrackerRecHit *hit, const TrackerTopology *tTopo)
 Constructor from a FastTrackerRecHit and topology. More...
 

Private Attributes

TrackingLayer seedingLayer
 
const FastTrackerRecHittheHit
 

Detailed Description

Definition at line 23 of file TrajectorySeedHitCandidate.h.

Constructor & Destructor Documentation

◆ TrajectorySeedHitCandidate() [1/2]

TrajectorySeedHitCandidate::TrajectorySeedHitCandidate ( )
inline

Default Constructor.

Definition at line 26 of file TrajectorySeedHitCandidate.h.

27  : theHit(nullptr),
28  seedingLayer()
29 
30  {}

◆ TrajectorySeedHitCandidate() [2/2]

TrajectorySeedHitCandidate::TrajectorySeedHitCandidate ( const FastTrackerRecHit hit,
const TrackerTopology tTopo 
)

Constructor from a FastTrackerRecHit and topology.

Definition at line 7 of file TrajectorySeedHitCandidate.cc.

8  : theHit(hit), seedingLayer(TrackingLayer::createFromDetId(hit->geographicalId(), *tTopo)) {}

Member Function Documentation

◆ getTrackingLayer()

const TrackingLayer& TrajectorySeedHitCandidate::getTrackingLayer ( ) const
inline

Definition at line 38 of file TrajectorySeedHitCandidate.h.

38 { return seedingLayer; }

References seedingLayer.

Referenced by SeedFinder::insertHit().

◆ hit()

const FastTrackerRecHit* TrajectorySeedHitCandidate::hit ( ) const
inline

The Hit itself.

Definition at line 36 of file TrajectorySeedHitCandidate.h.

36 { return theHit; }

References theHit.

Referenced by SeedFinder::insertHit(), localPosition(), and FastTSGFromPropagation::trackerSeeds().

◆ isOnTheSameLayer()

bool TrajectorySeedHitCandidate::isOnTheSameLayer ( const TrajectorySeedHitCandidate other) const
inline

Check if the hit is on one of the requested detector.

Check if two hits are on the same layer of the same subdetector

Definition at line 52 of file TrajectorySeedHitCandidate.h.

52  {
53  return seedingLayer == other.seedingLayer;
54  }

References trackingPlots::other, and seedingLayer.

◆ layerNumber()

unsigned int TrajectorySeedHitCandidate::layerNumber ( ) const
inline

The Layer Number.

Definition at line 44 of file TrajectorySeedHitCandidate.h.

44 { return seedingLayer.getLayerNumber(); }

References TrackingLayer::getLayerNumber(), and seedingLayer.

◆ localPosition()

LocalPoint TrajectorySeedHitCandidate::localPosition ( ) const
inline

The local position.

Definition at line 47 of file TrajectorySeedHitCandidate.h.

47 { return hit()->localPosition(); }

References hit(), and BaseTrackerRecHit::localPosition().

◆ subDetId()

unsigned int TrajectorySeedHitCandidate::subDetId ( ) const
inline

The subdet Id.

Definition at line 41 of file TrajectorySeedHitCandidate.h.

41 { return seedingLayer.getSubDetNumber(); }

References TrackingLayer::getSubDetNumber(), and seedingLayer.

Member Data Documentation

◆ seedingLayer

TrackingLayer TrajectorySeedHitCandidate::seedingLayer
private

◆ theHit

const FastTrackerRecHit* TrajectorySeedHitCandidate::theHit
private

Definition at line 57 of file TrajectorySeedHitCandidate.h.

Referenced by hit().

TrackingLayer::createFromDetId
static TrackingLayer createFromDetId(const DetId &detId, const TrackerTopology &trackerTopology)
Definition: TrackingLayer.cc:9
TrajectorySeedHitCandidate::hit
const FastTrackerRecHit * hit() const
The Hit itself.
Definition: TrajectorySeedHitCandidate.h:36
trackingPlots.other
other
Definition: trackingPlots.py:1464
TrackingLayer::getSubDetNumber
unsigned int getSubDetNumber() const
Definition: TrackingLayer.h:55
TrajectorySeedHitCandidate::seedingLayer
TrackingLayer seedingLayer
Definition: TrajectorySeedHitCandidate.h:58
BaseTrackerRecHit::localPosition
LocalPoint localPosition() const override
Definition: BaseTrackerRecHit.h:56
TrajectorySeedHitCandidate::theHit
const FastTrackerRecHit * theHit
Definition: TrajectorySeedHitCandidate.h:57
TrackingLayer::getLayerNumber
unsigned int getLayerNumber() const
Definition: TrackingLayer.h:59
hit
Definition: SiStripHitEffFromCalibTree.cc:88