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

#include <CaloRings.h>

Collaboration diagram for CaloRings:

Public Types

typedef std::vector< RingSet >::iterator iterator
 
typedef std::vector< RingSet >::const_iterator const_iterator
 

Public Member Functions

 CaloRings ()
 Calo Rings ///. More...
 
virtual ~CaloRings ()
 
void addRingSet (unsigned int numberOfRings, std::vector< CaloCell_ID::CaloSample > &layers, float deltaEta, float deltaPhi)
 
RingSetat (unsigned int i)
 
const RingSetat (unsigned int i) const
 
RingSetoperator[] (unsigned int i)
 
const RingSetoperator[] (unsigned int i) const
 
void clear ()
 
float ringAt (unsigned int nRingSet, unsigned int nRing)
 
size_t size () const
 
std::vector< RingSet >::iterator begin ()
 
std::vector< RingSet >::iterator end ()
 
std::vector< RingSet >::const_iterator begin () const
 
std::vector< RingSet >::const_iterator end () const
 

Private Attributes

std::vector< RingSetm_ringsets
 

Detailed Description

Definition at line 58 of file Reconstruction/egamma/egammaEvent/egammaEvent/CaloRings.h.

Member Typedef Documentation

◆ const_iterator

◆ iterator

typedef std::vector<RingSet>::iterator CaloRings::iterator

Constructor & Destructor Documentation

◆ CaloRings()

CaloRings::CaloRings ( )

Calo Rings ///.

Definition at line 113 of file CaloRings.cxx.

114  : m_ringsets(0)
115 {
116 }

◆ ~CaloRings()

virtual CaloRings::~CaloRings ( )
inlinevirtual

Definition at line 64 of file Reconstruction/egamma/egammaEvent/egammaEvent/CaloRings.h.

64 { };

Member Function Documentation

◆ addRingSet()

void CaloRings::addRingSet ( unsigned int  numberOfRings,
std::vector< CaloCell_ID::CaloSample > &  layers,
float  deltaEta,
float  deltaPhi 
)

Definition at line 118 of file CaloRings.cxx.

120  {
121 
122  RingSet r;
123  r.m_rings.clear();
124  r.m_layers = layers;
125  r.m_deltaEta = deltaEta;
126  r.m_deltaPhi = deltaPhi;
127 
128  for (unsigned int j = 0; j < numberOfRings; ++j) {
129  r.m_rings.push_back(0);
130  }
131  m_ringsets.push_back(r);
132 }

◆ at() [1/2]

RingSet & CaloRings::at ( unsigned int  i)

Definition at line 164 of file CaloRings.cxx.

164  {
165  return m_ringsets.at(i);
166 }

◆ at() [2/2]

const RingSet & CaloRings::at ( unsigned int  i) const

Definition at line 172 of file CaloRings.cxx.

172  {
173  return m_ringsets.at(i);
174 }

◆ begin() [1/2]

std::vector< RingSet >::iterator CaloRings::begin ( )

Definition at line 144 of file CaloRings.cxx.

145 {
146  return m_ringsets.begin();
147 }

◆ begin() [2/2]

std::vector< RingSet >::const_iterator CaloRings::begin ( ) const

Definition at line 154 of file CaloRings.cxx.

155 {
156  return m_ringsets.begin();
157 }

◆ clear()

void CaloRings::clear ( )

Definition at line 134 of file CaloRings.cxx.

135 {
136  m_ringsets.clear();
137 }

◆ end() [1/2]

std::vector< RingSet >::iterator CaloRings::end ( )

Definition at line 149 of file CaloRings.cxx.

150 {
151  return m_ringsets.end();
152 }

◆ end() [2/2]

std::vector< RingSet >::const_iterator CaloRings::end ( ) const

Definition at line 159 of file CaloRings.cxx.

160 {
161  return m_ringsets.end();
162 }

◆ operator[]() [1/2]

RingSet & CaloRings::operator[] ( unsigned int  i)

Definition at line 168 of file CaloRings.cxx.

168  {
169  return m_ringsets[i];
170 }

◆ operator[]() [2/2]

const RingSet & CaloRings::operator[] ( unsigned int  i) const

Definition at line 176 of file CaloRings.cxx.

176  {
177  return m_ringsets[i];
178 }

◆ ringAt()

float CaloRings::ringAt ( unsigned int  nRingSet,
unsigned int  nRing 
)

Definition at line 180 of file CaloRings.cxx.

180  {
181  return m_ringsets.at(nRingSet).at(nRing);
182 }

◆ size()

size_t CaloRings::size ( ) const

Definition at line 139 of file CaloRings.cxx.

140 {
141  return m_ringsets.size();
142 }

Member Data Documentation

◆ m_ringsets

std::vector<RingSet> CaloRings::m_ringsets
private

The documentation for this class was generated from the following files:
beamspotman.r
def r
Definition: beamspotman.py:676
xAOD::deltaPhi
setSAddress setEtaMS setDirPhiMS setDirZMS setBarrelRadius setEndcapAlpha setEndcapRadius setInterceptInner setEtaMap setEtaBin setIsTgcFailure setDeltaPt deltaPhi
Definition: L2StandAloneMuon_v1.cxx:160
module_driven_slicing.layers
layers
Definition: module_driven_slicing.py:114
RingSet
Definition: Reconstruction/egamma/egammaEvent/egammaEvent/CaloRings.h:14
CaloRings::m_ringsets
std::vector< RingSet > m_ringsets
Definition: Reconstruction/egamma/egammaEvent/egammaEvent/CaloRings.h:85
P4Helpers::deltaEta
double deltaEta(const I4Momentum &p1, const I4Momentum &p2)
Computes efficiently .
Definition: P4Helpers.h:66
lumiFormat.i
int i
Definition: lumiFormat.py:85