Main Page
Namespaces
Classes
Package Documentation
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
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
toString
std::string toString(const T &aT)
Definition:
ToString.h:6
T
long double T
Definition:
Basic3DVectorLD.h:66
Generated for CMSSW Reference Manual by
1.8.11