ATLAS Offline Software
Loading...
Searching...
No Matches
gFEXOutputCollection.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4//***************************************************************************
5// gFEXOutputCollection
6// -------------------
7// begin : 01 04 2021
8// email : cecilia.tosciri@cern.ch
9//***************************************************************************
10
12
16
20
22{
23 for (auto iValues : m_allvalues_gFEXjet) {
24 iValues.clear();
25 }
26 m_jettob.clear();
27}
28
30{
31 for (auto iValues : m_allvalues_gFEXglobal) {
32 iValues.clear();
33 }
34 m_globaltob.clear();
35}
36
37void LVL1::gFEXOutputCollection::addValueJet(std::string key, float value)
38{
39 m_values_gFEXJet.emplace(std::move(key), value);
40}
41
47
49{
50 return m_allvalues_gFEXjet.size();
51}
52
53std::unordered_map<std::string, float> LVL1::gFEXOutputCollection::getJet(int location) const
54{
55 return m_allvalues_gFEXjet[location];
56}
57
59{
60 m_jettob.push_back(jettob);
61}
62
63const std::vector<uint32_t>& LVL1::gFEXOutputCollection::getJetTob() const
64{
65 return m_jettob;
66}
67
68
69
70void LVL1::gFEXOutputCollection::addValueGlobal(std::string key, float value)
71{
72 m_values_gFEXGlobal.emplace(std::move(key), value);
73}
74
80
85
86std::unordered_map<std::string, float> LVL1::gFEXOutputCollection::getGlobal(int location) const
87{
88 return m_allvalues_gFEXglobal[location];
89}
90
92{
93 m_globaltob.push_back(globaltob);
94}
95
96const std::vector<uint32_t>& LVL1::gFEXOutputCollection::getGlobalTob() const
97{
98 return m_globaltob;
99}
100
101
103 m_dooutput = input;
104}
105
std::vector< uint32_t > m_jettob
std::vector< std::unordered_map< std::string, float > > m_allvalues_gFEXjet
jet related values of all TOBs in an event
std::vector< uint32_t > m_globaltob
std::unordered_map< std::string, float > getGlobal(int) const
void addValueGlobal(std::string key, float value)
std::unordered_map< std::string, float > getJet(int) const
void addValueJet(std::string key, float value)
add a value related to the jet finder algorithm for a TOB
const std::vector< uint32_t > & getJetTob() const
const std::vector< uint32_t > & getGlobalTob() const
std::unordered_map< std::string, float > m_values_gFEXJet
std::unordered_map< std::string, float > m_values_gFEXGlobal
std::vector< std::unordered_map< std::string, float > > m_allvalues_gFEXglobal