76#include "TRestEventSelectionProcess.h"
106 ifstream File(fFileWithIDs);
108 if (File.is_open()) {
109 while (getline(File, line)) {
110 fList.push_back(stoi(line));
116 fList = run->GetEventIdsWithConditions(fConditions);
127 for (
unsigned int i = 0; i < fList.size(); i++) {
128 if (fList[i] == fEvent->GetID()) {
142 RESTMetadata <<
"File with IDs: " << fFileWithIDs <<
RESTendl;
143 if (fFileWithIDs.substr(fFileWithIDs.length() - 4) ==
"root") {
144 RESTMetadata <<
"Conditions: " << fConditions <<
RESTendl;
void BeginPrintProcess()
[name, cut range]
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.