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  {}
const FastTrackerRecHit * theHit

◆ 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)) {}
static TrackingLayer createFromDetId(const DetId &detId, const TrackerTopology &trackerTopology)
const FastTrackerRecHit * theHit

Member Function Documentation

◆ getTrackingLayer()

const TrackingLayer& TrajectorySeedHitCandidate::getTrackingLayer ( ) const
inline

Definition at line 38 of file TrajectorySeedHitCandidate.h.

References seedingLayer.

Referenced by SeedFinder::insertHit().

38 { return seedingLayer; }

◆ hit()

const FastTrackerRecHit* TrajectorySeedHitCandidate::hit ( ) const
inline

The Hit itself.

Definition at line 36 of file TrajectorySeedHitCandidate.h.

References theHit.

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

36 { return theHit; }
const FastTrackerRecHit * theHit

◆ 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.

References trackingPlots::other, and seedingLayer.

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

◆ layerNumber()

unsigned int TrajectorySeedHitCandidate::layerNumber ( ) const
inline

The Layer Number.

Definition at line 44 of file TrajectorySeedHitCandidate.h.

References TrackingLayer::getLayerNumber(), and seedingLayer.

44 { return seedingLayer.getLayerNumber(); }
unsigned int getLayerNumber() const
Definition: TrackingLayer.h:59

◆ localPosition()

LocalPoint TrajectorySeedHitCandidate::localPosition ( ) const
inline

The local position.

Definition at line 47 of file TrajectorySeedHitCandidate.h.

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

47 { return hit()->localPosition(); }
const FastTrackerRecHit * hit() const
The Hit itself.
LocalPoint localPosition() const override

◆ subDetId()

unsigned int TrajectorySeedHitCandidate::subDetId ( ) const
inline

The subdet Id.

Definition at line 41 of file TrajectorySeedHitCandidate.h.

References TrackingLayer::getSubDetNumber(), and seedingLayer.

41 { return seedingLayer.getSubDetNumber(); }
unsigned int getSubDetNumber() const
Definition: TrackingLayer.h:55

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().