ATLAS Offline Software
Public Member Functions | Private Attributes | Friends | List of all members
TimedHitPtr Class Reference

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...

#include <SCT_SurfaceChargesGenerator.h>

Collaboration diagram for TimedHitPtr:

Public Member Functions

 TimedHitPtr ()
 STL required constructors. More...
 
 TimedHitPtr (const TimedHitPtr< HIT > &rhs)
 
 TimedHitPtr (float eventTime, const HIT *pHit, int pileupType=0)
 minimal constructor: pass only t0 offset of bunch xing More...
 
 TimedHitPtr (float eventTime, unsigned short eventId, const HIT *pHit, int pileupType=0)
 use this constructor when hit has a PileUpTimeEventIndex More...
 
TimedHitPtr< HIT > & operator= (const TimedHitPtr< HIT > &rhs)
 assignment operator More...
 
const HIT & operator* () const
 smart pointer interface More...
 
const HIT * operator-> () const
 
unsigned short eventId () const
 the index of the component event in PileUpEventInfo. More...
 
int pileupType () const
 the type of event which the hit came from (signal, low pt minbias, high pt minbias, cavern bg, etc.) More...
 
float eventTime () const
 t0 offset of the bunch xing containing the hit in ns. More...
 

Private Attributes

float m_eventTime
 t0 offset of the bunch xing in ns More...
 
unsigned short m_eventId
 the index in PileUpEventInfo of the component event hosting this hit More...
 
int m_pileupType
 
const HIT * m_pHit
 

Friends

template<class FHIT >
float hitTime (const TimedHitPtr< FHIT > &)
 

Detailed Description

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

Definition at line 77 of file SCT_SurfaceChargesGenerator.h.

Constructor & Destructor Documentation

◆ TimedHitPtr() [1/4]

TimedHitPtr::TimedHitPtr ( )
inline

STL required constructors.

Definition at line 19 of file TimedHitPtr.h.

19 : m_eventTime(0), m_eventId(0), m_pileupType(0), m_pHit(nullptr) {}

◆ TimedHitPtr() [2/4]

TimedHitPtr::TimedHitPtr ( const TimedHitPtr< HIT > &  rhs)
inline

Definition at line 20 of file TimedHitPtr.h.

◆ TimedHitPtr() [3/4]

TimedHitPtr::TimedHitPtr ( float  eventTime,
const HIT *  pHit,
int  pileupType = 0 
)
inline

minimal constructor: pass only t0 offset of bunch xing

Definition at line 24 of file TimedHitPtr.h.

◆ TimedHitPtr() [4/4]

TimedHitPtr::TimedHitPtr ( float  eventTime,
unsigned short  eventId,
const HIT *  pHit,
int  pileupType = 0 
)
inline

use this constructor when hit has a PileUpTimeEventIndex

Definition at line 27 of file TimedHitPtr.h.

Member Function Documentation

◆ eventId()

unsigned short TimedHitPtr::eventId ( ) const
inline

the index of the component event in PileUpEventInfo.

Allows, in principle, to navigate back to the parent event

Definition at line 42 of file TimedHitPtr.h.

42 { return m_eventId; }

◆ eventTime()

float TimedHitPtr::eventTime ( ) const
inline

t0 offset of the bunch xing containing the hit in ns.

This is an integer multiple of the bunch xing distance for a certain event (e.g. N*25ns)

Definition at line 50 of file TimedHitPtr.h.

50 { return m_eventTime; }

◆ operator*()

const HIT& TimedHitPtr::operator* ( ) const
inline

smart pointer interface

Definition at line 37 of file TimedHitPtr.h.

37 { return *m_pHit; }

◆ operator->()

const HIT* TimedHitPtr::operator-> ( ) const
inline

Definition at line 38 of file TimedHitPtr.h.

38 { return m_pHit; }

◆ operator=()

TimedHitPtr<HIT>& TimedHitPtr::operator= ( const TimedHitPtr< HIT > &  rhs)
inline

assignment operator

Definition at line 31 of file TimedHitPtr.h.

31  {
32  if(&rhs != this) { m_eventTime = rhs.m_eventTime; m_eventId = rhs.m_eventId; m_pileupType = rhs.m_pileupType; m_pHit = rhs.m_pHit; }
33  return *this;
34  }

◆ pileupType()

int TimedHitPtr::pileupType ( ) const
inline

the type of event which the hit came from (signal, low pt minbias, high pt minbias, cavern bg, etc.)

Definition at line 46 of file TimedHitPtr.h.

46 { return m_pileupType; }

Friends And Related Function Documentation

◆ hitTime

template<class FHIT >
float hitTime ( const TimedHitPtr< FHIT > &  )
friend

Member Data Documentation

◆ m_eventId

unsigned short TimedHitPtr::m_eventId
private

the index in PileUpEventInfo of the component event hosting this hit

Definition at line 57 of file TimedHitPtr.h.

◆ m_eventTime

float TimedHitPtr::m_eventTime
private

t0 offset of the bunch xing in ns

Definition at line 55 of file TimedHitPtr.h.

◆ m_pHit

const HIT* TimedHitPtr::m_pHit
private

Definition at line 59 of file TimedHitPtr.h.

◆ m_pileupType

int TimedHitPtr::m_pileupType
private

Definition at line 58 of file TimedHitPtr.h.


The documentation for this class was generated from the following files:
TimedHitPtr::m_pileupType
int m_pileupType
Definition: TimedHitPtr.h:58
TimedHitPtr::m_eventId
unsigned short m_eventId
the index in PileUpEventInfo of the component event hosting this hit
Definition: TimedHitPtr.h:57
TimedHitPtr::eventTime
float eventTime() const
t0 offset of the bunch xing containing the hit in ns.
Definition: TimedHitPtr.h:50
TimedHitPtr::pileupType
int pileupType() const
the type of event which the hit came from (signal, low pt minbias, high pt minbias,...
Definition: TimedHitPtr.h:46
TimedHitPtr::m_eventTime
float m_eventTime
t0 offset of the bunch xing in ns
Definition: TimedHitPtr.h:55
TimedHitPtr::m_pHit
const HIT * m_pHit
Definition: TimedHitPtr.h:59
TimedHitPtr::eventId
unsigned short eventId() const
the index of the component event in PileUpEventInfo.
Definition: TimedHitPtr.h:42