ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonCalib::VBHBinPtrSrt Class Reference

#include <VariableBinwidthHistogramBin.h>

Collaboration diagram for MuonCalib::VBHBinPtrSrt:

Public Member Functions

 VBHBinPtrSrt ()
 default constructor More...
 
 VBHBinPtrSrt (VariableBinwidthHistogramBin *bin)
 initializing constructor More...
 
void Initialize (VariableBinwidthHistogramBin *bin)
 initialize More...
 
VariableBinwidthHistogramBinBin ()
 Get reference to bin. More...
 
bool operator> (const VBHBinPtrSrt &other) const
 Operator > for sorting bins by content. More...
 
bool operator< (const VBHBinPtrSrt &other) const
 Operator < for sorting bins by content. More...
 

Private Attributes

VariableBinwidthHistogramBinm_bin
 pointer to bin More...
 

Detailed Description

A pointer to a VariableBinwidthHistogramBin which supports sorting

Author
Felix.nosp@m..Rau.nosp@m.scher.nosp@m.@Phy.nosp@m.sik.U.nosp@m.ni-M.nosp@m.uench.nosp@m.en.D.nosp@m.e
Date
February 2006

Definition at line 135 of file VariableBinwidthHistogramBin.h.

Constructor & Destructor Documentation

◆ VBHBinPtrSrt() [1/2]

MuonCalib::VBHBinPtrSrt::VBHBinPtrSrt ( )
inline

default constructor

Definition at line 139 of file VariableBinwidthHistogramBin.h.

139 {}

◆ VBHBinPtrSrt() [2/2]

MuonCalib::VBHBinPtrSrt::VBHBinPtrSrt ( VariableBinwidthHistogramBin bin)
inline

initializing constructor

Parameters
binPointer to bin

Definition at line 145 of file VariableBinwidthHistogramBin.h.

145 : m_bin(bin) {}

Member Function Documentation

◆ Bin()

VariableBinwidthHistogramBin& MuonCalib::VBHBinPtrSrt::Bin ( )
inline

Get reference to bin.

Definition at line 158 of file VariableBinwidthHistogramBin.h.

158 { return *m_bin; }

◆ Initialize()

void MuonCalib::VBHBinPtrSrt::Initialize ( VariableBinwidthHistogramBin bin)
inline

initialize

Parameters
binPointer to bin

Definition at line 153 of file VariableBinwidthHistogramBin.h.

153 { m_bin = bin; }

◆ operator<()

bool MuonCalib::VBHBinPtrSrt::operator< ( const VBHBinPtrSrt other) const
inline

Operator < for sorting bins by content.

Parameters
otherOther bin

Definition at line 170 of file VariableBinwidthHistogramBin.h.

170 { return m_bin->Width() < other.m_bin->Width(); }

◆ operator>()

bool MuonCalib::VBHBinPtrSrt::operator> ( const VBHBinPtrSrt other) const
inline

Operator > for sorting bins by content.

Parameters
otherOther bin

Definition at line 164 of file VariableBinwidthHistogramBin.h.

164 { return m_bin->Width() > other.m_bin->Width(); }

Member Data Documentation

◆ m_bin

VariableBinwidthHistogramBin* MuonCalib::VBHBinPtrSrt::m_bin
private

pointer to bin

Definition at line 176 of file VariableBinwidthHistogramBin.h.


The documentation for this class was generated from the following file:
MuonCalib::VBHBinPtrSrt::m_bin
VariableBinwidthHistogramBin * m_bin
pointer to bin
Definition: VariableBinwidthHistogramBin.h:176
bin
Definition: BinsDiffFromStripMedian.h:43
plotBeamSpotVxVal.bin
int bin
Definition: plotBeamSpotVxVal.py:83
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonCalib::VariableBinwidthHistogramBin::Width
double Width() const
Get width of the bin.
Definition: VariableBinwidthHistogramBin.h:108