85 #include "TRestEventSelectionProcess.h"
104 SetSectionName(this->ClassName());
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()) {
139 if (this->GetAnalysisTree()->EvaluateCuts(fConditions)) {
144 for (
auto id : fList) {
145 if (
id == fEvent->GetID()) {
159 RESTMetadata <<
"File with IDs: " << fFileWithIDs << RESTendl;
160 RESTMetadata <<
"Conditions: " << fConditions << RESTendl;
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.