ATLAS Offline Software
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 
14 template <class HIT>
16 private:
17  typedef std::vector< TimedHitPtr<HIT> > TimedVector;
18 
19 public:
20  typedef typename TimedVector::const_iterator const_iterator;
21 
24  m_sorted(false) {}
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 
39 
40  //FIXME elementID type std::pair<const_iterator, const_iterator> detectorElement(????) const;
41 
42 
43 private:
44  void sortVector();
47  bool m_sorted;
48 };
49 
51 #endif
52 
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
TimedHitPtrCollection.icc
AthenaHitsVector.h
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
TimedHitPtrCollection::SortedException
thrown by insert
Definition: TimedHitPtrCollection.h:26
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::const_iterator
TimedVector::const_iterator const_iterator
Definition: TimedHitPtrCollection.h:20
TimedHitPtrCollection::m_currentHit
const_iterator m_currentHit
of current detector element;
Definition: TimedHitPtrCollection.h:46
PileUpTimeEventIndex.h
TimedHitPtr.h
TimedHitPtrCollection::TimedVector
std::vector< TimedHitPtr< HIT > > TimedVector
Definition: TimedHitPtrCollection.h:17
TimedHitPtrCollection::TimedHitPtrCollection
TimedHitPtrCollection()
Definition: TimedHitPtrCollection.h:22
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
TimedHitPtrCollection::insert
void insert(float evtTime, const AthenaHitsVector< HIT > *inputCollection)
TimedHitPtrCollection::insert
void insert(const PileUpTimeEventIndex &timeEventIndex, const AthenaHitsVector< HIT > *inputCollection)
TimedHitPtrCollection::m_sorted
bool m_sorted
flag the fact that the collection has been sorted
Definition: TimedHitPtrCollection.h:47
TimedHitPtrCollection
Definition: TimedHitPtrCollection.h:15
AthenaHitsVector
Definition: AthenaHitsVector.h:39
PileUpTimeEventIndex
a struct encapsulating the identifier of a pile-up event
Definition: PileUpTimeEventIndex.h:12
TimedHitPtrCollection::m_hits
TimedVector m_hits
Definition: TimedHitPtrCollection.h:45
TimedHitPtrCollection::sortVector
void sortVector()