Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
DataCollector.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef GLOBALSIM_DATACOLLECTOR_H
6 #define GLOBALSIM_DATACOLLECTOR_H
7 
8 #include "AlgoDataTypes.h"
9 #include "GenericTob.h"
11 #include <ostream>
12 #include <map>
13 #include <vector>
14 
15 namespace GlobalSim {
16  class DataCollector;
17 }
18 
19 std::ostream& operator << (std::ostream& os,
21 namespace GlobalSim {
23  public:
25 
26 
27  friend std::ostream& ::operator << (std::ostream& os,
29 
30  void collect(const std::string& label, const std::vector<int>& val) {
31  m_ints[label] = val;
32  }
33 
34  void collect(const std::string& label,
35  const std::vector<std::size_t>& val) {
36  m_sz_ts[label] = val;
37  }
38 
39  void collect(const std::string& label, const std::vector<eEmTobPtr>& val) {
41  }
42 
43 
44  void collect(const std::string& label,
45  const std::vector<std::vector<eEmTobPtr>>& val) {
47  }
48 
49  void collect(const std::string& label,
50  const std::vector<std::vector<GenTobPtr>>& val) {
52  }
53 
54  private:
55  std::map<std::string, std::vector<int>> m_ints;
56  std::map<std::string, std::vector<std::size_t>> m_sz_ts;
57  std::map<std::string, std::vector<eEmTobPtr>> m_eEmTobContainers;
58  std::map<std::string,
59  std::vector<std::vector<eEmTobPtr>>> m_vec_eEmTobContainers;
60 
61 
62  std::map<std::string, std::vector<std::vector<GenTobPtr>>>
64 
65 
66  };
67 }
68 
69 std::ostream& operator << (std::ostream& os,
71 
72 #endif
eEmSortSelectCountContainerPortsOut.h
GlobalSim::DataCollector::m_ints
std::map< std::string, std::vector< int > > m_ints
Definition: DataCollector.h:55
AlgoDataTypes.h
operator<<
std::ostream & operator<<(std::ostream &os, const GlobalSim::DataCollector &col)
Definition: DataCollector.cxx:3
GenericTob.h
GlobalSim::DataCollector::m_sz_ts
std::map< std::string, std::vector< std::size_t > > m_sz_ts
Definition: DataCollector.h:56
GlobalSim::DataCollector::m_vec_GenericTobContainers
std::map< std::string, std::vector< std::vector< GenTobPtr > > > m_vec_GenericTobContainers
Definition: DataCollector.h:63
GlobalSim::DataCollector::collect
void collect(const std::string &label, const std::vector< std::vector< GenTobPtr >> &val)
Definition: DataCollector.h:49
GlobalSim::DataCollector::GenTobPtr
typename eEmSortSelectCountContainerPortsOut::GenTobPtr GenTobPtr
Definition: DataCollector.h:24
GlobalSim
AlgTool to obtain a selection of eFex RoIs read in from the event store.
Definition: dump.h:8
add-xsec-uncert-quadrature-N.label
label
Definition: add-xsec-uncert-quadrature-N.py:104
GlobalSim::DataCollector::collect
void collect(const std::string &label, const std::vector< std::size_t > &val)
Definition: DataCollector.h:34
GlobalSim::eEmSortSelectCountContainerPortsOut::GenTobPtr
std::shared_ptr< GenericTob > GenTobPtr
Definition: eEmSortSelectCountContainerPortsOut.h:91
GlobalSim::DataCollector
Definition: DataCollector.h:22
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
GlobalSim::DataCollector::m_vec_eEmTobContainers
std::map< std::string, std::vector< std::vector< eEmTobPtr > > > m_vec_eEmTobContainers
Definition: DataCollector.h:59
query_example.col
col
Definition: query_example.py:7
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
GlobalSim::DataCollector::collect
void collect(const std::string &label, const std::vector< int > &val)
Definition: DataCollector.h:30
GlobalSim::DataCollector::collect
void collect(const std::string &label, const std::vector< std::vector< eEmTobPtr >> &val)
Definition: DataCollector.h:44
GlobalSim::DataCollector::collect
void collect(const std::string &label, const std::vector< eEmTobPtr > &val)
Definition: DataCollector.h:39
GlobalSim::DataCollector::m_eEmTobContainers
std::map< std::string, std::vector< eEmTobPtr > > m_eEmTobContainers
Definition: DataCollector.h:57