Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoParticleFlow
PFClusterTools
interface
ToString.h
Go to the documentation of this file.
1
2
#ifndef TOSTR_H
3
#define TOSTR_H
4
#include <sstream>
5
#include <iostream>
6
template
<
class
T>
std::string
toString
(
const
T
& aT) {
7
std::ostringstream oss;
8
oss << aT;
9
return
oss.str();
10
}
11
12
template
<
class
T>
std::string
toString
(
const
std::pair<T, T>& aT) {
13
std::ostringstream oss;
14
oss <<
"("
<< aT.first <<
", "
<< aT.second <<
")"
;
15
return
oss.str();
16
}
17
18
19
#endif
/*TOSTR_H */
20
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
toolbox::toString
std::string toString(const char *format,...)
Definition:
xdaq_compat.cc:4
T
long double T
Definition:
Basic3DVectorLD.h:59
Generated for CMSSW Reference Manual by
1.8.5