Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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
toString
std::string toString(const std::pair< T, T > &aT)
Definition:
CaloEllipse.h:72
T
long double T
Definition:
Basic3DVectorLD.h:59
Generated for CMSSW Reference Manual by
1.8.5