ATLAS Offline Software
Loading...
Searching...
No Matches
HistoryIterator.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
9
10#ifndef LArSamples_HistoryIterator_H
11#define LArSamples_HistoryIterator_H
12
14
15namespace LArSamples {
16
17 class Interface;
18 class History;
19
21
22 public:
23
25 HistoryIterator(const Interface& interface, unsigned int pos = 0, double eMin = -1, double adcMaxMin = -1);
26
27 virtual ~HistoryIterator() { }
28
29 const History* history() const;
30 unsigned int pos() const { return m_pos; }
31
32 bool isValid() const;
33
34 const History* operator*() const { return history(); }
35 HistoryIterator* operator++();
36 const History* next();
37
38 bool operator==(unsigned int otherPos) const { return pos() == otherPos; }
39
40 private:
41
43 unsigned int m_pos;
44
46 };
47}
48
49#endif
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
Definition AtlasPID.h:878
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
storage of the time histories of all the cells
unsigned int pos() const
const Interface * m_interface
HistoryIterator(const Interface &interface, unsigned int pos=0, double eMin=-1, double adcMaxMin=-1)
Constructor.
bool operator==(unsigned int otherPos) const
const History * operator*() const
const History * history() const