使用 Info() 函数在 ROOT 中打印

Printing in ROOT with Info() function

我正在尝试使用 Info 在 ROOT 中创建一些打印语句,如 信息("execute()","the pt of the jet = %.2f Gev", (*jets_itr)->pt()); 我正在尝试找到一些文档,告诉我使用什么符号来表示整数、双精度数等(我想从另一个来源知道 .2f 是一个浮点数,但除此之外我只是猜测)。 谢谢

您可以在此处找到完整列表: http://www.cplusplus.com/reference/cstdio/printf/