ATLAS Offline Software
Loading...
Searching...
No Matches
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>
13
14template <class HIT>
16private:
17 typedef std::vector< TimedHitPtr<HIT> > TimedVector;
18
19public:
20 typedef typename TimedVector::const_iterator const_iterator;
21
23 m_currentHit(m_hits.begin()),
24 m_sorted(false) {}
25
27
28 void
29 insert(const PileUpTimeEventIndex& timeEventIndex, const AthenaHitsVector<HIT>* inputCollection);
31
32 void
33 insert(float evtTime, const AthenaHitsVector<HIT>* inputCollection);
35
39
40 //FIXME elementID type std::pair<const_iterator, const_iterator> detectorElement(????) const;
41
42
43private:
44 void sortVector();
47 bool m_sorted;
48};
49
51#endif
52
const_iterator m_currentHit
of current detector element;
bool m_sorted
flag the fact that the collection has been sorted
bool nextDetectorElement(const_iterator &b, const_iterator &e)
sets an iterator range with the hits of current detector element returns a bool when done
std::vector< TimedHitPtr< HIT > > TimedVector
TimedVector::const_iterator const_iterator
void insert(const PileUpTimeEventIndex &timeEventIndex, const AthenaHitsVector< HIT > *inputCollection)
void insert(float evtTime, const AthenaHitsVector< HIT > *inputCollection)
a struct encapsulating the identifier of a pile-up event