ATLAS Offline Software
Loading...
Searching...
No Matches
AnomalyDetectionBDT.cxx File Reference
#include "L1TopoAlgorithms/AnomalyDetectionBDT.h"
#include "L1TopoInterfaces/Decision.h"
#include "L1TopoCommon/Exception.h"
#include "L1TopoSimulationUtils/Helpers.h"
#include <PathResolver/PathResolver.h>
#include <fstream>
#include <iostream>
Include dependency graph for AnomalyDetectionBDT.cxx:

Go to the source code of this file.

Namespaces

namespace  TCS

Functions

template<typename T>
std::string vectorToString (const std::vector< T > &vec)
std::ostream & TCS::operator<< (std::ostream &os, const TCS::Bin &bin)

Function Documentation

◆ vectorToString()

template<typename T>
std::string vectorToString ( const std::vector< T > & vec)

Definition at line 33 of file AnomalyDetectionBDT.cxx.

33 {
34 std::ostringstream oss;
35 oss << "[";
36 bool first = true;
37 for (const auto& val : vec) {
38 if (!first) {
39 oss << ", ";
40 }
41 oss << val;
42 first = false;
43 }
44 oss << "]";
45 return oss.str();
46}
std::vector< size_t > vec
bool first
Definition DeMoScan.py:534