LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ProcessingLimits.h"
Classes | |
struct | Config |
Public Member Functions | |
ProcessingLimits (Config const &config, std::function< input::ItemType()> nextItemType) | |
input::ItemType | nextItemType () |
InputSource::ProcessingMode | processingMode () const noexcept |
int | remainingEvents () const noexcept |
int | remainingSubRuns () const noexcept |
void | update (EventID const &id) |
void | update (SubRunID const &id) |
Private Member Functions | |
bool | allowed_ (input::ItemType) const noexcept |
Private Attributes | |
InputSource::ProcessingMode | processingMode_ |
int | remainingEvents_ |
int | remainingSubRuns_ |
int | reportFrequency_ |
int | numberOfEventsRead_ {} |
std::function< input::ItemType()> | nextItemType_ |
Definition at line 11 of file ProcessingLimits.h.
art::ProcessingLimits::ProcessingLimits | ( | Config const & | config, |
std::function< input::ItemType()> | nextItemType | ||
) |
Definition at line 9 of file ProcessingLimits.cc.
References art::errors::Configuration, art::ProcessingLimits::Config::maxEvents, art::ProcessingLimits::Config::maxSubRuns, art::InputSource::mode(), nextItemType(), nextItemType_, art::ProcessingLimits::Config::processingMode, remainingEvents_, remainingSubRuns_, art::ProcessingLimits::Config::reportFrequency, and reportFrequency_.
|
privatenoexcept |
Definition at line 77 of file ProcessingLimits.cc.
References art::input::IsEvent, art::input::IsSubRun, processingMode_, art::InputSource::RunsAndSubRuns, and art::InputSource::RunsSubRunsAndEvents.
Referenced by nextItemType().
input::ItemType art::ProcessingLimits::nextItemType | ( | ) |
Definition at line 25 of file ProcessingLimits.cc.
References allowed_(), art::input::IsStop, nextItemType_, remainingEvents_, and remainingSubRuns_.
Referenced by art::EmptyEvent::nextItemType(), and ProcessingLimits().
|
noexcept |
Definition at line 39 of file ProcessingLimits.cc.
References processingMode_.
|
noexcept |
|
noexcept |
void art::ProcessingLimits::update | ( | EventID const & | id | ) |
Definition at line 65 of file ProcessingLimits.cc.
References art::detail::issue_reports(), numberOfEventsRead_, remainingEvents_, and reportFrequency_.
Referenced by art::EmptyEvent::readEvent(), and art::EmptyEvent::readSubRun().
void art::ProcessingLimits::update | ( | SubRunID const & | id | ) |
|
private |
Definition at line 52 of file ProcessingLimits.h.
Referenced by nextItemType(), and ProcessingLimits().
|
private |
Definition at line 51 of file ProcessingLimits.h.
Referenced by update().
|
private |
Definition at line 46 of file ProcessingLimits.h.
Referenced by allowed_(), and processingMode().
|
private |
Definition at line 48 of file ProcessingLimits.h.
Referenced by nextItemType(), ProcessingLimits(), remainingEvents(), and update().
|
private |
Definition at line 49 of file ProcessingLimits.h.
Referenced by nextItemType(), ProcessingLimits(), remainingSubRuns(), and update().
|
private |
Definition at line 50 of file ProcessingLimits.h.
Referenced by ProcessingLimits(), and update().