ATLAS Offline Software
Loading...
Searching...
No Matches
jFEXOutputCollection.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5//***************************************************************************
6// jFEXOutputCollection.cxx -
7// -------------------
8// begin : 09 12 2020
9// email : varsiha.sothilingam@cern.ch
10// **************************************************************************
11//
12
14
18
20
21 for(uint i=0; i<m_allvalues_smallRJet.size(); i++) {
22 m_allvalues_smallRJet.at(i).reset();
23 }
24
25 for(uint i=0; i<m_allvalues_largeRJet.size(); i++) {
26 m_allvalues_largeRJet.at(i).reset();
27 }
28
29 for(uint i=0; i<m_allvalues_tau.size(); i++) {
30 m_allvalues_tau.at(i).reset();
31 }
32
33 for(uint i=0; i<m_allvalues_fwdEl.size(); i++) {
34 m_allvalues_fwdEl.at(i).reset();
35 }
36
37 for(uint i=0; i<m_allvalues_pileup.size(); i++) {
38 m_allvalues_pileup.at(i).reset();
39 }
40
41 for(uint i=0; i<m_allvalues_pileup_map.size(); i++) {
42 m_allvalues_pileup_map.at(i).reset();
43 }
44
45}
46
48{
49
50 for(uint i=0; i<m_allvalues_smallRJet.size(); i++) {
51 (*m_allvalues_smallRJet.at(i)).clear();
52 }
53
54 for(uint i=0; i<m_allvalues_largeRJet.size(); i++) {
55 (*m_allvalues_largeRJet.at(i)).clear();
56 }
57
58 for(uint i=0; i<m_allvalues_tau.size(); i++) {
59 (*m_allvalues_tau.at(i)).clear();
60 }
61
62 for(uint i=0; i<m_allvalues_fwdEl.size(); i++) {
63 (*m_allvalues_fwdEl.at(i)).clear();
64 }
65
66 for(uint i=0; i<m_allvalues_pileup.size(); i++) {
67 (*m_allvalues_pileup.at(i)).clear();
68 }
69
70 for(uint i=0; i<m_allvalues_pileup_map.size(); i++) {
71 (*m_allvalues_pileup_map.at(i)).clear();
72 }
73
74}
75
76void LVL1::jFEXOutputCollection::addValue_smallRJet(std::string key, int value)
77{
78 m_values_tem_smallRJet.insert(std::make_pair(key, value));
79}
80
81void LVL1::jFEXOutputCollection::addValue_largeRJet(std::string key, int value)
82{
83 m_values_tem_largeRJet.insert(std::make_pair(key, value));
84}
85
86void LVL1::jFEXOutputCollection::addValue_tau(std::string key, int value)
87{
88 m_values_tem_tau.insert(std::make_pair(key, value));
89}
90
91void LVL1::jFEXOutputCollection::addValue_fwdEl(std::string key, int value)
92{
93 m_values_tem_fwdEl.insert(std::make_pair(key, value));
94}
95
96
97void LVL1::jFEXOutputCollection::addValue_pileup(std::string key, int value)
98{
99 m_values_tem_pileup.insert(std::make_pair(key, value));
100}
101
102void LVL1::jFEXOutputCollection::addValue_pileup(std::string key, std::vector<int> value)
103{
104 m_values_tem_pileup_maps.insert(std::make_pair(key, value));
105}
106
108{
109 std::unique_ptr<std::unordered_map<std::string, int>> values_local = std::make_unique<std::unordered_map<std::string, int>>(m_values_tem_smallRJet);
110 m_allvalues_smallRJet.push_back(std::move(values_local));
112
113}
115{
116 std::unique_ptr<std::unordered_map<std::string, int>> values_local = std::make_unique<std::unordered_map<std::string, int>>(m_values_tem_largeRJet);
117 m_allvalues_largeRJet.push_back(std::move(values_local));
119
120}
122{
123 std::unique_ptr<std::unordered_map<std::string, int>> values_local = std::make_unique<std::unordered_map<std::string, int>>(m_values_tem_tau);
124 m_allvalues_tau.push_back(std::move(values_local));
125 m_values_tem_tau.clear();
126
127}
128
130{
131 std::unique_ptr<std::unordered_map<std::string, int>> values_local = std::make_unique<std::unordered_map<std::string, int>>(m_values_tem_fwdEl);
132 m_allvalues_fwdEl.push_back(std::move(values_local));
133 m_values_tem_fwdEl.clear();
134
135}
137{
138 std::unique_ptr<std::unordered_map<std::string, int>> values_local = std::make_unique<std::unordered_map<std::string, int>>(m_values_tem_pileup);
139 std::unique_ptr<std::unordered_map<std::string, std::vector<int> >> values_local_map = std::make_unique<std::unordered_map<std::string, std::vector<int>>>(m_values_tem_pileup_maps);
140 m_allvalues_pileup.push_back(std::move(values_local));
141 m_allvalues_pileup_map.push_back(std::move(values_local_map));
142 m_values_tem_pileup.clear();
144
145}
146
147
149{
150 return m_allvalues_smallRJet.size();
151}
152
154{
155 return m_allvalues_largeRJet.size();
156}
158{
159 return m_allvalues_tau.size();
160}
162{
163 return m_allvalues_fwdEl.size();
164}
166{
167 return m_allvalues_pileup.size();
168}
173
174int LVL1::jFEXOutputCollection::get_smallRJet(int location,const std::string& str_) const
175{
176 return (*m_allvalues_smallRJet.at(location))[str_];
177}
178int LVL1::jFEXOutputCollection::get_largeRJet(int location,const std::string& str_) const
179{
180 return (*m_allvalues_largeRJet.at(location))[str_];
181}
182int LVL1::jFEXOutputCollection::get_tau(int location,const std::string& str_) const
183{
184 return (*m_allvalues_tau.at(location))[str_];
185}
186int LVL1::jFEXOutputCollection::get_fwdEl(int location,const std::string& str_) const
187{
188 return (*m_allvalues_fwdEl.at(location))[str_];
189}
190
191int LVL1::jFEXOutputCollection::get_pileup(int location,const std::string& str_) const
192{
193 return (*m_allvalues_pileup.at(location))[str_];
194}
195std::vector<int> LVL1::jFEXOutputCollection::get_pileup_map(int location,const std::string& str_) const
196{
197 return (*m_allvalues_pileup_map.at(location))[str_];
198}
199
201 m_dooutput = input;
202}
203
unsigned int uint
void addValue_fwdEl(std::string, int)
std::vector< std::unique_ptr< std::unordered_map< std::string, int > > > m_allvalues_fwdEl
std::vector< std::unique_ptr< std::unordered_map< std::string, int > > > m_allvalues_smallRJet
std::vector< std::unique_ptr< std::unordered_map< std::string, int > > > m_allvalues_tau
int get_smallRJet(int, const std::string &) const
int get_pileup(int, const std::string &) const
void addValue_largeRJet(std::string, int)
std::unordered_map< std::string, int > m_values_tem_tau
void addValue_smallRJet(std::string, int)
std::vector< int > get_pileup_map(int, const std::string &) const
std::unordered_map< std::string, std::vector< int > > m_values_tem_pileup_maps
std::vector< std::unique_ptr< std::unordered_map< std::string, int > > > m_allvalues_largeRJet
std::unordered_map< std::string, int > m_values_tem_largeRJet
std::unordered_map< std::string, int > m_values_tem_smallRJet
void addValue_tau(std::string, int)
void addValue_pileup(std::string, int)
int get_largeRJet(int, const std::string &) const
std::unordered_map< std::string, int > m_values_tem_pileup
std::unordered_map< std::string, int > m_values_tem_fwdEl
std::vector< std::unique_ptr< std::unordered_map< std::string, std::vector< int > > > > m_allvalues_pileup_map
int get_fwdEl(int, const std::string &) const
std::vector< std::unique_ptr< std::unordered_map< std::string, int > > > m_allvalues_pileup
int get_tau(int, const std::string &) const