Skip to content

Commit

Permalink
Adding list of directories. Adding trigger task description.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWielanek committed Oct 25, 2024
1 parent 05015c8 commit c80d3ff
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
10 changes: 8 additions & 2 deletions data/io/InputDataInfo.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ namespace Hal {


InputDataInfo::InputDataInfo(TString file) : fListName(file) {
if (file.EndsWith(".list")) {
if (file.EndsWith(".list")) { // list file
auto vec = Hal::Std::GetLinesFromFile(file, kTRUE);
fFileNames.push_back(vec);
} else if (file.EndsWith(".xml")) {
} else if (file.EndsWith(".xml")) { // xml file
XMLFile xmlFile(file);
auto root = xmlFile.GetRootNode();
auto files = root->GetChild("files");
Expand All @@ -42,6 +42,12 @@ namespace Hal {
fFileNames[i].push_back(list->GetChild(j)->GetValue());
}
}
} else if (file.EndsWith("/")) { // directory
auto vec = Hal::Std::GetListOfFiles(file, "root", kTRUE, kTRUE);
for (auto singleFile : vec) {
std::vector<TString> row {singleFile};
fFileNames.push_back(row);
}
} else {
fFileNames.resize(1);
fFileNames[0].push_back(file);
Expand Down
8 changes: 5 additions & 3 deletions data/io/TriggerTask.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@

#include "Task.h"

/**
* special class for fast data selection - works only with AnalysisManager
*/

namespace Hal {
class Package;
/**
* special class for fast data selection - works only with AnalysisManager
* when trigger task return false the branches with status 0 are ignored, other tasks are not executed
*/
class TriggerTask : public Task {
Bool_t fGood = {kFALSE};
Bool_t fActive = {kFALSE};
Expand Down

0 comments on commit c80d3ff

Please sign in to comment.