ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
HitManagement
HitManagement
TimedHitPtrCollection.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef HITMANAGEMENT_TIMEDHITPTRCOLLECTION
6
#define HITMANAGEMENT_TIMEDHITPTRCOLLECTION
7
8
#include <functional>
9
#include <vector>
10
#include "
HitManagement/AthenaHitsVector.h
"
11
#include "
HitManagement/TimedHitPtr.h
"
12
#include "
EventInfo/PileUpTimeEventIndex.h
"
13
14
template
<
class
HIT>
15
class
TimedHitPtrCollection
{
16
private
:
17
typedef
std::vector< TimedHitPtr<HIT> >
TimedVector
;
18
19
public
:
20
typedef
typename
TimedVector::const_iterator
const_iterator
;
21
22
TimedHitPtrCollection
() :
m_hits
(),
23
m_currentHit
(
m_hits
.begin()),
24
m_sorted
(false) {}
25
26
class
SortedException
{};
27
28
void
29
insert
(
const
PileUpTimeEventIndex
& timeEventIndex,
const
AthenaHitsVector<HIT>
* inputCollection);
31
32
void
33
insert
(
float
evtTime,
const
AthenaHitsVector<HIT>
* inputCollection);
35
38
bool
nextDetectorElement
(
const_iterator
& b,
const_iterator
& e);
39
40
//FIXME elementID type std::pair<const_iterator, const_iterator> detectorElement(????) const;
41
42
43
private
:
44
void
sortVector
();
45
TimedVector
m_hits
;
46
const_iterator
m_currentHit
;
47
bool
m_sorted
;
48
};
49
50
#include "
TimedHitPtrCollection.icc
"
51
#endif
52
AthenaHitsVector.h
PileUpTimeEventIndex.h
TimedHitPtrCollection.icc
TimedHitPtr.h
AthenaHitsVector
Definition
AthenaHitsVector.h:87
TimedHitPtrCollection::SortedException
thrown by insert
Definition
TimedHitPtrCollection.h:26
TimedHitPtrCollection::m_currentHit
const_iterator m_currentHit
of current detector element;
Definition
TimedHitPtrCollection.h:46
TimedHitPtrCollection::m_sorted
bool m_sorted
flag the fact that the collection has been sorted
Definition
TimedHitPtrCollection.h:47
TimedHitPtrCollection::m_hits
TimedVector m_hits
Definition
TimedHitPtrCollection.h:45
TimedHitPtrCollection::nextDetectorElement
bool nextDetectorElement(const_iterator &b, const_iterator &e)
sets an iterator range with the hits of current detector element returns a bool when done
TimedHitPtrCollection::TimedVector
std::vector< TimedHitPtr< HIT > > TimedVector
Definition
TimedHitPtrCollection.h:17
TimedHitPtrCollection::const_iterator
TimedVector::const_iterator const_iterator
Definition
TimedHitPtrCollection.h:20
TimedHitPtrCollection::sortVector
void sortVector()
TimedHitPtrCollection::insert
void insert(const PileUpTimeEventIndex &timeEventIndex, const AthenaHitsVector< HIT > *inputCollection)
TimedHitPtrCollection::insert
void insert(float evtTime, const AthenaHitsVector< HIT > *inputCollection)
TimedHitPtrCollection::TimedHitPtrCollection
TimedHitPtrCollection()
Definition
TimedHitPtrCollection.h:22
PileUpTimeEventIndex
a struct encapsulating the identifier of a pile-up event
Definition
PileUpTimeEventIndex.h:12
Generated on
for ATLAS Offline Software by
1.17.0