ATLAS Offline Software
Loading...
Searching...
No Matches
TimedHitPtr.h File Reference
#include <type_traits>
Include dependency graph for TimedHitPtr.h:

Go to the source code of this file.

Classes

class  TimedHitPtr< HIT >
 a smart pointer to a hit that also provides access to the extended timing info of the host event. 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}
float hitTime(const TimedHitPtr< HIT > &tHit)
Definition TimedHitPtr.h:71
float m_eventTime
t0 offset of the bunch xing in ns
Definition TimedHitPtr.h:60

◆ 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}
const HIT * get() const
Definition TimedHitPtr.h:42