CMS 3D CMS Logo

Functions
triton_utils Namespace Reference

Functions

template<typename DT >
bool checkType (inference::DataType dtype)
 
void convertToWarning (const cms::Exception &e)
 
template<typename C >
std::string printColl (const C &coll, const std::string &delim=", ")
 

Function Documentation

◆ checkType()

template<typename DT >
bool triton_utils::checkType ( inference::DataType  dtype)

Definition at line 20 of file triton_utils.h.

20  {
21  return false;
22  }

◆ convertToWarning()

void triton_utils::convertToWarning ( const cms::Exception e)

Definition at line 19 of file triton_utils.cc.

References MillePedeFileConverter_cfg::e.

Referenced by TritonMemResource< IO >::closeSafe().

19 { edm::LogWarning(e.category()) << e.explainSelf(); }
Log< level::Warning, false > LogWarning

◆ printColl()

template<typename C >
std::string triton_utils::printColl ( const C &  coll,
const std::string &  delim = ", " 
)

Definition at line 10 of file triton_utils.cc.

References filterCSVwithJSON::copy, and mps_check::msg.

Referenced by TritonClient::TritonClient().

10  {
11  if (coll.empty())
12  return "";
13  std::stringstream msg;
14  //avoid trailing delim
15  std::copy(std::begin(coll), std::end(coll), std::experimental::make_ostream_joiner(msg, delim));
16  return msg.str();
17  }
tuple msg
Definition: mps_check.py:286