ATLAS Offline Software
Loading...
Searching...
No Matches
gFEXOutputCollection.h
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
11
12#ifndef gFEXOutputCollection_H
13#define gFEXOutputCollection_H
14
16#include <unordered_map>
17#include <vector>
18#include <string>
19
20namespace LVL1 {
22 {
23 //gFEXOutputCollection class stores the output of gFEX simulation for the use of gFEXNtupleWriter.
24
25
26 public:
27 //constructor
29
30 //Destructor
32
33
34 void clearJets();
35 void clearGlobals();
36
44 void addValueJet(std::string key, float value);
45 void addValueGlobal(std::string key, float value);
46
47 //Save all jet values. Use only after finishing defining all jet values for one TOB.
48 void fillJet();
49 void fillGlobal();
50
51 //Get total number of TOBs saved
52 int jetsSize() const;
53 int globalsSize() const;
54
55 //Get all jets related values
56 std::unordered_map<std::string, float> getJet(int) const;
57 std::unordered_map<std::string, float> getGlobal(int) const;
58
59 //Add a 32-bit jet TOB word
60 void addJetTob(uint32_t);
61 void addGlobalTob(uint32_t);
62
63 //Get all jet TOB words of an event
64 const std::vector<uint32_t>& getJetTob() const;
65 const std::vector<uint32_t>& getGlobalTob() const;
66
67 //setting true if ntuple output is needed
68 void setdooutput(bool);
69
70 //return true if ntuple output is needed
71 bool getdooutput() const;
72
73 private:
74 bool m_dooutput; //if write Ntuple
75 //vector of TOB words
76 std::vector<uint32_t> m_jettob;
77 std::vector<uint32_t> m_globaltob;
78 // /// jet related values of a TOB
79 std::unordered_map<std::string, float> m_values_gFEXJet;
80 std::unordered_map<std::string, float> m_values_gFEXGlobal;
82 std::vector<std::unordered_map<std::string, float>> m_allvalues_gFEXjet;
83 std::vector<std::unordered_map<std::string, float>> m_allvalues_gFEXglobal;
84
85 };
86}
88
89#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
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
eFexTowerBuilder creates xAOD::eFexTowerContainer from supercells (LATOME) and triggerTowers (TREX) i...