ATLAS Offline Software
RingerRings.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 RINGERRINGS_H
6 #define RINGERRINGS_H
7 
8 
9 #include <vector>
10 
11 #include "AthenaKernel/CLASS_DEF.h"
12 #include "GaudiKernel/MsgStream.h"
13 
18 class RingerRings {
19 
20 private:
21  std::vector<float> m_rings; //< Holds the generated rings.
22 
23 public:
24 
28  RingerRings();
29 
35  RingerRings(const std::vector<float> &rings);
36 
37 
44  RingerRings(const unsigned int nRings, const float *rings);
45 
47  std::vector<float> &rings();
48  const std::vector<float> &rings() const;
49  void rings(const std::vector<float> &r);
50  float &at(const unsigned int i);
51  const float &at(const unsigned int i) const;
52  unsigned int size() const;
53  const float &operator [](const unsigned int i) const;
54  float &operator [](const unsigned int i);
55 
60  void print ( MsgStream& log ) const;
61 };
62 
63 CLASS_DEF( RingerRings , 169208235 , 1 )
64 
65 #endif
66 
67 
beamspotman.r
def r
Definition: beamspotman.py:676
RingerRings::at
float & at(const unsigned int i)
Definition: RingerRings.cxx:35
RingerRings::print
void print(MsgStream &log) const
Prints some debug message.
Definition: RingerRings.cxx:55
RingerRings::m_rings
std::vector< float > m_rings
Definition: RingerRings.h:21
lumiFormat.i
int i
Definition: lumiFormat.py:92
RingerRings::RingerRings
RingerRings()
Class default constructor.
Definition: RingerRings.cxx:7
RingerRings::size
unsigned int size() const
Definition: RingerRings.cxx:43
RingerRings
This class carries the generated Rings.
Definition: RingerRings.h:18
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
RingerRings::operator[]
const float & operator[](const unsigned int i) const
Definition: RingerRings.cxx:47
CLASS_DEF.h
macros to associate a CLID to a type
RingerRings::rings
std::vector< float > & rings()
Acessor methods.
Definition: RingerRings.cxx:23