ATLAS Offline Software
Loading...
Searching...
No Matches
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
9
10#include <vector>
11
12template<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;
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
57};
58
60
61#endif
#define y
#define x
bool getStandardDevs(const T &x, const T &y, T &theData) const
TB2DProfiler(size_t xBins, const T &xLow, const T &xHigh, size_t yBins, const T &yLow, const T &yHigh)
size_t getIndex(const T &x, const T &y) const
TB2DProfiler(const TB2DProfiler &)=delete
bool getStandardDevs(size_t i, size_t j, T &theData) const
const TBProfiler< T > & getYBinning() const
size_t getIndex(size_t i, size_t j) const
bool getAverages(size_t i, size_t j, T &theData) const
TB2DProfiler & operator=(const TB2DProfiler &)=delete
virtual ~TB2DProfiler()
bool getBinEntries(const T &x, const T &y, size_t &theEntries) const
void addData(const T &xPos, const T &yPos, const T &theData)
TBProfiler< T > * m_yBinning
size_t getXIndex(const T &x) const
bool getAverages(const T &x, const T &y, T &theData) const
bool getBinEntries(size_t i, size_t j, size_t &theEntries) const
TBProfiler< T > * m_store
const TBProfiler< T > & getXBinning() const
bool getErrors(const T &x, const T &y, T &theData) const
TBProfiler< T > * m_xBinning
std::vector< std::vector< T > > matrix_t
void addData(size_t i, size_t j, const T &theData)
size_t getNumberOfChannels() const
size_t getYIndex(const T &y) const
bool getErrors(size_t i, size_t j, T &theData) const