Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TRestAnalysisPlot. Now addFile supports filename patterns #251

Merged
merged 8 commits into from
Jun 15, 2022
5 changes: 3 additions & 2 deletions source/framework/core/src/TRestAnalysisPlot.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ void TRestAnalysisPlot::InitFromConfigFile() {

TiXmlElement* ele = GetElement("addFile");
while (ele != nullptr) {
TString inputfile = GetParameter("name", ele);
this->AddFile(inputfile);
std::string inputfile = GetParameter("name", ele);
std::vector<std::string> infiles = TRestTools::GetFilesMatchingPattern(inputfile);
for (const auto& f : infiles) this->AddFile(f);
ele = GetNextElement(ele);
}
// try to add files from external TRestRun handler
Expand Down