Skip to content

Commit

Permalink
REST_CheckValidRuns.C. Now uses GetFilesMatchingPattern that avoids i…
Browse files Browse the repository at this point in the history
…ssue with max arguments
  • Loading branch information
jgalan committed Dec 30, 2023
1 parent f669d57 commit 8a6e919
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions macros/REST_CheckValidRuns.C
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ namespace fs = std::filesystem;
//*** CAUTION: Be aware that any non-REST file in the list will be removed if you use purge=1
//***
//*******************************************************************************************************
Int_t REST_CheckValidRuns(TString namePattern, Bool_t purge = false) {
Int_t REST_CheckValidRuns(std::string namePattern, Bool_t purge = false) {
TGeoManager::SetVerboseLevel(0);

vector<std::string> filesNotWellClosed;

TRestStringOutput RESTLog;

string a = TRestTools::Execute((string)("ls -d -1 " + namePattern));
vector<string> b = Split(a, "\n");
std::vector<std::string> b = TRestTools::GetFilesMatchingPattern(namePattern, true);

Double_t totalTime = 0;
int cont = 0;
Expand Down

0 comments on commit 8a6e919

Please sign in to comment.