Read title of a file

Hi,

How to read title of a file like of the file ‘Run_%d.root’ located in a directory.

Cheers,

Hi,

with the TFile::GetTitle() method.

TFile f("my/path/to/file/MyFile.root");
auto title = f.GetTitle();

Cheers,
D

Thanks a lot.

[quote=“dpiparo”]Hi,

with the TFile::GetTitle() method.

TFile f("my/path/to/file/MyFile.root");
auto title = f.GetTitle();

Cheers,
D[/quote]