ATLAS Offline Software
eFEXOutputCollection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
15 #pragma once
16 #include "AthenaKernel/CLASS_DEF.h"
17 #include <map>
18 #include <vector>
19 #include <string>
20 
21 namespace LVL1 {
23  {
28  public:
31 
34 
36  void clear();
37 
45  void addValue_eg(const std::string& key, float value);
46 
48  void fill_eg();
49 
57  void addValue_tau(const std::string& key, float value);
58 
60  void fill_tau();
61 
63  int tau_size() const;
64 
66  int size() const;
67 
69  std::map<std::string, float>* get_eg(int) const;
70 
72  std::map<std::string, float>* get_tau(int) const;
73 
75  void addeFexNumber(int);
76 
78  std::vector<int> geteFexNumber() const;
79 
81  void addEMtob(uint32_t);
82 
84  std::vector<uint32_t> getEMtob() const;
85 
87  void setdooutput(bool);
88 
90  bool getdooutput() const;
91 
92  private:
93  bool m_dooutput;
94  std::vector<int> m_eFexNumber;
95  std::vector<uint32_t> m_emtob;
96  std::map<std::string, float> m_values_tem_eg;
99  std::vector<std::map<std::string, float>*> m_allvalues_eg;
101  std::map<std::string, float> m_values_tem_tau;
103  std::vector<std::map<std::string, float>*> m_allvalues_tau;
104  };
105 }
106 CLASS_DEF( LVL1::eFEXOutputCollection, 32202262 , 1 )
107 
LVL1::eFEXOutputCollection::m_emtob
std::vector< uint32_t > m_emtob
vector of TOB words
Definition: eFEXOutputCollection.h:95
LVL1::eFEXOutputCollection::m_values_tem_eg
std::map< std::string, float > m_values_tem_eg
e-gamma related values of a TOB
Definition: eFEXOutputCollection.h:97
LVL1::eFEXOutputCollection::addValue_eg
void addValue_eg(const std::string &key, float value)
add a value related to the e-gamma algorithm for a TOB
Definition: eFEXOutputCollection.cxx:33
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
LVL1::eFEXOutputCollection::addeFexNumber
void addeFexNumber(int)
add the eEFX number of a TOB
Definition: eFEXOutputCollection.cxx:77
LVL1::eFEXOutputCollection::m_allvalues_eg
std::vector< std::map< std::string, float > * > m_allvalues_eg
e-gamma related values of all TOBs in an event
Definition: eFEXOutputCollection.h:99
athena.value
value
Definition: athena.py:122
LVL1::eFEXOutputCollection::m_dooutput
bool m_dooutput
if write Ntuple
Definition: eFEXOutputCollection.h:93
LVL1::eFEXOutputCollection::getEMtob
std::vector< uint32_t > getEMtob() const
get all e-gamma TOB words of an event
Definition: eFEXOutputCollection.cxx:92
LVL1
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...
Definition: ICMMCPHitsCnvTool.h:18
LVL1::eFEXOutputCollection::m_values_tem_tau
std::map< std::string, float > m_values_tem_tau
tau related values of a TOB
Definition: eFEXOutputCollection.h:101
LVL1::eFEXOutputCollection::m_eFexNumber
std::vector< int > m_eFexNumber
vector of eFEX numbers
Definition: eFEXOutputCollection.h:94
LVL1::eFEXOutputCollection::get_eg
std::map< std::string, float > * get_eg(int) const
get all e-gamma related values the ith TOB
Definition: eFEXOutputCollection.cxx:67
LVL1::eFEXOutputCollection::fill_tau
void fill_tau()
Save all tau values. Use only after finishing defining all tau values for one TOB.
Definition: eFEXOutputCollection.cxx:50
LVL1::eFEXOutputCollection::getdooutput
bool getdooutput() const
return to true if ntuple output is needed
Definition: eFEXOutputCollection.cxx:102
LVL1::eFEXOutputCollection::setdooutput
void setdooutput(bool)
setting to true if ntuple output is needed
Definition: eFEXOutputCollection.cxx:98
LVL1::eFEXOutputCollection::size
int size() const
get total number of eg TOBs saved
Definition: eFEXOutputCollection.cxx:62
LVL1::eFEXOutputCollection::clear
void clear()
Removes all values from the vectors for the next event.
Definition: eFEXOutputCollection.cxx:21
LVL1::eFEXOutputCollection::geteFexNumber
std::vector< int > geteFexNumber() const
get the eFEX numbers of all TOBs
Definition: eFEXOutputCollection.cxx:82
LVL1::eFEXOutputCollection::fill_eg
void fill_eg()
Save all e-gamma values. Use only after finishing defining all e-gamma values for one TOB.
Definition: eFEXOutputCollection.cxx:43
LVL1::eFEXOutputCollection::m_allvalues_tau
std::vector< std::map< std::string, float > * > m_allvalues_tau
tau related values of all TOBs in an event
Definition: eFEXOutputCollection.h:103
LVL1::eFEXOutputCollection::eFEXOutputCollection
eFEXOutputCollection()
constructor
Definition: eFEXOutputCollection.cxx:7
LVL1::eFEXOutputCollection::tau_size
int tau_size() const
get total number of tau TOBs saved
Definition: eFEXOutputCollection.cxx:57
CLASS_DEF
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
Definition: Control/AthenaKernel/AthenaKernel/CLASS_DEF.h:64
LVL1::eFEXOutputCollection
Definition: eFEXOutputCollection.h:23
LVL1::eFEXOutputCollection::addValue_tau
void addValue_tau(const std::string &key, float value)
define a value related to the tau algorithm for a TOB
Definition: eFEXOutputCollection.cxx:38
CLASS_DEF.h
macros to associate a CLID to a type
LVL1::eFEXOutputCollection::addEMtob
void addEMtob(uint32_t)
add a 32-bit e-gamma TOB word
Definition: eFEXOutputCollection.cxx:87
LVL1::eFEXOutputCollection::get_tau
std::map< std::string, float > * get_tau(int) const
get all tau related values the ith TOB
Definition: eFEXOutputCollection.cxx:72
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
LVL1::eFEXOutputCollection::~eFEXOutputCollection
~eFEXOutputCollection()
Destructor.
Definition: eFEXOutputCollection.cxx:11