1#ifndef FIRE_STORAGECONTROL_H_
2#define FIRE_STORAGECONTROL_H_
8#include "fire/config/Parameters.h"
Isolation of voting system deciding if events should be kept.
Definition: StorageControl.h:21
bool keepEvent() const
Determine if the current event should be kept, based on the defined rules.
Definition: StorageControl.cxx:51
std::vector< Hint > hints_
Collection of hints from the event processors.
Definition: StorageControl.h:113
std::vector< std::pair< std::regex, std::regex > > rules_
Collection of rules allowing certain processors or purposes to be considered ("listened to") during t...
Definition: StorageControl.h:107
Hint
Hints that can be provided by processors to the storage controller.
Definition: StorageControl.h:30
bool default_keep_
Default state for storage control.
Definition: StorageControl.h:94
void addHint(Hint hint, const std::string &purpose, const std::string &processor_name)
Add a storage hint for a given processor.
Definition: StorageControl.cxx:36
StorageControl(const config::Parameters &ps)
Configure the various options for how the storage contol behaves.
Definition: StorageControl.cxx:5
void resetEventState()
Reset the event-by-event state by removing any hints provided by processors during the previous event...
Definition: StorageControl.cxx:34
Class encapsulating parameters for configuring a processor.
Definition: Parameters.h:28