ATLAS Offline Software
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TimedHitCollection< HIT > Class Template Reference

#include <TimedHitCollection.h>

Collaboration diagram for TimedHitCollection< HIT >:

Classes

class  SortedException
 thrown by insert More...
 

Public Types

typedef TimedVector::const_iterator const_iterator
 

Public Member Functions

 TimedHitCollection ()
 
 TimedHitCollection (unsigned int numberOfHits)
 
void insert (const PileUpTimeEventIndex &timeEventIndex, const AtlasHitsVector< HIT > *inputCollection)
 
void insert (float evtTime, const AtlasHitsVector< HIT > *inputCollection)
 
void reserve (unsigned int numberOfHits)
 reserve a timed vector numberOfHits in size. More...
 
bool nextDetectorElement (const_iterator &b, const_iterator &e)
 sets an iterator range with the hits of current detector element returns a bool when done More...
 

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; More...
 
bool m_sorted
 flag the fact that the collection has been sorted More...
 

Detailed Description

template<class HIT>
class TimedHitCollection< HIT >

Definition at line 15 of file TimedHitCollection.h.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 20 of file TimedHitCollection.h.

◆ TimedVector

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

Definition at line 17 of file TimedHitCollection.h.

Constructor & Destructor Documentation

◆ TimedHitCollection() [1/2]

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

Definition at line 22 of file TimedHitCollection.h.

22  : m_hits(),
23  m_currentHit(m_hits.begin()),
24  m_sorted(false) {}

◆ TimedHitCollection() [2/2]

template<class HIT >
TimedHitCollection< HIT >::TimedHitCollection ( unsigned int  numberOfHits)
inline

Definition at line 26 of file TimedHitCollection.h.

26  : m_hits(),
27  m_currentHit(m_hits.begin()),
28  m_sorted(false) {
29  m_hits.reserve(numberOfHits);
30  return;
31 }

Member Function Documentation

◆ insert() [1/2]

template<class HIT >
void TimedHitCollection< HIT >::insert ( const PileUpTimeEventIndex timeEventIndex,
const AtlasHitsVector< HIT > *  inputCollection 
)

◆ insert() [2/2]

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

◆ nextDetectorElement()

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

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

◆ reserve()

template<class HIT >
void TimedHitCollection< HIT >::reserve ( unsigned int  numberOfHits)

reserve a timed vector numberOfHits in size.

Exceptions
SortedExceptionto show that iteration will restart from begin()

◆ sortVector()

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

Member Data Documentation

◆ m_currentHit

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

of current detector element;

Definition at line 57 of file TimedHitCollection.h.

◆ m_hits

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

Definition at line 56 of file TimedHitCollection.h.

◆ m_sorted

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

flag the fact that the collection has been sorted

Definition at line 58 of file TimedHitCollection.h.


The documentation for this class was generated from the following file:
TimedHitCollection::m_currentHit
const_iterator m_currentHit
of current detector element;
Definition: TimedHitCollection.h:57
TimedHitCollection::m_sorted
bool m_sorted
flag the fact that the collection has been sorted
Definition: TimedHitCollection.h:58
TimedHitCollection::m_hits
TimedVector m_hits
Definition: TimedHitCollection.h:56