#ifndef CBMLITUTILS_H_ #define CBMLITUTILS_H_ #include "TCanvas.h" #include #include template std::string ToString( const T& value) { std::stringstream ss; ss.precision(3); ss << value; return ss.str(); } void SaveCanvasAsImage( TCanvas* c, const std::string& dir); #endif /* CBMLITUTILS_H_ */