ATLAS Offline Software
GepAlgoHypothesisPortsIn.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include <sstream>
7 
8 namespace GlobalSim {
9  std::string eEmInputTOBToString(const std::bitset<72>& bs) {
10  std::stringstream ss;
11  ss << bs.to_string()
12  << " Et ";
13  for (int i = AlgoConstants::eFexEtBitWidth; i != -1; --i) {
14  ss << bs[i];
15  }
16  ss << " Phi ";
17  for (int i = 16 + AlgoConstants::eFexPhiBitWidth; i != 15; --i) {
18  ss << bs[i];
19  }
20 
21  ss << " Eta ";
22  for (int i = 32 + AlgoConstants::eFexEtaBitWidth; i != 31; --i) {
23  ss << bs[i];
24  }
25 
26  return ss.str();
27  }
28 
29  std::string eTauInputTOBToString(const std::bitset<72>& bs) {
30  std::stringstream ss;
31  ss << bs.to_string()
32  << " Et ";
33  for (int i = AlgoConstants::eFexEtBitWidth; i != -1; --i) {
34  ss << bs[i];
35  }
36  ss << " Phi ";
37  for (int i = 16 + AlgoConstants::eFexPhiBitWidth; i != 15; --i) {
38  ss << bs[i];
39  }
40 
41  ss << " Eta ";
42  for (int i = 32 + AlgoConstants::eFexEtaBitWidth; i != 31; --i) {
43  ss << bs[i];
44  }
45 
46  return ss.str();
47  }
48 
49 
50 }
51 using namespace GlobalSim;
52 
53 std::ostream&
54 operator<< (std::ostream& os,
55  const GlobalSim::GepAlgoHypothesisPortsIn & ports_in) {
56  os << "Entity_GepAlgoHypothesis port_in data:\n" <<
57  "I_GEPEmTobs " << *ports_in.m_I_GEPEmTobs << '\n' <<
58  "I_GEPTauTobs " << *ports_in.m_I_GEPTauTobs << '\n' <<
59  "I_GEPJetTobs " << *ports_in.m_I_GEPJetTobs << '\n' <<
60  "I_eEmTobs " << *ports_in.m_I_eEmTobs << '\n' <<
61  "I_eTauTobs " << *ports_in.m_I_eTauTobs << '\n' <<
62  "I_jJetTobs " << *ports_in.m_I_jJetTobs << '\n' <<
63  "I_jLJetTobs " << *ports_in.m_I_jLJetTobs << '\n' <<
64  "I_jTauTobs " << *ports_in.m_I_jTauTobs << '\n' <<
65  "I_cTauTobs " << *ports_in.m_I_cTauTobs << '\n' <<
66  "I_jEmTobs " << *ports_in.m_I_jEmTobs << '\n' <<
67  "I_MuonTobs " << *ports_in.m_I_MuonTobs << '\n' <<
68  "I_MetTobs " << *ports_in.m_I_MetTobs << '\n' <<
69  "I_jSumEtTobs " << *ports_in.m_I_jSumEtTobs << '\n' <<
70  "I_EnergyTobs " << *ports_in.m_I_EnergyTobs << '\n' <<
71  "I_gLJetTobs " << *ports_in.m_I_gLJetTobs << '\n' <<
72  "I_gJetTobs " << *ports_in.m_I_gJetTobs << '\n' <<
73 
74  "I_GEPEmTobs_dv " << *ports_in.m_I_GEPEmTobs_dv << '\n' <<
75  "I_GEPTauTobs_dv " << *ports_in.m_I_GEPTauTobs_dv << '\n' <<
76  "I_GEPJetTobs_dv " << *ports_in.m_I_GEPJetTobs_dv << '\n' <<
77  "I_eEmTobs_dv " << *ports_in.m_I_eEmTobs_dv << '\n' <<
78  "I_eTauTobs_dv " << *ports_in.m_I_eTauTobs_dv << '\n' <<
79  "I_jJetTobs_dv " << *ports_in.m_I_jJetTobs_dv << '\n' <<
80  "I_jLJetTobs_dv " << *ports_in.m_I_jLJetTobs_dv << '\n' <<
81  "I_jTauTobs_dv " << *ports_in.m_I_jTauTobs_dv << '\n' <<
82  "I_cTauTobs_dv " << *ports_in.m_I_cTauTobs_dv << '\n' <<
83  "I_jEmTobs_dv " << *ports_in.m_I_jEmTobs_dv << '\n' <<
84  "I_MuonTobs_dv " << *ports_in.m_I_MuonTobs_dv << '\n' <<
85  "I_MetTobs_dv " << *ports_in.m_I_MetTobs_dv << '\n' <<
86  "I_jSumEtTobs_dv " << *ports_in.m_I_jSumEtTobs_dv << '\n' <<
87  "I_EnergyTobs_dv " << *ports_in.m_I_EnergyTobs_dv << '\n' <<
88  "I_gLJetTobs_dv " << *ports_in.m_I_gLJetTobs_dv << '\n' <<
89  "I_gJetTobs_dv " << *ports_in.m_I_gJetTobs_dv << '\n';
90 
91  return os;
92 }
93 
94 
95 
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jSumEtTobs
BSPtr72 m_I_jSumEtTobs
Definition: GepAlgoHypothesisPortsIn.h:39
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jEmTobs_dv
BSPtr1 m_I_jEmTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:57
GlobalSim::GepAlgoHypothesisPortsIn::m_I_eTauTobs_dv
BSPtr1 m_I_eTauTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:52
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
GlobalSim::AlgoConstants::eFexEtBitWidth
constexpr static std::size_t eFexEtBitWidth
Definition: AlgoConstants.h:15
GlobalSim::eEmInputTOBToString
std::string eEmInputTOBToString(const std::bitset< 72 > &bs)
Definition: GepAlgoHypothesisPortsIn.cxx:9
GlobalSim::GepAlgoHypothesisPortsIn::m_I_MuonTobs_dv
BSPtr1 m_I_MuonTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:58
GlobalSim::GepAlgoHypothesisPortsIn::m_I_MuonTobs
BSPtr72 m_I_MuonTobs
Definition: GepAlgoHypothesisPortsIn.h:37
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jSumEtTobs_dv
BSPtr1 m_I_jSumEtTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:60
GlobalSim::GepAlgoHypothesisPortsIn::m_I_gJetTobs
BSPtr72 m_I_gJetTobs
Definition: GepAlgoHypothesisPortsIn.h:42
GlobalSim::GepAlgoHypothesisPortsIn::m_I_MetTobs_dv
BSPtr1 m_I_MetTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:59
GlobalSim::AlgoConstants::eFexPhiBitWidth
constexpr static std::size_t eFexPhiBitWidth
Definition: AlgoConstants.h:18
GlobalSim::GepAlgoHypothesisPortsIn::m_I_GEPEmTobs
BSPtr72 m_I_GEPEmTobs
Definition: GepAlgoHypothesisPortsIn.h:22
GlobalSim::GepAlgoHypothesisPortsIn::m_I_eEmTobs_dv
BSPtr1 m_I_eEmTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:51
GlobalSim::GepAlgoHypothesisPortsIn::m_I_eEmTobs
BSPtr72 m_I_eEmTobs
Definition: GepAlgoHypothesisPortsIn.h:30
GlobalSim::operator<<
std::ostream & operator<<(std::ostream &os, const TestCounts &tc)
Definition: eEmSortSelectCountContainerComparator.cxx:47
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition: dump.h:8
GlobalSim::GepAlgoHypothesisPortsIn
Definition: GepAlgoHypothesisPortsIn.h:18
GlobalSim::AlgoConstants::eFexEtaBitWidth
constexpr static std::size_t eFexEtaBitWidth
Definition: AlgoConstants.h:17
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jLJetTobs
BSPtr72 m_I_jLJetTobs
Definition: GepAlgoHypothesisPortsIn.h:33
GepAlgoHypothesisPortsIn.h
lumiFormat.i
int i
Definition: lumiFormat.py:85
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jTauTobs_dv
BSPtr1 m_I_jTauTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:55
GlobalSim::GepAlgoHypothesisPortsIn::m_I_GEPJetTobs_dv
BSPtr1 m_I_GEPJetTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:50
GlobalSim::GepAlgoHypothesisPortsIn::m_I_gLJetTobs_dv
BSPtr1 m_I_gLJetTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:62
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
GlobalSim::GepAlgoHypothesisPortsIn::m_I_GEPTauTobs
BSPtr72 m_I_GEPTauTobs
Definition: GepAlgoHypothesisPortsIn.h:28
GlobalSim::GepAlgoHypothesisPortsIn::m_I_MetTobs
BSPtr72 m_I_MetTobs
Definition: GepAlgoHypothesisPortsIn.h:38
GlobalSim::GepAlgoHypothesisPortsIn::m_I_gLJetTobs
BSPtr72 m_I_gLJetTobs
Definition: GepAlgoHypothesisPortsIn.h:41
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jJetTobs
BSPtr72 m_I_jJetTobs
Definition: GepAlgoHypothesisPortsIn.h:32
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jEmTobs
BSPtr72 m_I_jEmTobs
Definition: GepAlgoHypothesisPortsIn.h:36
GlobalSim::eTauInputTOBToString
std::string eTauInputTOBToString(const std::bitset< 72 > &bs)
Definition: GepAlgoHypothesisPortsIn.cxx:29
GlobalSim::GepAlgoHypothesisPortsIn::m_I_EnergyTobs_dv
BSPtr1 m_I_EnergyTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:61
GlobalSim::GepAlgoHypothesisPortsIn::m_I_eTauTobs
BSPtr72 m_I_eTauTobs
Definition: GepAlgoHypothesisPortsIn.h:31
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jLJetTobs_dv
BSPtr1 m_I_jLJetTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:54
GlobalSim::GepAlgoHypothesisPortsIn::m_I_GEPJetTobs
BSPtr72 m_I_GEPJetTobs
Definition: GepAlgoHypothesisPortsIn.h:29
GlobalSim::GepAlgoHypothesisPortsIn::m_I_EnergyTobs
BSPtr72 m_I_EnergyTobs
Definition: GepAlgoHypothesisPortsIn.h:40
GlobalSim::GepAlgoHypothesisPortsIn::m_I_GEPEmTobs_dv
BSPtr1 m_I_GEPEmTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:48
GlobalSim::GepAlgoHypothesisPortsIn::m_I_cTauTobs_dv
BSPtr1 m_I_cTauTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:56
GlobalSim::GepAlgoHypothesisPortsIn::m_I_cTauTobs
BSPtr72 m_I_cTauTobs
Definition: GepAlgoHypothesisPortsIn.h:35
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jJetTobs_dv
BSPtr1 m_I_jJetTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:53
GlobalSim::GepAlgoHypothesisPortsIn::m_I_gJetTobs_dv
BSPtr1 m_I_gJetTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:63
GlobalSim::GepAlgoHypothesisPortsIn::m_I_jTauTobs
BSPtr72 m_I_jTauTobs
Definition: GepAlgoHypothesisPortsIn.h:34
GlobalSim::GepAlgoHypothesisPortsIn::m_I_GEPTauTobs_dv
BSPtr1 m_I_GEPTauTobs_dv
Definition: GepAlgoHypothesisPortsIn.h:49