ATLAS Offline Software
Loading...
Searching...
No Matches
TimedHitPtrCollection< HIT > Class Template Reference

#include <TimedHitPtrCollection.h>

Collaboration diagram for TimedHitPtrCollection< HIT >:

Classes

class  SortedException
 thrown by insert More...

Public Types

typedef TimedVector::const_iterator const_iterator

Public Member Functions

 TimedHitPtrCollection ()
void insert (const PileUpTimeEventIndex &timeEventIndex, const AthenaHitsVector< HIT > *inputCollection)
void insert (float evtTime, const AthenaHitsVector< HIT > *inputCollection)
bool nextDetectorElement (const_iterator &b, const_iterator &e)
 sets an iterator range with the hits of current detector element returns a bool when done

Private Types

typedef std::vector< TimedHitPtr< HIT > > TimedVector

Private Member Functions

void sortVector ()

Private Attributes

TimedVector m_hits
const_iterator m_currentHit
 of current detector element;
bool m_sorted
 flag the fact that the collection has been sorted

Detailed Description

template<class HIT>
class TimedHitPtrCollection< HIT >

Definition at line 15 of file TimedHitPtrCollection.h.

Member Typedef Documentation

◆ const_iterator

template<class HIT>
typedef TimedVector::const_iterator TimedHitPtrCollection< HIT >::const_iterator

Definition at line 20 of file TimedHitPtrCollection.h.

◆ TimedVector

template<class HIT>
typedef std::vector< TimedHitPtr<HIT> > TimedHitPtrCollection< HIT >::TimedVector
private

Definition at line 17 of file TimedHitPtrCollection.h.

Constructor & Destructor Documentation

◆ TimedHitPtrCollection()

template<class HIT>
TimedHitPtrCollection< HIT >::TimedHitPtrCollection ( )
inline

Definition at line 22 of file TimedHitPtrCollection.h.

22 : m_hits(),
23 m_currentHit(m_hits.begin()),
24 m_sorted(false) {}
const_iterator m_currentHit
of current detector element;
bool m_sorted
flag the fact that the collection has been sorted

Member Function Documentation

◆ insert() [1/2]

template<class HIT>
void TimedHitPtrCollection< HIT >::insert ( const PileUpTimeEventIndex & timeEventIndex,
const AthenaHitsVector< HIT > * inputCollection )

◆ insert() [2/2]

template<class HIT>
void TimedHitPtrCollection< HIT >::insert ( float evtTime,
const AthenaHitsVector< HIT > * inputCollection )
Exceptions
SortedExceptionto show that iteration will restart from begin()

◆ nextDetectorElement()

template<class HIT>
bool TimedHitPtrCollection< HIT >::nextDetectorElement ( const_iterator & b,
const_iterator & e )

sets an iterator range with the hits of current detector element returns a bool when done

Exceptions
SortedExceptionto show that iteration will restart from begin()

◆ sortVector()

template<class HIT>
void TimedHitPtrCollection< HIT >::sortVector ( )
private

Member Data Documentation

◆ m_currentHit

template<class HIT>
const_iterator TimedHitPtrCollection< HIT >::m_currentHit
private

of current detector element;

Definition at line 46 of file TimedHitPtrCollection.h.

◆ m_hits

template<class HIT>
TimedVector TimedHitPtrCollection< HIT >::m_hits
private

Definition at line 45 of file TimedHitPtrCollection.h.

◆ m_sorted

template<class HIT>
bool TimedHitPtrCollection< HIT >::m_sorted
private

flag the fact that the collection has been sorted

Definition at line 47 of file TimedHitPtrCollection.h.


The documentation for this class was generated from the following file: