ATLAS Offline Software
Trigger
TrigHypothesis
TrigHLTJetHypo
src
JetGroupRegister.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
./JetGroupRegister.h
"
6
7
std::size_t
JetGroupRegister::record
(
HypoJetVector
v
){
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
}
JetGroupRegister::m_reg
std::map< HypoJetVector, std::size_t, HypoJetVectorLess > m_reg
Definition:
JetGroupRegister.h:41
skel.it
it
Definition:
skel.GENtoEVGEN.py:396
HypoJetVector
std::vector< pHypoJet > HypoJetVector
Definition:
HypoJetDefs.h:27
HypoJetLess
Definition:
JetGroupRegister.h:15
python.PyAthena.v
v
Definition:
PyAthena.py:154
JetGroupRegister::record
std::size_t record(HypoJetVector v)
Definition:
JetGroupRegister.cxx:7
JetGroupRegister.h
Generated on Thu Nov 7 2024 21:18:13 for ATLAS Offline Software by
1.8.18