CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::TrajectorySeedHitCandidate ( )
inline

Default Constructor.

Definition at line 26 of file TrajectorySeedHitCandidate.h.

27  : theHit(nullptr),
28  seedingLayer()
29 
30  {}
const FastTrackerRecHit * theHit
TrajectorySeedHitCandidate::TrajectorySeedHitCandidate ( const FastTrackerRecHit hit,
const TrackerTopology tTopo 
)

Constructor from a FastTrackerRecHit and topology.

Definition at line 7 of file TrajectorySeedHitCandidate.cc.

static TrackingLayer createFromDetId(const DetId &detId, const TrackerTopology &trackerTopology)
Definition: TrackingLayer.cc:9
const FastTrackerRecHit * theHit
DetId geographicalId() const

Member Function Documentation

const TrackingLayer& TrajectorySeedHitCandidate::getTrackingLayer ( ) const
inline

Definition at line 38 of file TrajectorySeedHitCandidate.h.

References seedingLayer.

Referenced by SeedFinder::insertHit().

38 { return seedingLayer; }
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
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 seedingLayer.

52  {
53  return seedingLayer == other.seedingLayer;
54  }
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
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(); }
LocalPoint localPosition() const override
const FastTrackerRecHit * hit() const
The Hit itself.
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

TrackingLayer TrajectorySeedHitCandidate::seedingLayer
private
const FastTrackerRecHit* TrajectorySeedHitCandidate::theHit
private

Definition at line 57 of file TrajectorySeedHitCandidate.h.

Referenced by hit().