ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
EMAPMatrixAxis Class Reference

#include <EMAPMatrix.h>

Collaboration diagram for EMAPMatrixAxis:

Public Member Functions

 EMAPMatrixAxis (std::string name, const std::vector< double > &bins)
 Setup the axis again. More...
 
 ~EMAPMatrixAxis ()
 Default Destructor. More...
 
const std::vector< double > & getBinningInformation () const
 
unsigned int getNumberOfBins () const
 Return number of bins. More...
 
int getBinIndex (double x) const
 Returns number of index of bin in which the value x falls. More...
 
bool isInRange (double x) const
 returns mean of bin at index i More...
 
const std::string & getName () const
 

Private Attributes

std::string m_name
 
std::vector< double > m_vecBins
 

Detailed Description

Definition at line 31 of file EMAPMatrix.h.

Constructor & Destructor Documentation

◆ EMAPMatrixAxis()

EMAPMatrixAxis::EMAPMatrixAxis ( std::string  name,
const std::vector< double > &  bins 
)
inline

Setup the axis again.

All old information will be destroyed

Parameters
name: Name of axis, e.g. "Eta"
bins: stl std::vector with binning values - must be in increasing order

Definition at line 39 of file EMAPMatrix.h.

39 : m_name(std::move(name)), m_vecBins(bins) {};

◆ ~EMAPMatrixAxis()

EMAPMatrixAxis::~EMAPMatrixAxis ( )
inline

Default Destructor.

Definition at line 43 of file EMAPMatrix.h.

43 {};

Member Function Documentation

◆ getBinIndex()

int EMAPMatrixAxis::getBinIndex ( double  x) const

Returns number of index of bin in which the value x falls.

◆ getBinningInformation()

const std::vector<double>& EMAPMatrixAxis::getBinningInformation ( ) const
inline

Definition at line 45 of file EMAPMatrix.h.

45 {return m_vecBins; };

◆ getName()

const std::string& EMAPMatrixAxis::getName ( ) const
inline

Definition at line 62 of file EMAPMatrix.h.

62 {return m_name; };

◆ getNumberOfBins()

unsigned int EMAPMatrixAxis::getNumberOfBins ( ) const

Return number of bins.

◆ isInRange()

bool EMAPMatrixAxis::isInRange ( double  x) const

returns mean of bin at index i

Member Data Documentation

◆ m_name

std::string EMAPMatrixAxis::m_name
private

Definition at line 65 of file EMAPMatrix.h.

◆ m_vecBins

std::vector<double> EMAPMatrixAxis::m_vecBins
private

Definition at line 66 of file EMAPMatrix.h.


The documentation for this class was generated from the following file:
EMAPMatrixAxis::m_name
std::string m_name
Definition: EMAPMatrix.h:62
plotting.yearwise_luminosity_vs_mu.bins
bins
Definition: yearwise_luminosity_vs_mu.py:30
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
EMAPMatrixAxis::m_vecBins
std::vector< double > m_vecBins
Definition: EMAPMatrix.h:66