ATLAS Offline Software
FPGATrackSimDataFlowInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 #include <ostream>
8 
10 {
11  nMappedHits_1st_layer.clear();
13 
14  nClusters_1st_layer.clear();
16 
17  nRoads_1st_total = 0;
18  nRoads_1st_7hits = 0;
19  nRoads_1st_8hits = 0;
20 
24 
28 
32 
33  nRoads_2nd_total = 0;
34 
38 
43 
44  nTruthTracks = 0;
45  nOfflineTracks = 0;
46 
49 }
50 
51 std::ostream& operator<<(std::ostream& s, FPGATrackSimDataFlowInfo const& info)
52 {
53  for (unsigned i = 0; i < info.nMappedHits_1st_layer.size(); i++) {
54  s << "nMappedHits_1st_L" << i << " = " << info.nMappedHits_1st_layer[i] << ", ";
55  }
56  s << "nMappedHits_1st_total = " << info.nMappedHits_1st_total << "\n";
57 
58  for (unsigned i = 0; i < info.nClusters_1st_layer.size(); i++) {
59  s << "nClusters_1st_L" << i << " = " << info.nClusters_1st_layer[i] << ", ";
60  }
61  s << "nClusters_1st_total = " << info.nClusters_1st_total << "\n";
62 
63  s << "nRoads_1st_total = " << info.nRoads_1st_total << ", "
64  << "nRoads_1st_7hits = " << info.nRoads_1st_7hits << ", "
65  << "nRoads_1st_7hits = " << info.nRoads_1st_8hits << "\n";
66 
67  s << "nTracks_1st_total = " << info.nTracks_1st_total << ", "
68  << "nTracks_1st_passChi2 = " << info.nTracks_1st_passChi2 << ", "
69  << "nTracks_1st_afterOR = " << info.nTracks_1st_afterOR << "\n";
70 
71  s << "nTracks_1st_per_patt_total = {";
72  for (unsigned i = 0; i < info.nTracks_1st_per_patt_total.size(); i++) {
73  s << "pattern #" << i << ": " << info.nTracks_1st_per_patt_total[i];
74  s << (i != info.nTracks_1st_per_patt_total.size() - 1 ? ", " : "}\n");
75  }
76 
77  s << "nTracks_1st_per_patt_passChi2 = {";
78  for (unsigned i = 0; i < info.nTracks_1st_per_patt_passChi2.size(); i++) {
79  s << "pattern #" << i << ": " << info.nTracks_1st_per_patt_passChi2[i];
80  s << (i != info.nTracks_1st_per_patt_passChi2.size() - 1 ? ", " : "}\n");
81  }
82 
83  s << "nTracks_1st_per_patt_afterOR = {";
84  for (unsigned i = 0; i < info.nTracks_1st_per_patt_afterOR.size(); i++) {
85  s << "pattern #" << i << ": " << info.nTracks_1st_per_patt_afterOR[i];
86  s << (i != info.nTracks_1st_per_patt_afterOR.size() - 1 ? ", " : "}\n");
87  }
88 
89  s << "nConstants_1st_fitter = " << info.nConstants_1st_fitter << ", "
90  << "nConstants_1st_passChi2 = " << info.nConstants_1st_passChi2 << ", "
91  << "nConstants_1st_afterOR = " << info.nConstants_1st_afterOR << "\n";
92 
93  s << "nRoads_2nd_total = " << info.nRoads_2nd_total << "\n";
94 
95  s << "nTracks_2nd_total = " << info.nTracks_2nd_total << ", "
96  << "nTracks_2nd_passChi2 = " << info.nTracks_2nd_passChi2 << ", "
97  << "nTracks_2nd_afterOR = " << info.nTracks_2nd_afterOR << "\n";
98 
99  s << "nConstants_2nd_extrapolate = " << info.nConstants_2nd_extrapolate << ", "
100  << "nConstants_2nd_fitter = " << info.nConstants_2nd_fitter << ", "
101  << "nConstants_2nd_passChi2 = " << info.nConstants_2nd_passChi2 << ", "
102  << "nConstants_2nd_afterOR = " << info.nConstants_2nd_afterOR << "\n";
103 
104  s << "nTruthTracks = " << info.nTruthTracks << ", "
105  << "nOfflineTracks = " << info.nOfflineTracks << "\n";
106 
107  s << "nTracks_1st_over_nOfflineTracks = " << info.nTracks_1st_over_nOfflineTracks << ", "
108  << "nTracks_2nd_over_nOfflineTracks = " << info.nTracks_2nd_over_nOfflineTracks;
109 
110  return s;
111 }
grepfile.info
info
Definition: grepfile.py:38
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
FPGATrackSimDataFlowInfo::nTruthTracks
size_t nTruthTracks
Definition: FPGATrackSimDataFlowInfo.h:53
FPGATrackSimDataFlowInfo::nTracks_1st_afterOR
size_t nTracks_1st_afterOR
Definition: FPGATrackSimDataFlowInfo.h:32
FPGATrackSimDataFlowInfo::nConstants_2nd_extrapolate
size_t nConstants_2nd_extrapolate
Definition: FPGATrackSimDataFlowInfo.h:48
FPGATrackSimDataFlowInfo::nTracks_1st_per_patt_passChi2
std::vector< size_t > nTracks_1st_per_patt_passChi2
Definition: FPGATrackSimDataFlowInfo.h:35
FPGATrackSimDataFlowInfo::nMappedHits_1st_layer
std::vector< size_t > nMappedHits_1st_layer
Definition: FPGATrackSimDataFlowInfo.h:20
FPGATrackSimDataFlowInfo::nTracks_1st_over_nOfflineTracks
float nTracks_1st_over_nOfflineTracks
Definition: FPGATrackSimDataFlowInfo.h:56
FPGATrackSimDataFlowInfo::nConstants_1st_passChi2
size_t nConstants_1st_passChi2
Definition: FPGATrackSimDataFlowInfo.h:39
FPGATrackSimDataFlowInfo::nClusters_1st_layer
std::vector< size_t > nClusters_1st_layer
Definition: FPGATrackSimDataFlowInfo.h:23
FPGATrackSimDataFlowInfo::nRoads_2nd_total
size_t nRoads_2nd_total
Definition: FPGATrackSimDataFlowInfo.h:42
FPGATrackSimDataFlowInfo::nTracks_1st_passChi2
size_t nTracks_1st_passChi2
Definition: FPGATrackSimDataFlowInfo.h:31
FPGATrackSimDataFlowInfo::nTracks_1st_per_patt_total
std::vector< size_t > nTracks_1st_per_patt_total
Definition: FPGATrackSimDataFlowInfo.h:34
operator<<
std::ostream & operator<<(std::ostream &s, FPGATrackSimDataFlowInfo const &info)
Definition: FPGATrackSimDataFlowInfo.cxx:51
FPGATrackSimDataFlowInfo::nTracks_2nd_passChi2
size_t nTracks_2nd_passChi2
Definition: FPGATrackSimDataFlowInfo.h:45
FPGATrackSimDataFlowInfo::nConstants_1st_afterOR
size_t nConstants_1st_afterOR
Definition: FPGATrackSimDataFlowInfo.h:40
FPGATrackSimDataFlowInfo::nRoads_1st_total
size_t nRoads_1st_total
Definition: FPGATrackSimDataFlowInfo.h:26
FPGATrackSimDataFlowInfo
Definition: FPGATrackSimDataFlowInfo.h:18
FPGATrackSimDataFlowInfo::nMappedHits_1st_total
size_t nMappedHits_1st_total
Definition: FPGATrackSimDataFlowInfo.h:21
FPGATrackSimDataFlowInfo::nOfflineTracks
size_t nOfflineTracks
Definition: FPGATrackSimDataFlowInfo.h:54
lumiFormat.i
int i
Definition: lumiFormat.py:85
FPGATrackSimDataFlowInfo.h
Structs that store the data flow information per event.
FPGATrackSimDataFlowInfo::nTracks_2nd_over_nOfflineTracks
float nTracks_2nd_over_nOfflineTracks
Definition: FPGATrackSimDataFlowInfo.h:57
FPGATrackSimDataFlowInfo::nRoads_1st_7hits
size_t nRoads_1st_7hits
Definition: FPGATrackSimDataFlowInfo.h:27
FPGATrackSimDataFlowInfo::nConstants_2nd_passChi2
size_t nConstants_2nd_passChi2
Definition: FPGATrackSimDataFlowInfo.h:50
FPGATrackSimDataFlowInfo::nConstants_2nd_afterOR
size_t nConstants_2nd_afterOR
Definition: FPGATrackSimDataFlowInfo.h:51
FPGATrackSimDataFlowInfo::nTracks_1st_total
size_t nTracks_1st_total
Definition: FPGATrackSimDataFlowInfo.h:30
FPGATrackSimDataFlowInfo::nTracks_2nd_afterOR
size_t nTracks_2nd_afterOR
Definition: FPGATrackSimDataFlowInfo.h:46
FPGATrackSimDataFlowInfo::nConstants_1st_fitter
size_t nConstants_1st_fitter
Definition: FPGATrackSimDataFlowInfo.h:38
FPGATrackSimDataFlowInfo::reset
void reset()
Definition: FPGATrackSimDataFlowInfo.cxx:9
FPGATrackSimDataFlowInfo::nTracks_2nd_total
size_t nTracks_2nd_total
Definition: FPGATrackSimDataFlowInfo.h:44
FPGATrackSimDataFlowInfo::nConstants_2nd_fitter
size_t nConstants_2nd_fitter
Definition: FPGATrackSimDataFlowInfo.h:49
FPGATrackSimDataFlowInfo::nClusters_1st_total
size_t nClusters_1st_total
Definition: FPGATrackSimDataFlowInfo.h:24
FPGATrackSimDataFlowInfo::nRoads_1st_8hits
size_t nRoads_1st_8hits
Definition: FPGATrackSimDataFlowInfo.h:28
FPGATrackSimDataFlowInfo::nTracks_1st_per_patt_afterOR
std::vector< size_t > nTracks_1st_per_patt_afterOR
Definition: FPGATrackSimDataFlowInfo.h:36