5#include "fire/StorageControl.h"
6#include "fire/Conditions.h"
8#include "fire/Processor.h"
9#include "fire/RunHeader.h"
Container and cache for conditions and conditions providers.
Definition: Conditions.h:66
Event class for interfacing with processors.
Definition: Event.h:28
const EventHeader & header() const
Get the event header.
Definition: Event.h:156
The central object managing the data processing.
Definition: Process.h:16
int event_limit_
limit on number of events to process
Definition: Process.h:215
int max_tries_
number of attempts to make before giving up on an event PRODUCTION MODE
Definition: Process.h:221
const RunHeader & runHeader() const
Get a const reference to the run header.
Definition: Process.h:121
Event event_
event object
Definition: Process.h:242
RunHeader * run_header_
the current run header
Definition: Process.h:245
StorageControl storage_control_
object used to determine if an event should be saved or not
Definition: Process.h:236
RunHeader & runHeader()
Get a non-const reference to the run header.
Definition: Process.h:132
EventHeader & eventHeader()
Get a non-constant reference to the event header.
Definition: Process.h:111
io::Writer output_file_
output file we are writing to
Definition: Process.h:230
ENABLE_LOGGING(Process)
log through the 'Process' channel
void addStorageControlHint(StorageControl::Hint hint, const std::string &purpose, const std::string &processor)
Add a storage control hint to the StorageControl system.
Definition: Process.h:148
void run()
Do the processing run.
Definition: Process.cxx:52
int log_frequency_
frequency with which event info is printed
Definition: Process.h:218
Conditions & conditions()
Get a reference to the current conditions system.
Definition: Process.h:164
int run_
run number to use PRODUCTION MODE
Definition: Process.h:224
std::vector< std::string > input_files_
input file listing, PRODUCTION MODE if empty
Definition: Process.h:227
bool process(const std::size_t &n_events_processed)
process the event
Definition: Process.cxx:197
Process(const config::Parameters &configuration)
Construct the process by configuring the necessary objects.
Definition: Process.cxx:10
std::vector< std::unique_ptr< Processor > > sequence_
the sequence of processors to run
Definition: Process.h:233
void newRun(RunHeader &rh)
Method to declare a new run is beginning.
Definition: Process.cxx:184
std::unique_ptr< Conditions > conditions_
handle to conditions system
Definition: Process.h:239
const EventHeader & eventHeader() const
Get a constant reference to the event header.
Definition: Process.h:103
~Process()
close logging before we are done
Definition: Process.cxx:50
Isolation of voting system deciding if events should be kept.
Definition: StorageControl.h:21
Hint
Hints that can be provided by processors to the storage controller.
Definition: StorageControl.h:30
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
Class encapsulating parameters for configuring a processor.
Definition: Parameters.h:28
Write the fire DataSets into a deterministic structure in the output HDF5 data file.
Definition: Writer.h:19
Interface to Boost.Logging.