ATLAS Offline Software
Loading...
Searching...
No Matches
eFEXOutputCollection.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
10
12{
13 for (auto iValues : m_allvalues_eg) {
14 delete iValues;
15 }
16 for (auto iValues : m_allvalues_tau) {
17 delete iValues;
18 }
19}
20
22{
23 for (auto iValues : m_allvalues_eg) {
24 iValues->clear();
25 }
26 for (auto iValues : m_allvalues_tau) {
27 iValues->clear();
28 }
29 m_eFexNumber.clear();
30 m_emtob.clear();
31}
32
33void LVL1::eFEXOutputCollection::addValue_eg(const std::string& key, float value)
34{
35 m_values_tem_eg.insert(std::make_pair(key, value));
36}
37
38void LVL1::eFEXOutputCollection::addValue_tau(const std::string& key, float value)
39{
40 m_values_tem_tau.insert(std::make_pair(key, value));
41}
42
44{
45 std::map<std::string, float>* values_local = new std::map<std::string, float>(m_values_tem_eg);
46 m_allvalues_eg.push_back(values_local);
47 m_values_tem_eg.clear();
48}
49
51{
52 std::map<std::string, float>* values_local = new std::map<std::string, float>(m_values_tem_tau);
53 m_allvalues_tau.push_back(values_local);
54 m_values_tem_tau.clear();
55}
56
58{
59 return m_allvalues_tau.size();
60}
61
63{
64 return m_allvalues_eg.size();
65}
66
67std::map<std::string, float>* LVL1::eFEXOutputCollection::get_eg(int location) const
68{
69 return m_allvalues_eg.at(location);
70}
71
72std::map<std::string, float>* LVL1::eFEXOutputCollection::get_tau(int location) const
73{
74 return m_allvalues_tau.at(location);
75}
76
78{
79 m_eFexNumber.push_back(efexnumber);
80}
81
82const std::vector<int>& LVL1::eFEXOutputCollection::geteFexNumber() const
83{
84 return m_eFexNumber;
85}
86
88{
89 m_emtob.push_back(emtob);
90}
91
92const std::vector<uint32_t>& LVL1::eFEXOutputCollection::getEMtob() const
93{
94 return m_emtob;
95}
96
97
99 m_dooutput = input;
100}
101
bool getdooutput() const
return to true if ntuple output is needed
const std::vector< uint32_t > & getEMtob() const
get all e-gamma TOB words of an event
int size() const
get total number of eg TOBs saved
void fill_tau()
Save all tau values. Use only after finishing defining all tau values for one TOB.
const std::vector< int > & geteFexNumber() const
get the eFEX numbers of all TOBs
std::vector< std::map< std::string, float > * > m_allvalues_tau
tau related values of all TOBs in an event
std::vector< uint32_t > m_emtob
vector of TOB words
void fill_eg()
Save all e-gamma values. Use only after finishing defining all e-gamma values for one TOB.
std::vector< int > m_eFexNumber
vector of eFEX numbers
std::map< std::string, float > * get_eg(int) const
get all e-gamma related values the ith TOB
int tau_size() const
get total number of tau TOBs saved
void addeFexNumber(int)
add the eEFX number of a TOB
void setdooutput(bool)
setting to true if ntuple output is needed
void addValue_tau(const std::string &key, float value)
define a value related to the tau algorithm for a TOB
std::map< std::string, float > m_values_tem_eg
e-gamma related values of a TOB
void addValue_eg(const std::string &key, float value)
add a value related to the e-gamma algorithm for a TOB
std::map< std::string, float > m_values_tem_tau
tau related values of a TOB
void clear()
Removes all values from the vectors for the next event.
std::vector< std::map< std::string, float > * > m_allvalues_eg
e-gamma related values of all TOBs in an event
std::map< std::string, float > * get_tau(int) const
get all tau related values the ith TOB
void addEMtob(uint32_t)
add a 32-bit e-gamma TOB word
create ntuples output