CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 24 of file TrajectorySeedHitCandidate.h.

Constructor & Destructor Documentation

TrajectorySeedHitCandidate::TrajectorySeedHitCandidate ( )
inline

Default Constructor.

Definition at line 29 of file TrajectorySeedHitCandidate.h.

29  :
30  theHit(0),
31  seedingLayer()
32 
33  {
34  }
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.

10  :
11  theHit(hit),
13 {
14 }
static TrackingLayer createFromDetId(const DetId &detId, const TrackerTopology &trackerTopology)
const FastTrackerRecHit * theHit
DetId geographicalId() const

Member Function Documentation

const TrackingLayer& TrajectorySeedHitCandidate::getTrackingLayer ( ) const
inline

Definition at line 42 of file TrajectorySeedHitCandidate.h.

References seedingLayer.

Referenced by SeedFinder::insertHit().

43  {
44  return seedingLayer;
45  }
const FastTrackerRecHit* TrajectorySeedHitCandidate::hit ( ) const
inline

The Hit itself.

Definition at line 40 of file TrajectorySeedHitCandidate.h.

References theHit.

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

40 { 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 60 of file TrajectorySeedHitCandidate.h.

References seedingLayer.

60  {
61 
62  return seedingLayer==other.seedingLayer;
63  }
unsigned int TrajectorySeedHitCandidate::layerNumber ( ) const
inline

The Layer Number.

Definition at line 51 of file TrajectorySeedHitCandidate.h.

References TrackingLayer::getLayerNumber(), and seedingLayer.

51 { return seedingLayer.getLayerNumber(); }
unsigned int getLayerNumber() const
Definition: TrackingLayer.h:85
LocalPoint TrajectorySeedHitCandidate::localPosition ( ) const
inline

The local position.

Definition at line 54 of file TrajectorySeedHitCandidate.h.

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

54 { return hit()->localPosition(); }
const FastTrackerRecHit * hit() const
The Hit itself.
virtual LocalPoint localPosition() const final
unsigned int TrajectorySeedHitCandidate::subDetId ( ) const
inline

The subdet Id.

Definition at line 48 of file TrajectorySeedHitCandidate.h.

References TrackingLayer::getSubDetNumber(), and seedingLayer.

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

Member Data Documentation

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

Definition at line 70 of file TrajectorySeedHitCandidate.h.

Referenced by hit().