5#ifndef HITMANAGEMENT_TIMEDHITPTR
6#define HITMANAGEMENT_TIMEDHITPTR
17template <
typename HIT>
44 operator bool ()
const {
return m_pHit !=
nullptr; }
79 return ( lhs.
get() && rhs.
get() && *lhs < *rhs);
bool operator<(const TimedHitPtr< HIT > &lhs, const TimedHitPtr< HIT > &rhs)
float hitTime(const TimedHitPtr< HIT > &tHit)
a smart pointer to a hit that also provides access to the extended timing info of the host event.
xAOD::MuonSimHit value_type
TimedHitPtr(float eventTime, unsigned short eventId, const HIT *pHit, int pileupType=0)
use this constructor when hit has a PileUpTimeEventIndex
friend float hitTime(const TimedHitPtr< FHIT > &)
const HIT & operator*() const
smart pointer interface
TimedHitPtr< HIT > & operator=(const TimedHitPtr< HIT > &rhs)=default
assignment operator
TimedHitPtr()=default
STL required constructors.
unsigned short eventId() const
const xAOD::MuonSimHit * m_pHit
TimedHitPtr(const TimedHitPtr< HIT > &rhs)=default
TimedHitPtr(TimedHitPtr< HIT > &&rhs)=default
TimedHitPtr(float eventTime, const HIT *pHit, int pileupType=0)
minimal constructor: pass only t0 offset of bunch xing
std::add_const_t< xAOD::MuonSimHit > element_type
TimedHitPtr< HIT > & operator=(TimedHitPtr< HIT > &&rhs)=default
element_type const_value_type
const HIT * operator->() const