ATLAS Offline Software
Classes | Functions
TimedHitPtr.h File Reference

Go to the source code of this file.

Classes

class  TimedHitPtr
 a smart pointer to a hit that also provides access to the extended timing info of the host event. For a pu event this is taken from the event PileUpTimeEventIndex usually accessed via PileUpMergeSvc::TimedList More...
 

Functions

template<class HIT >
float hitTime (const TimedHitPtr< HIT > &tHit)
 
template<class HIT >
bool operator< (const TimedHitPtr< HIT > &lhs, const TimedHitPtr< HIT > &rhs)
 

Function Documentation

◆ hitTime()

template<class HIT >
float hitTime ( const TimedHitPtr< HIT > &  tHit)
inline

Definition at line 66 of file TimedHitPtr.h.

66  {
67  return tHit.m_eventTime + hitTime(*tHit);
68 }

◆ operator<()

template<class HIT >
bool operator< ( const TimedHitPtr< HIT > &  lhs,
const TimedHitPtr< HIT > &  rhs 
)

Definition at line 73 of file TimedHitPtr.h.

73  {
74  return ( 0 != lhs.operator->() && 0 != rhs.operator->() && *lhs < *rhs);
75 }
TimedHitPtr::m_eventTime
float m_eventTime
t0 offset of the bunch xing in ns
Definition: TimedHitPtr.h:55
hitTime
float hitTime(const TimedHitPtr< HIT > &tHit)
Definition: TimedHitPtr.h:66