Skip to content
Snippets Groups Projects
Commit 3fcb41e9 authored by Danilo Piparo's avatar Danilo Piparo
Browse files

[Math] Add value printing for LorentzVector

in order to make the interactive experience in python and at the
prompt more rewarding:
```
root [0] ROOT::Math::XYZTVector v
(ROOT::Math::XYZTVector &) (0,0,0,0)
```
parent 855e7665
Branches
Tags
No related merge requests found
......@@ -753,7 +753,18 @@ namespace ROOT {
} // end namespace ROOT
#include <sstream>
namespace cling
{
template<typename CoordSystem>
std::string printValue(const ROOT::Math::LorentzVector<CoordSystem> *v)
{
std::stringstream s;
s << *v;
return s.str();
}
} // end namespace cling
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment