ATLAS Offline Software
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
xAOD::JetConstituentVector::iterator Class Reference

#include <JetConstituentVector.h>

Collaboration diagram for xAOD::JetConstituentVector::iterator:

Public Types

typedef std::vector< ElementLink< IParticleContainer > >::const_iterator ELiterator
 

Public Member Functions

 iterator (ELiterator it, JetConstitScale s)
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
bool operator== (const iterator &other) const
 
bool operator!= (const iterator &other) const
 
const JetConstituentoperator* ()
 
const JetConstituentoperator-> ()
 
void inc ()
 
void dec ()
 

Protected Member Functions

void update4Mom ()
 

Protected Attributes

ELiterator m_index
 
ELiterator m_cachedMomIndex
 
JetConstituent m_4mom
 
JetConstitScale m_sigState
 

Friends

class JetConstituentVector
 

Detailed Description

Definition at line 121 of file JetConstituentVector.h.

Member Typedef Documentation

◆ ELiterator

Definition at line 124 of file JetConstituentVector.h.

Constructor & Destructor Documentation

◆ iterator()

xAOD::JetConstituentVector::iterator::iterator ( ELiterator  it,
JetConstitScale  s 
)
inline

Definition at line 126 of file JetConstituentVector.h.

126 : m_index(it), m_sigState(s) {}

Member Function Documentation

◆ dec()

void xAOD::JetConstituentVector::iterator::dec ( )
inline

Definition at line 140 of file JetConstituentVector.h.

140 { this->operator--();}

◆ inc()

void xAOD::JetConstituentVector::iterator::inc ( )
inline

Definition at line 139 of file JetConstituentVector.h.

139 { this->operator++();}

◆ operator!=()

Definition at line 75 of file JetConstituentVector.cxx.

75 { return m_index != other.m_index; }

◆ operator*()

const JetConstituent * xAOD::iterator::operator* ( )

Definition at line 77 of file JetConstituentVector.cxx.

77 { update4Mom() ; return &m_4mom;}

◆ operator++() [1/2]

iterator & xAOD::iterator::operator++ ( )

Definition at line 70 of file JetConstituentVector.cxx.

70 { ++m_index; return *this ; }

◆ operator++() [2/2]

iterator xAOD::iterator::operator++ ( int  )

Definition at line 71 of file JetConstituentVector.cxx.

71 { iterator tmp = *this; ++m_index; return tmp ; }

◆ operator--() [1/2]

iterator & xAOD::iterator::operator-- ( )

Definition at line 72 of file JetConstituentVector.cxx.

72 { --m_index; return *this ; }

◆ operator--() [2/2]

iterator xAOD::iterator::operator-- ( int  )

Definition at line 73 of file JetConstituentVector.cxx.

73 { iterator tmp = *this; --m_index; return tmp ; }

◆ operator->()

const JetConstituent * xAOD::iterator::operator-> ( )

Definition at line 78 of file JetConstituentVector.cxx.

78 { update4Mom() ; return &m_4mom;}

◆ operator==()

bool xAOD::iterator::operator== ( const iterator other) const

Definition at line 74 of file JetConstituentVector.cxx.

74 { return m_index == other.m_index; }

◆ update4Mom()

void xAOD::iterator::update4Mom ( )
protected

Definition at line 81 of file JetConstituentVector.cxx.

81  {
82 
83  if( m_index == m_cachedMomIndex ) return;
85  const IParticle* part = *(*m_index);
86  m_4mom.m_part = part;
87 
88  // now get the right scale from the constituent :
90  }

Friends And Related Function Documentation

◆ JetConstituentVector

friend class JetConstituentVector
friend

Definition at line 123 of file JetConstituentVector.h.

Member Data Documentation

◆ m_4mom

JetConstituent xAOD::JetConstituentVector::iterator::m_4mom
protected

Definition at line 150 of file JetConstituentVector.h.

◆ m_cachedMomIndex

ELiterator xAOD::JetConstituentVector::iterator::m_cachedMomIndex
protected

Definition at line 149 of file JetConstituentVector.h.

◆ m_index

ELiterator xAOD::JetConstituentVector::iterator::m_index
protected

Definition at line 148 of file JetConstituentVector.h.

◆ m_sigState

JetConstitScale xAOD::JetConstituentVector::iterator::m_sigState
protected

Definition at line 152 of file JetConstituentVector.h.


The documentation for this class was generated from the following files:
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
xAOD::JetConstituentVector::iterator::m_index
ELiterator m_index
Definition: JetConstituentVector.h:148
xAOD::JetConstituentVector::iterator::operator--
iterator & operator--()
Definition: JetConstituentVector.cxx:72
skel.it
it
Definition: skel.GENtoEVGEN.py:396
xAOD::other
@ other
Definition: TrackingPrimitives.h:509
xAOD::JetConstituent::m_part
const IParticle * m_part
Definition: JetConstituentVector.h:105
xAOD::JetConstituentVector::iterator::operator++
iterator & operator++()
Definition: JetConstituentVector.cxx:70
xAOD::JetConstituentVector::iterator::m_cachedMomIndex
ELiterator m_cachedMomIndex
Definition: JetConstituentVector.h:149
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
xAOD::JetConstituentVector::iterator::update4Mom
void update4Mom()
Definition: JetConstituentVector.cxx:81
xAOD::JetConstituentVector::iterator::m_4mom
JetConstituent m_4mom
Definition: JetConstituentVector.h:150
xAOD::JetConstituentVector::iterator::m_sigState
JetConstitScale m_sigState
Definition: JetConstituentVector.h:152
xAOD::JetConstituentVector::iterator::iterator
iterator(ELiterator it, JetConstitScale s)
Definition: JetConstituentVector.h:126
IParticle
Definition: Event/EventKernel/EventKernel/IParticle.h:43
xAOD::fillJetConstituent
void fillJetConstituent(const IParticle *part, JetConstituent &constit, JetConstitScale sigState)
Definition: JetConstituentVector.cxx:37