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

71  {
72  return tHit.m_eventTime + hitTime(*tHit);
73 }

◆ operator<()

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

Definition at line 78 of file TimedHitPtr.h.

78  {
79  return ( lhs.get() && rhs.get() && *lhs < *rhs);
80 }
TimedHitPtr::get
const HIT * get() const
Definition: TimedHitPtr.h:42
TimedHitPtr::m_eventTime
float m_eventTime
t0 offset of the bunch xing in ns
Definition: TimedHitPtr.h:60
hitTime
float hitTime(const TimedHitPtr< HIT > &tHit)
Definition: TimedHitPtr.h:71