CMS 3D CMS Logo

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
}
 

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)
 
unsigned int projId (TrackingRecHit const &hit)
 
RTTI rtti (TrackingRecHit const &hit)
 

Enumeration Type Documentation

◆ RTTI

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

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  };

Function Documentation

◆ isFast()

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

◆ isFromDet()

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

◆ isFromDetOrFast()

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

Definition at line 37 of file trackerHitRTTI.h.

37 { return (rtti(hit) > 0) & (rtti(hit) < 10); }

References rtti().

Referenced by Trajectory::pixel().

◆ isMatched()

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

◆ isMulti()

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

Definition at line 33 of file trackerHitRTTI.h.

33 { return rtti(hit) == multi; }

References multi, and rtti().

Referenced by BaseTrackerRecHit::isMulti().

◆ isNotFromCluster()

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

Definition at line 24 of file trackerHitRTTI.h.

24 { return rtti(hit) == notFromCluster; }

References notFromCluster, and rtti().

Referenced by Traj2TrackHits::split().

◆ isProjected()

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

Definition at line 28 of file trackerHitRTTI.h.

28  {
29  return ((rtti(hit) == projMono) | (rtti(hit) == projStereo)) ||
31  }

References fastProjMono, fastProjStereo, projMono, projStereo, and rtti().

Referenced by BaseTrackerRecHit::isProjected(), and TrajectoryFactoryBase::useRecHit().

◆ isProjMono()

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

Definition at line 26 of file trackerHitRTTI.h.

26 { return rtti(hit) == projMono || rtti(hit) == fastProjMono; }

References fastProjMono, projMono, and rtti().

Referenced by BaseTrackerRecHit::isProjMono(), and ProjectedSiStripRecHit2D::setDet().

◆ isProjStereo()

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

Definition at line 27 of file trackerHitRTTI.h.

27 { return rtti(hit) == projStereo || rtti(hit) == fastProjStereo; }

References fastProjStereo, projStereo, and rtti().

Referenced by BaseTrackerRecHit::isProjStereo().

◆ isSingle()

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

Definition at line 25 of file trackerHitRTTI.h.

25 { return rtti(hit) == single || rtti(hit) == fastSingle; }

References fastSingle, rtti(), and single.

Referenced by MTVHistoProducerAlgoForTracker::getSeedingLayerSetBin(), and BaseTrackerRecHit::isSingle().

◆ isSingleType()

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

Definition at line 34 of file trackerHitRTTI.h.

34 { return (rtti(hit) > 0) & (rtti(hit) < 4); }

References rtti().

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

◆ isTiming()

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

Definition at line 38 of file trackerHitRTTI.h.

38 { return rtti(hit) == mipTiming; }

References mipTiming, and rtti().

◆ isUndef()

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

◆ projId()

unsigned int trackerHitRTTI::projId ( TrackingRecHit const &  hit)
inline

Definition at line 39 of file trackerHitRTTI.h.

39 { return hit.rawId() + int(rtti(hit)) - 1; }

References createfilelist::int, and rtti().

Referenced by ProjectedSiStripRecHit2D::originalId().

◆ rtti()

RTTI trackerHitRTTI::rtti ( TrackingRecHit const &  hit)
inline
trackerHitRTTI::undef
Definition: trackerHitRTTI.h:9
trackerHitRTTI::fastSingle
Definition: trackerHitRTTI.h:15
trackerHitRTTI::projStereo
Definition: trackerHitRTTI.h:11
trackerHitRTTI::projMono
Definition: trackerHitRTTI.h:12
trackerHitRTTI::RTTI
RTTI
Definition: trackerHitRTTI.h:8
trackerHitRTTI::rtti
RTTI rtti(TrackingRecHit const &hit)
Definition: trackerHitRTTI.h:22
trackerHitRTTI::mipTiming
Definition: trackerHitRTTI.h:20
trackerHitRTTI::fastProjMono
Definition: trackerHitRTTI.h:17
trackerHitRTTI::single
Definition: trackerHitRTTI.h:10
match
std::pair< typename Association::data_type::first_type, double > match(Reference key, Association association, bool bestMatchByMaxValue)
Generic matching function.
Definition: Utils.h:10
createfilelist.int
int
Definition: createfilelist.py:10
trackerHitRTTI::multi
Definition: trackerHitRTTI.h:14
trackerHitRTTI::fastProjStereo
Definition: trackerHitRTTI.h:16
trackerHitRTTI::fastMatch
Definition: trackerHitRTTI.h:18
trackerHitRTTI::notFromCluster
Definition: trackerHitRTTI.h:19
hit
Definition: SiStripHitEffFromCalibTree.cc:88