CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Enumerations | Functions
trackerHitRTTI Namespace Reference

Enumerations

enum  RTTI {
  undef =0, single =1, projStereo =2, projMono =3,
  match =4, multi =5, gs =6
}
 

Functions

bool isGS (TrackingRecHit const &hit)
 
bool isMatched (TrackingRecHit const &hit)
 
bool isMulti (TrackingRecHit const &hit)
 
bool isProjected (TrackingRecHit const &hit)
 
bool isProjMono (TrackingRecHit const &hit)
 
bool isProjStereo (TrackingRecHit const &hit)
 
bool isSingle (TrackingRecHit const &hit)
 
bool isSingleType (TrackingRecHit const &hit)
 
bool isUndef (TrackingRecHit const &hit)
 
unsigned int projId (TrackingRecHit const &hit)
 
RTTI rtti (TrackingRecHit const &hit)
 

Enumeration Type Documentation

Enumerator
undef 
single 
projStereo 
projMono 
match 
multi 
gs 

Definition at line 18 of file BaseTrackerRecHit.h.

18 { undef=0, single=1, projStereo=2, projMono=3, match=4, multi=5, gs=6};
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:6

Function Documentation

bool trackerHitRTTI::isGS ( TrackingRecHit const &  hit)
inline

Definition at line 27 of file BaseTrackerRecHit.h.

References gs, and rtti().

27 { return rtti(hit)==gs;}
RTTI rtti(TrackingRecHit const &hit)
bool trackerHitRTTI::isMatched ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isMulti ( TrackingRecHit const &  hit)
inline

Definition at line 26 of file BaseTrackerRecHit.h.

References multi, and rtti().

Referenced by BaseTrackerRecHit::isMulti().

26 { return rtti(hit)==multi;}
RTTI rtti(TrackingRecHit const &hit)
bool trackerHitRTTI::isProjected ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isProjMono ( TrackingRecHit const &  hit)
inline

Definition at line 22 of file BaseTrackerRecHit.h.

References projMono, and rtti().

Referenced by BaseTrackerRecHit::isProjMono().

22 { return rtti(hit)==projMono;}
RTTI rtti(TrackingRecHit const &hit)
bool trackerHitRTTI::isProjStereo ( TrackingRecHit const &  hit)
inline

Definition at line 23 of file BaseTrackerRecHit.h.

References projStereo, and rtti().

Referenced by BaseTrackerRecHit::isProjSterep().

23 { return rtti(hit)==projStereo;}
RTTI rtti(TrackingRecHit const &hit)
bool trackerHitRTTI::isSingle ( TrackingRecHit const &  hit)
inline

Definition at line 21 of file BaseTrackerRecHit.h.

References rtti(), and single.

Referenced by BaseTrackerRecHit::isSingle().

21 { return rtti(hit)==single;}
RTTI rtti(TrackingRecHit const &hit)
bool trackerHitRTTI::isSingleType ( TrackingRecHit const &  hit)
inline

Definition at line 28 of file BaseTrackerRecHit.h.

References rtti().

Referenced by SeedFromConsecutiveHitsTripletOnlyCreator::initialKinematic(), and TrackerSingleRecHit::sharesInput().

28 { return (rtti(hit)>0) & (rtti(hit)<4) ;}
RTTI rtti(TrackingRecHit const &hit)
bool trackerHitRTTI::isUndef ( TrackingRecHit const &  hit)
inline
unsigned int trackerHitRTTI::projId ( TrackingRecHit const &  hit)
inline

Definition at line 30 of file BaseTrackerRecHit.h.

References TrackingRecHit::rawId(), and rtti().

Referenced by ProjectedSiStripRecHit2D::originalId().

30 { return hit.rawId()+int(rtti(hit))-1;}
RTTI rtti(TrackingRecHit const &hit)
RTTI trackerHitRTTI::rtti ( TrackingRecHit const &  hit)
inline