CMS 3D CMS Logo

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

#include <TrajSeedMatcher.h>

Public Member Functions

int charge () const
 
DetId detId () const
 
float dPhi () const
 
float dRZ () const
 
float et () const
 
float eta () const
 
const TrackingRecHithit () const
 
const GlobalPointhitPos () const
 
int nrClus () const
 
float phi () const
 
 SCHitMatch ()
 
 SCHitMatch (const GlobalPoint &vtxPos, const TrajectoryStateOnSurface &trajState, const TrackingRecHit &hit)
 
void setExtra (float et, float eta, float phi, int charge, int nrClus)
 
int subdetId () const
 
 ~SCHitMatch ()=default
 

Private Attributes

int charge_
 
DetId detId_
 
float dPhi_
 
float dRZ_
 
float et_
 
float eta_
 
const TrackingRecHithit_
 
GlobalPoint hitPos_
 
int nrClus_
 
float phi_
 

Detailed Description

Definition at line 79 of file TrajSeedMatcher.h.

Constructor & Destructor Documentation

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

Definition at line 371 of file TrajSeedMatcher.cc.

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

373  :
374  detId_(hit.geographicalId()),
375  hitPos_(hit.globalPosition()),
376  hit_(&hit),
377  et_(0),eta_(0),phi_(0),charge_(0),nrClus_(0)
378 {
379  EleRelPointPair pointPair(hitPos_,trajState.globalParameters().position(),vtxPos);
380  dRZ_ = detId_.subdetId()==PixelSubdetector::PixelBarrel ? pointPair.dZ() : pointPair.dPerp();
381  dPhi_ = pointPair.dPhi();
382 }
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:38
const GlobalTrajectoryParameters & globalParameters() const
const TrackingRecHit * hit_
DetId geographicalId() const
TrajSeedMatcher::SCHitMatch::~SCHitMatch ( )
default

Member Function Documentation

int TrajSeedMatcher::SCHitMatch::charge ( void  ) const
inline

Definition at line 110 of file TrajSeedMatcher.h.

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

Definition at line 103 of file TrajSeedMatcher.h.

float TrajSeedMatcher::SCHitMatch::dPhi ( ) const
inline
float TrajSeedMatcher::SCHitMatch::dRZ ( ) const
inline
float TrajSeedMatcher::SCHitMatch::et ( ) const
inline
float TrajSeedMatcher::SCHitMatch::eta ( void  ) const
inline
const TrackingRecHit* TrajSeedMatcher::SCHitMatch::hit ( ) const
inline

Definition at line 112 of file TrajSeedMatcher.h.

Referenced by TrajSeedMatcher::getNrValidLayersAlongTraj().

112 {return hit_;}
const TrackingRecHit * hit_
const GlobalPoint& TrajSeedMatcher::SCHitMatch::hitPos ( ) const
inline
int TrajSeedMatcher::SCHitMatch::nrClus ( ) const
inline

Definition at line 111 of file TrajSeedMatcher.h.

float TrajSeedMatcher::SCHitMatch::phi ( void  ) const
inline
void TrajSeedMatcher::SCHitMatch::setExtra ( float  et,
float  eta,
float  phi,
int  charge,
int  nrClus 
)
inline
int TrajSeedMatcher::SCHitMatch::subdetId ( ) const
inline

Definition at line 102 of file TrajSeedMatcher.h.

102 {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:38

Member Data Documentation

int TrajSeedMatcher::SCHitMatch::charge_
private

Definition at line 123 of file TrajSeedMatcher.h.

DetId TrajSeedMatcher::SCHitMatch::detId_
private

Definition at line 114 of file TrajSeedMatcher.h.

Referenced by SCHitMatch().

float TrajSeedMatcher::SCHitMatch::dPhi_
private

Definition at line 117 of file TrajSeedMatcher.h.

Referenced by SCHitMatch().

float TrajSeedMatcher::SCHitMatch::dRZ_
private

Definition at line 116 of file TrajSeedMatcher.h.

Referenced by SCHitMatch().

float TrajSeedMatcher::SCHitMatch::et_
private

Definition at line 120 of file TrajSeedMatcher.h.

float TrajSeedMatcher::SCHitMatch::eta_
private

Definition at line 121 of file TrajSeedMatcher.h.

const TrackingRecHit* TrajSeedMatcher::SCHitMatch::hit_
private

Definition at line 118 of file TrajSeedMatcher.h.

GlobalPoint TrajSeedMatcher::SCHitMatch::hitPos_
private

Definition at line 115 of file TrajSeedMatcher.h.

Referenced by SCHitMatch().

int TrajSeedMatcher::SCHitMatch::nrClus_
private

Definition at line 124 of file TrajSeedMatcher.h.

float TrajSeedMatcher::SCHitMatch::phi_
private

Definition at line 122 of file TrajSeedMatcher.h.