CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TrajSeedMatcher::HitInfo Class Reference

#include <TrajSeedMatcher.h>

Public Member Functions

DetId detId () const
 
float dPhi () const
 
float dRZ () const
 
const TrackingRecHithit () const
 
 HitInfo ()
 
 HitInfo (const GlobalPoint &vtxPos, const TrajectoryStateOnSurface &trajState, const TrackingRecHit &hit)
 
const GlobalPointpos () const
 
int subdetId () const
 
 ~HitInfo ()=default
 

Private Attributes

DetId detId_
 
float dPhi_
 
float dRZ_
 
const TrackingRecHithit_
 
GlobalPoint pos_
 

Detailed Description

Definition at line 79 of file TrajSeedMatcher.h.

Constructor & Destructor Documentation

TrajSeedMatcher::HitInfo::HitInfo ( )
inline
TrajSeedMatcher::HitInfo::HitInfo ( const GlobalPoint vtxPos,
const TrajectoryStateOnSurface trajState,
const TrackingRecHit hit 
)

Definition at line 333 of file TrajSeedMatcher.cc.

References detId_, dPhi_, dRZ_, TrajectoryStateOnSurface::globalParameters(), PixelSubdetector::PixelBarrel, pos_, GlobalTrajectoryParameters::position(), TrajSeedMatcher::SeedWithInfo::SeedWithInfo(), and DetId::subdetId().

335  :
336  detId_(hit.geographicalId()),
337  pos_(hit.globalPosition()),
338  hit_(&hit)
339 {
340  EleRelPointPair pointPair(pos_,trajState.globalParameters().position(),vtxPos);
341  dRZ_ = detId_.subdetId()==PixelSubdetector::PixelBarrel ? pointPair.dZ() : pointPair.dPerp();
342  dPhi_ = pointPair.dPhi();
343 }
virtual GlobalPoint globalPosition() const
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37
const TrackingRecHit * hit_
const GlobalTrajectoryParameters & globalParameters() const
DetId geographicalId() const
TrajSeedMatcher::HitInfo::~HitInfo ( )
default

Member Function Documentation

DetId TrajSeedMatcher::HitInfo::detId ( ) const
inline

Definition at line 92 of file TrajSeedMatcher.h.

92 {return detId_;}
float TrajSeedMatcher::HitInfo::dPhi ( ) const
inline

Definition at line 94 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::MatchingCuts::operator()().

94 {return dPhi_;}
float TrajSeedMatcher::HitInfo::dRZ ( ) const
inline

Definition at line 93 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::MatchingCuts::operator()().

93 {return dRZ_;}
const TrackingRecHit* TrajSeedMatcher::HitInfo::hit ( ) const
inline

Definition at line 96 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::getNrValidLayersAlongTraj().

96 {return hit_;}
const TrackingRecHit * hit_
const GlobalPoint& TrajSeedMatcher::HitInfo::pos ( ) const
inline
int TrajSeedMatcher::HitInfo::subdetId ( ) const
inline

Definition at line 91 of file TrajSeedMatcher.h.

91 {return detId_.subdetId();}
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:37

Member Data Documentation

DetId TrajSeedMatcher::HitInfo::detId_
private

Definition at line 98 of file TrajSeedMatcher.h.

Referenced by HitInfo().

float TrajSeedMatcher::HitInfo::dPhi_
private

Definition at line 101 of file TrajSeedMatcher.h.

Referenced by HitInfo().

float TrajSeedMatcher::HitInfo::dRZ_
private

Definition at line 100 of file TrajSeedMatcher.h.

Referenced by HitInfo().

const TrackingRecHit* TrajSeedMatcher::HitInfo::hit_
private

Definition at line 102 of file TrajSeedMatcher.h.

GlobalPoint TrajSeedMatcher::HitInfo::pos_
private

Definition at line 99 of file TrajSeedMatcher.h.

Referenced by HitInfo().