ATLAS Offline Software
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 
14  m_dooutput = false;
15 }
16 
18 {
19 }
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 
38 {
39  m_values_gFEXJet.emplace(std::move(key), value);
40 }
41 
43 {
44  m_allvalues_gFEXjet.push_back(std::move(m_values_gFEXJet));
45  m_values_gFEXJet.clear();
46 }
47 
49 {
50  return m_allvalues_gFEXjet.size();
51 }
52 
53 std::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 
63 const std::vector<uint32_t>& LVL1::gFEXOutputCollection::getJetTob() const
64 {
65  return m_jettob;
66 }
67 
68 
69 
71 {
72  m_values_gFEXGlobal.emplace(std::move(key), value);
73 }
74 
76 {
77  m_allvalues_gFEXglobal.push_back(std::move(m_values_gFEXGlobal));
78  m_values_gFEXGlobal.clear();
79 }
80 
82 {
83  return m_allvalues_gFEXglobal.size();
84 }
85 
86 std::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 
96 const std::vector<uint32_t>& LVL1::gFEXOutputCollection::getGlobalTob() const
97 {
98  return m_globaltob;
99 }
100 
101 
103  m_dooutput = input;
104 }
105 
107  return m_dooutput;
108 }
LVL1::gFEXOutputCollection::fillJet
void fillJet()
Definition: gFEXOutputCollection.cxx:42
LVL1::gFEXOutputCollection::getJet
std::unordered_map< std::string, float > getJet(int) const
Definition: gFEXOutputCollection.cxx:53
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
gFEXOutputCollection.h
LVL1::gFEXOutputCollection::getGlobalTob
const std::vector< uint32_t > & getGlobalTob() const
Definition: gFEXOutputCollection.cxx:96
athena.value
value
Definition: athena.py:124
LVL1::gFEXOutputCollection::clearJets
void clearJets()
Definition: gFEXOutputCollection.cxx:21
LVL1::gFEXOutputCollection::setdooutput
void setdooutput(bool)
Definition: gFEXOutputCollection.cxx:102
LVL1::gFEXOutputCollection::addValueGlobal
void addValueGlobal(std::string key, float value)
Definition: gFEXOutputCollection.cxx:70
LVL1::gFEXOutputCollection::clearGlobals
void clearGlobals()
Definition: gFEXOutputCollection.cxx:29
PlotPulseshapeFromCool.input
input
Definition: PlotPulseshapeFromCool.py:106
LVL1::gFEXOutputCollection::~gFEXOutputCollection
~gFEXOutputCollection()
Definition: gFEXOutputCollection.cxx:17
LVL1::gFEXOutputCollection::fillGlobal
void fillGlobal()
Definition: gFEXOutputCollection.cxx:75
LVL1::gFEXOutputCollection::gFEXOutputCollection
gFEXOutputCollection()
Definition: gFEXOutputCollection.cxx:13
LVL1::gFEXOutputCollection::jetsSize
int jetsSize() const
Definition: gFEXOutputCollection.cxx:48
LVL1::gFEXOutputCollection::addJetTob
void addJetTob(uint32_t)
Definition: gFEXOutputCollection.cxx:58
LVL1::gFEXOutputCollection::m_dooutput
bool m_dooutput
Definition: gFEXOutputCollection.h:74
LVL1::gFEXOutputCollection::getdooutput
bool getdooutput() const
Definition: gFEXOutputCollection.cxx:106
LVL1::gFEXOutputCollection::getGlobal
std::unordered_map< std::string, float > getGlobal(int) const
Definition: gFEXOutputCollection.cxx:86
LVL1::gFEXOutputCollection::globalsSize
int globalsSize() const
Definition: gFEXOutputCollection.cxx:81
LVL1::gFEXOutputCollection::addGlobalTob
void addGlobalTob(uint32_t)
Definition: gFEXOutputCollection.cxx:91
LVL1::gFEXOutputCollection::getJetTob
const std::vector< uint32_t > & getJetTob() const
Definition: gFEXOutputCollection.cxx:63
LVL1::gFEXOutputCollection::addValueJet
void addValueJet(std::string key, float value)
add a value related to the jet finder algorithm for a TOB
Definition: gFEXOutputCollection.cxx:37
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37