ATLAS Offline Software
Classes | Functions
TimedHitPtr.h File Reference
#include <type_traits>
Include dependency graph for TimedHitPtr.h:

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 69 of file TimedHitPtr.h.

69  {
70  return tHit.m_eventTime + hitTime(*tHit);
71 }

◆ operator<()

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

Definition at line 76 of file TimedHitPtr.h.

76  {
77  return ( lhs.get() && rhs.get() && *lhs < *rhs);
78 }
TimedHitPtr::get
const HIT * get() const
Definition: TimedHitPtr.h:41
TimedHitPtr::m_eventTime
float m_eventTime
t0 offset of the bunch xing in ns
Definition: TimedHitPtr.h:58
hitTime
float hitTime(const TimedHitPtr< HIT > &tHit)
Definition: TimedHitPtr.h:69