85#include "TRestEventSelectionProcess.h"
116 ifstream File(fFileWithIDs);
118 if (File.is_open()) {
119 while (getline(File, line)) {
120 fList.push_back(stoi(line));
126 fList = run.GetEventIdsWithConditions(fConditions);
128 RESTDebug <<
"TRestEventSelectionProcess: using the processing file itself." <<
RESTendl;
138 if (fFileWithIDs.empty()) {
144 for (
auto id : fList) {
145 if (
id == fEvent->GetID()) {
159 RESTMetadata <<
"File with IDs: " << fFileWithIDs <<
RESTendl;
160 RESTMetadata <<
"Conditions: " << fConditions <<
RESTendl;
void BeginPrintProcess()
[name, cut range]
TRestAnalysisTree * GetAnalysisTree() const
Return the local analysis tree (dummy)
A template process to serve as an example to create new TRestRawSignalEventProcess.
void PrintMetadata() override
Prints on screen the process data members.
TRestEventSelectionProcess()
Default constructor.
void Initialize() override
A list with the event ids that have been selected.
TRestEvent * ProcessEvent(TRestEvent *inputEvent) override
The main processing event function.
void InitProcess() override
Process initialization.
A base class for any REST event.
Data provider and manager in REST.