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

#include <JetGroupRegister.h>

Collaboration diagram for JetGroupRegister:

Public Member Functions

std::size_t record (HypoJetVector v)
 

Private Attributes

std::map< HypoJetVector, std::size_t, HypoJetVectorLessm_reg
 

Detailed Description

Definition at line 35 of file JetGroupRegister.h.

Member Function Documentation

◆ record()

std::size_t JetGroupRegister::record ( HypoJetVector  v)

Definition at line 7 of file JetGroupRegister.cxx.

7  {
8 
9  std::sort(v.begin(), v.end(), HypoJetLess());
10 
11  auto it = m_reg.find(v);
12 
13  if (it == m_reg.end()){
14  auto new_ind = m_reg.size();
15  m_reg[v] = new_ind;
16  return new_ind;
17  } else {
18  return it->second;
19  }
20 }

Member Data Documentation

◆ m_reg

std::map<HypoJetVector, std::size_t, HypoJetVectorLess> JetGroupRegister::m_reg
private

Definition at line 41 of file JetGroupRegister.h.


The documentation for this class was generated from the following files:
JetGroupRegister::m_reg
std::map< HypoJetVector, std::size_t, HypoJetVectorLess > m_reg
Definition: JetGroupRegister.h:41
skel.it
it
Definition: skel.GENtoEVGEN.py:396
HypoJetLess
Definition: JetGroupRegister.h:15
python.PyAthena.v
v
Definition: PyAthena.py:154
std::sort
void sort(typename std::reverse_iterator< DataModel_detail::iterator< DVL > > beg, typename std::reverse_iterator< DataModel_detail::iterator< DVL > > end, const Compare &comp)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:623