ATLAS Offline Software
TB2DProfiler.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TBUTILS_TB2DPROFILER_H
6 #define TBUTILS_TB2DPROFILER_H
7 
8 #include "TBUtils/TBProfiler.h"
9 
10 #include <vector>
11 
12 template<typename T>
14 {
15  public:
16 
17  typedef std::vector< std::vector<T> > matrix_t;
18 
20  TB2DProfiler(size_t xBins, const T& xLow, const T& xHigh,
21  size_t yBins, const T& yLow, const T& yHigh);
22  TB2DProfiler(const TB2DProfiler&) = delete;
23  TB2DProfiler& operator=(const TB2DProfiler&) = delete;
24 
25  virtual ~TB2DProfiler();
26 
27  void addData(const T& xPos, const T& yPos, const T& theData);
28  void addData(size_t i, size_t j, const T& theData);
29 
30  bool getAverages(size_t i, size_t j, T& theData) const;
31  bool getAverages(const T& x, const T& y, T& theData) const;
32  bool getStandardDevs(size_t i, size_t j, T& theData) const;
33  bool getStandardDevs(const T&x, const T& y, T& theData) const;
34  bool getErrors(size_t i, size_t j, T& theData) const;
35  bool getErrors(const T& x, const T& y, T& theData) const;
36  bool getBinEntries(size_t i, size_t j, size_t& theEntries) const;
37  bool getBinEntries(const T& x, const T& y, size_t& theEntries) const;
38 
39  // size_t getEntries(size_t i, size_t j) const;
40  size_t getXIndex(const T& x) const;
41  size_t getYIndex(const T& y) const;
42  size_t getNumberOfChannels() const;
43 
44  const TBProfiler<T>& getXBinning() const;
45  const TBProfiler<T>& getYBinning() const;
46 
47  protected:
48 
52 
53  size_t getIndex(const T& x, const T& y) const;
54  size_t getIndex(size_t i, size_t j) const;
55 
56  bool m_skipFlag;
57 };
58 
59 #include "TBUtils/TB2DProfiler.icc"
60 
61 #endif
TB2DProfiler::addData
void addData(const T &xPos, const T &yPos, const T &theData)
TB2DProfiler::addData
void addData(size_t i, size_t j, const T &theData)
MakeTH3DFromTH2Ds.yBins
list yBins
Definition: MakeTH3DFromTH2Ds.py:80
TB2DProfiler::getBinEntries
bool getBinEntries(size_t i, size_t j, size_t &theEntries) const
TB2DProfiler::~TB2DProfiler
virtual ~TB2DProfiler()
TB2DProfiler::getBinEntries
bool getBinEntries(const T &x, const T &y, size_t &theEntries) const
TB2DProfiler::getAverages
bool getAverages(const T &x, const T &y, T &theData) const
TB2DProfiler::m_xBinning
TBProfiler< T > * m_xBinning
Definition: TB2DProfiler.h:49
TB2DProfiler::getIndex
size_t getIndex(size_t i, size_t j) const
TB2DProfiler::getErrors
bool getErrors(size_t i, size_t j, T &theData) const
TB2DProfiler::TB2DProfiler
TB2DProfiler(size_t xBins, const T &xLow, const T &xHigh, size_t yBins, const T &yLow, const T &yHigh)
TB2DProfiler::getNumberOfChannels
size_t getNumberOfChannels() const
x
#define x
TB2DProfiler::getAverages
bool getAverages(size_t i, size_t j, T &theData) const
TB2DProfiler::m_store
TBProfiler< T > * m_store
Definition: TB2DProfiler.h:51
lumiFormat.i
int i
Definition: lumiFormat.py:92
TB2DProfiler::getYBinning
const TBProfiler< T > & getYBinning() const
TB2DProfiler::getErrors
bool getErrors(const T &x, const T &y, T &theData) const
TBProfiler
Definition: TBProfiler.h:13
TB2DProfiler::operator=
TB2DProfiler & operator=(const TB2DProfiler &)=delete
TB2DProfiler::getYIndex
size_t getYIndex(const T &y) const
TB2DProfiler::getStandardDevs
bool getStandardDevs(size_t i, size_t j, T &theData) const
TB2DProfiler
Definition: TB2DProfiler.h:14
TB2DProfiler::m_yBinning
TBProfiler< T > * m_yBinning
Definition: TB2DProfiler.h:50
TB2DProfiler::matrix_t
std::vector< std::vector< T > > matrix_t
Definition: TB2DProfiler.h:17
TBProfiler.h
TB2DProfiler::getStandardDevs
bool getStandardDevs(const T &x, const T &y, T &theData) const
TB2DProfiler::TB2DProfiler
TB2DProfiler()
TB2DProfiler::m_skipFlag
bool m_skipFlag
Definition: TB2DProfiler.h:56
TB2DProfiler.icc
y
#define y
TB2DProfiler::getXBinning
const TBProfiler< T > & getXBinning() const
TB2DProfiler::getIndex
size_t getIndex(const T &x, const T &y) const
TB2DProfiler::TB2DProfiler
TB2DProfiler(const TB2DProfiler &)=delete
MakeTH3DFromTH2Ds.xBins
list xBins
Definition: MakeTH3DFromTH2Ds.py:76
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35
TB2DProfiler::getXIndex
size_t getXIndex(const T &x) const