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

This class carries the generated Rings. More...

#include <RingerRings.h>

Collaboration diagram for RingerRings:

Public Member Functions

 RingerRings ()
 Class default constructor. More...
 
 RingerRings (const std::vector< float > &rings)
 Class constructor. More...
 
 RingerRings (const unsigned int nRings, const float *rings)
 Class constructor. More...
 
std::vector< float > & rings ()
 Acessor methods. More...
 
const std::vector< float > & rings () const
 
void rings (const std::vector< float > &r)
 
float & at (const unsigned int i)
 
const float & at (const unsigned int i) const
 
unsigned int size () const
 
const float & operator[] (const unsigned int i) const
 
float & operator[] (const unsigned int i)
 
void print (MsgStream &log) const
 Prints some debug message. More...
 

Private Attributes

std::vector< float > m_rings
 

Detailed Description

This class carries the generated Rings.

Definition at line 18 of file RingerRings.h.

Constructor & Destructor Documentation

◆ RingerRings() [1/3]

RingerRings::RingerRings ( )

Class default constructor.

Definition at line 7 of file RingerRings.cxx.

8  : m_rings() {
9 }

◆ RingerRings() [2/3]

RingerRings::RingerRings ( const std::vector< float > &  rings)

Class constructor.

Parameters
ringsThe rings to be saved.

Definition at line 11 of file RingerRings.cxx.

12  : m_rings(rings) {
13 }

◆ RingerRings() [3/3]

RingerRings::RingerRings ( const unsigned int  nRings,
const float *  rings 
)

Class constructor.

Parameters
nRingsNumber of rings.
ringsRing array.

Definition at line 15 of file RingerRings.cxx.

15  {
16  if (!rings)
17  return;
18  for (unsigned int i = 0; i < nRings; ++i) {
19  m_rings.push_back(rings[i]);
20  }
21 }

Member Function Documentation

◆ at() [1/2]

float & RingerRings::at ( const unsigned int  i)

Definition at line 35 of file RingerRings.cxx.

35  {
36  return m_rings[i];
37 }

◆ at() [2/2]

const float & RingerRings::at ( const unsigned int  i) const

Definition at line 39 of file RingerRings.cxx.

39  {
40  return m_rings[i];
41 }

◆ operator[]() [1/2]

float & RingerRings::operator[] ( const unsigned int  i)

Definition at line 51 of file RingerRings.cxx.

51  {
52  return m_rings[i];
53 }

◆ operator[]() [2/2]

const float & RingerRings::operator[] ( const unsigned int  i) const

Definition at line 47 of file RingerRings.cxx.

47  {
48  return m_rings[i];
49 }

◆ print()

void RingerRings::print ( MsgStream &  log) const

Prints some debug message.

Parameters
logThe msg stream to print the info to.

Definition at line 55 of file RingerRings.cxx.

55  {
56  log << MSG::DEBUG << "Dumping RingerRings information for debugging. There are " << m_rings.size() << " rings." << endmsg;
57  log << MSG::DEBUG << "Ringer values: ";
58  for (std::vector<float>::const_iterator i = m_rings.begin(); i != m_rings.end(); ++i) {
59  log << (*i) << " ";
60  }
61  log << endmsg;
62 }

◆ rings() [1/3]

std::vector< float > & RingerRings::rings ( )

Acessor methods.

Definition at line 23 of file RingerRings.cxx.

23  {
24  return m_rings;
25 }

◆ rings() [2/3]

const std::vector< float > & RingerRings::rings ( ) const

Definition at line 27 of file RingerRings.cxx.

27  {
28  return m_rings;
29 }

◆ rings() [3/3]

void RingerRings::rings ( const std::vector< float > &  r)

Definition at line 31 of file RingerRings.cxx.

31  {
32  m_rings = r;
33 }

◆ size()

unsigned int RingerRings::size ( ) const

Definition at line 43 of file RingerRings.cxx.

43  {
44  return m_rings.size();
45 }

Member Data Documentation

◆ m_rings

std::vector<float> RingerRings::m_rings
private

Definition at line 21 of file RingerRings.h.


The documentation for this class was generated from the following files:
beamspotman.r
def r
Definition: beamspotman.py:676
RingerRings::m_rings
std::vector< float > m_rings
Definition: RingerRings.h:21
lumiFormat.i
int i
Definition: lumiFormat.py:85
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
RingerRings::rings
std::vector< float > & rings()
Acessor methods.
Definition: RingerRings.cxx:23