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

#include <SingleJetGrouper.h>

Inheritance diagram for SingleJetGrouper:
Collaboration diagram for SingleJetGrouper:

Public Member Functions

 SingleJetGrouper ()
 
 SingleJetGrouper (const HypoJetVector &)
 
 SingleJetGrouper (const HypoJetCIter &b, const HypoJetCIter &e)
 
virtual HypoJetVector next () override
 
virtual std::string getName () const override
 
virtual std::string toString () const override
 

Private Attributes

HypoJetVector m_jets {}
 
std::size_t m_size {0}
 
std::size_t m_index {0}
 

Detailed Description

Definition at line 10 of file SingleJetGrouper.h.

Constructor & Destructor Documentation

◆ SingleJetGrouper() [1/3]

SingleJetGrouper::SingleJetGrouper ( )

Definition at line 8 of file SingleJetGrouper.cxx.

8 {}

◆ SingleJetGrouper() [2/3]

SingleJetGrouper::SingleJetGrouper ( const HypoJetVector v)

Definition at line 10 of file SingleJetGrouper.cxx.

10  :
11  m_jets(v), m_size{v.size()}{
12 }

◆ SingleJetGrouper() [3/3]

SingleJetGrouper::SingleJetGrouper ( const HypoJetCIter b,
const HypoJetCIter e 
)

Definition at line 14 of file SingleJetGrouper.cxx.

15  :
16  m_jets(b, e), m_size{m_jets.size()}{
17 }

Member Function Documentation

◆ getName()

std::string SingleJetGrouper::getName ( ) const
overridevirtual

Implements IJetGrouper.

Definition at line 28 of file SingleJetGrouper.cxx.

28  {
29  return "SingleJetGrouper";
30 }

◆ next()

HypoJetVector SingleJetGrouper::next ( )
overridevirtual

Implements IJetGrouper.

Definition at line 20 of file SingleJetGrouper.cxx.

20  {
21  if (m_index == m_size){
22  return HypoJetVector{};
23  }
24 
25  return HypoJetVector{m_jets[m_index++]};
26 }

◆ toString()

std::string SingleJetGrouper::toString ( ) const
overridevirtual

Implements IJetGrouper.

Definition at line 32 of file SingleJetGrouper.cxx.

32  {
33  return "SingleJetGrouper - repack input jets into vectors of length 1";
34 }

Member Data Documentation

◆ m_index

std::size_t SingleJetGrouper::m_index {0}
private

Definition at line 23 of file SingleJetGrouper.h.

◆ m_jets

HypoJetVector SingleJetGrouper::m_jets {}
private

Definition at line 21 of file SingleJetGrouper.h.

◆ m_size

std::size_t SingleJetGrouper::m_size {0}
private

Definition at line 22 of file SingleJetGrouper.h.


The documentation for this class was generated from the following files:
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
SingleJetGrouper::m_index
std::size_t m_index
Definition: SingleJetGrouper.h:23
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition: HypoJetDefs.h:27
SingleJetGrouper::m_size
std::size_t m_size
Definition: SingleJetGrouper.h:22
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
python.PyAthena.v
v
Definition: PyAthena.py:154
SingleJetGrouper::m_jets
HypoJetVector m_jets
Definition: SingleJetGrouper.h:21