CMS 3D CMS Logo

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

Enumerations

enum  RTTI {
  undef = 0, single = 1, projStereo = 2, projMono = 3,
  match = 4, multi = 5, fastSingle = 6, fastProjStereo = 7,
  fastProjMono = 8, fastMatch = 9, notFromCluster = 10, mipTiming = 11,
  vector = 12
}
 

Functions

bool isFast (TrackingRecHit const &hit)
 
bool isFromDet (TrackingRecHit const &hit)
 
bool isFromDetOrFast (TrackingRecHit const &hit)
 
bool isMatched (TrackingRecHit const &hit)
 
bool isMulti (TrackingRecHit const &hit)
 
bool isNotFromCluster (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 isTiming (TrackingRecHit const &hit)
 
bool isUndef (TrackingRecHit const &hit)
 
bool isVector (TrackingRecHit const &hit)
 
unsigned int projId (TrackingRecHit const &hit)
 
RTTI rtti (TrackingRecHit const &hit)
 

Enumeration Type Documentation

Enumerator
undef 
single 
projStereo 
projMono 
match 
multi 
fastSingle 
fastProjStereo 
fastProjMono 
fastMatch 
notFromCluster 
mipTiming 
vector 

Definition at line 8 of file trackerHitRTTI.h.

8  {
9  undef = 0,
10  single = 1,
11  projStereo = 2,
12  projMono = 3,
13  match = 4,
14  multi = 5,
15  fastSingle = 6,
16  fastProjStereo = 7,
17  fastProjMono = 8,
18  fastMatch = 9,
19  notFromCluster = 10,
20  mipTiming = 11,
21  vector = 12
22  };
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10

Function Documentation

bool trackerHitRTTI::isFast ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isFromDet ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isFromDetOrFast ( TrackingRecHit const &  hit)
inline

Definition at line 38 of file trackerHitRTTI.h.

References rtti().

Referenced by Trajectory::pixel().

38  {
39  return (((rtti(hit) > 0) & (rtti(hit) < 10)) | (rtti(hit) == 12));
40  }
trackerHitRTTI::RTTI rtti(HitType hitType)
bool trackerHitRTTI::isMatched ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isMulti ( TrackingRecHit const &  hit)
inline

Definition at line 34 of file trackerHitRTTI.h.

References multi, and rtti().

Referenced by BaseTrackerRecHit::isMulti().

34 { return rtti(hit) == multi; }
trackerHitRTTI::RTTI rtti(HitType hitType)
bool trackerHitRTTI::isNotFromCluster ( TrackingRecHit const &  hit)
inline

Definition at line 25 of file trackerHitRTTI.h.

References notFromCluster, and rtti().

Referenced by Traj2TrackHits::split().

25 { return rtti(hit) == notFromCluster; }
trackerHitRTTI::RTTI rtti(HitType hitType)
bool trackerHitRTTI::isProjected ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isProjMono ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isProjStereo ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isSingle ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isSingleType ( TrackingRecHit const &  hit)
inline

Definition at line 35 of file trackerHitRTTI.h.

References rtti().

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

35 { return (rtti(hit) > 0) & (rtti(hit) < 4); }
trackerHitRTTI::RTTI rtti(HitType hitType)
bool trackerHitRTTI::isTiming ( TrackingRecHit const &  hit)
inline

Definition at line 41 of file trackerHitRTTI.h.

References mipTiming, and rtti().

41 { return rtti(hit) == mipTiming; }
trackerHitRTTI::RTTI rtti(HitType hitType)
bool trackerHitRTTI::isUndef ( TrackingRecHit const &  hit)
inline
bool trackerHitRTTI::isVector ( TrackingRecHit const &  hit)
inline

Definition at line 42 of file trackerHitRTTI.h.

References rtti(), and vector.

Referenced by VectorHit::sharesInput().

42 { return rtti(hit) == vector; }
trackerHitRTTI::RTTI rtti(HitType hitType)
unsigned int trackerHitRTTI::projId ( TrackingRecHit const &  hit)
inline

Definition at line 43 of file trackerHitRTTI.h.

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

Referenced by ProjectedSiStripRecHit2D::originalId().

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