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

#include <BeamHaloParticleBuffer.h>

Collaboration diagram for BinnedInterval:

Public Member Functions

 BinnedInterval (double upperBinEdge, const std::vector< double > &intervalUpperBinEdges)
 
 BinnedInterval (const BinnedInterval &binnedInterval)
 
 ~BinnedInterval ()
 
BinnedIntervaloperator= (const BinnedInterval &rhs)
 Assignment operator. More...
 
double upperBinEdge () const
 
const std::vector< double > * intervalUpperBinEdges () const
 

Private Attributes

double m_upperBinEdge
 
std::vector< double > * m_intervalUpperBinEdges
 

Detailed Description

Definition at line 17 of file BeamHaloParticleBuffer.h.

Constructor & Destructor Documentation

◆ BinnedInterval() [1/2]

BinnedInterval::BinnedInterval ( double  upperBinEdge,
const std::vector< double > &  intervalUpperBinEdges 
)

Definition at line 12 of file BeamHaloParticleBuffer.cxx.

14  m_intervalUpperBinEdges = new std::vector<double>(intervalUpperBinEdges);
15 }

◆ BinnedInterval() [2/2]

BinnedInterval::BinnedInterval ( const BinnedInterval binnedInterval)

Definition at line 19 of file BeamHaloParticleBuffer.cxx.

19  {
20  m_upperBinEdge = binnedInterval.m_upperBinEdge;
21  m_intervalUpperBinEdges = new std::vector<double>(*(binnedInterval.m_intervalUpperBinEdges));
22 }

◆ ~BinnedInterval()

BinnedInterval::~BinnedInterval ( )

Definition at line 26 of file BeamHaloParticleBuffer.cxx.

26  {
28 }

Member Function Documentation

◆ intervalUpperBinEdges()

const std::vector<double>* BinnedInterval::intervalUpperBinEdges ( ) const
inline

Definition at line 38 of file BeamHaloParticleBuffer.h.

38 { return m_intervalUpperBinEdges; }

◆ operator=()

BinnedInterval& BinnedInterval::operator= ( const BinnedInterval rhs)
inline

Assignment operator.

Definition at line 25 of file BeamHaloParticleBuffer.h.

26  {
27  if ( this != &rhs ) // Fix Coverity SELF_ASSIGN
28  {
30  std::vector<double>* tmp = new std::vector<double>(*(rhs.m_intervalUpperBinEdges));
33  }
34  return *this;
35  }

◆ upperBinEdge()

double BinnedInterval::upperBinEdge ( ) const
inline

Definition at line 37 of file BeamHaloParticleBuffer.h.

37 { return m_upperBinEdge; }

Member Data Documentation

◆ m_intervalUpperBinEdges

std::vector<double>* BinnedInterval::m_intervalUpperBinEdges
private

Definition at line 42 of file BeamHaloParticleBuffer.h.

◆ m_upperBinEdge

double BinnedInterval::m_upperBinEdge
private

Definition at line 41 of file BeamHaloParticleBuffer.h.


The documentation for this class was generated from the following files:
BinnedInterval::m_upperBinEdge
double m_upperBinEdge
Definition: BeamHaloParticleBuffer.h:41
BinnedInterval::m_intervalUpperBinEdges
std::vector< double > * m_intervalUpperBinEdges
Definition: BeamHaloParticleBuffer.h:42
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
BinnedInterval::upperBinEdge
double upperBinEdge() const
Definition: BeamHaloParticleBuffer.h:37
BinnedInterval::intervalUpperBinEdges
const std::vector< double > * intervalUpperBinEdges() const
Definition: BeamHaloParticleBuffer.h:38