ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Overlay
IDC_OverlayBase
IDC_OverlayBase
IDC_OverlayHelpers.icc
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
/// Helpers for overlaying Identifiable Containers
6
/// @author Tadej Novak
7
8
#include <sstream>
9
10
namespace Overlay
11
{
12
13
template <class IDC_Container>
14
std::string debugPrint(const IDC_Container *container,
15
unsigned maxprint)
16
{
17
std::ostringstream os;
18
if (container) {
19
for (unsigned i = 0; i < maxprint; i++) {
20
auto p = container->indexFindPtr(i);
21
if (p != nullptr) {
22
os << " " << p->size();
23
} else {
24
os << " *";
25
}
26
}
27
} else {
28
os << "(NULL)";
29
}
30
return os.str();
31
}
32
33
} // namespace Overlay
Generated on
for ATLAS Offline Software by
1.17.0