LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "Source.h"
Public Types | |
using | Parameters = typename detail::maybe_has_Parameters< T >::Parameters |
enum | ProcessingMode { Runs, RunsAndSubRuns, RunsSubRunsAndEvents } |
Public Member Functions | |
template<typename U = Parameters> | |
Source (std::enable_if_t< std::is_same_v< U, fhicl::ParameterSet >, fhicl::ParameterSet > const &p, InputSourceDescription &d) | |
template<typename U = Parameters> | |
Source (std::enable_if_t<!std::is_same_v< U, fhicl::ParameterSet >, U > const &p, InputSourceDescription &d) | |
Source (Source< T > const &)=delete | |
Source (Source< T > &&)=delete | |
Source< T > & | operator= (Source< T > const &)=delete |
Source< T > & | operator= (Source< T > &&)=delete |
virtual void | doBeginJob () |
virtual void | doEndJob () |
virtual void | skipEvents (int n) |
ModuleDescription const & | moduleDescription () const |
ProcessConfiguration const & | processConfiguration () const |
Static Public Member Functions | |
static ProcessingMode | mode (std::string const &modeString) |
Private Member Functions | |
input::ItemType | nextItemType () override |
std::unique_ptr< FileBlock > | readFile () override |
void | closeFile () override |
std::unique_ptr< RunPrincipal > | readRun () override |
std::unique_ptr< SubRunPrincipal > | readSubRun (cet::exempt_ptr< RunPrincipal const > rp) override |
std::unique_ptr< EventPrincipal > | readEvent (cet::exempt_ptr< SubRunPrincipal const > srp) override |
std::unique_ptr< RangeSetHandler > | runRangeSetHandler () override |
std::unique_ptr< RangeSetHandler > | subRunRangeSetHandler () override |
void | finishProductRegistration_ (InputSourceDescription &d) |
bool | readNext_ () |
void | checkForNextFile_ () |
void | readNextAndRequireRun_ () |
void | readNextAndRefuseEvent_ () |
void | throwIfInsane_ (bool result, RunPrincipal *newR, SubRunPrincipal *newSR, EventPrincipal *newE) const |
Static Private Member Functions | |
static void | throwDataCorruption_ (const char *msg) |
Private Attributes | |
ProductRegistryHelper | h_ {product_creation_mode::reconstitutes} |
UpdateOutputCallbacks & | outputCallbacks_ |
ProductTables | presentProducts_ {ProductTables::invalid()} |
SourceHelper | sourceHelper_ |
T | detail_ |
input::ItemType | state_ {input::IsInvalid} |
detail::FileNamesHandler< Source_wantFileServices< T >::value > | fh_ |
std::string | currentFileName_ {} |
std::unique_ptr< RunPrincipal > | newRP_ {} |
std::unique_ptr< SubRunPrincipal > | newSRP_ {} |
std::unique_ptr< EventPrincipal > | newE_ {} |
cet::exempt_ptr< RunPrincipal > | cachedRP_ {nullptr} |
cet::exempt_ptr< SubRunPrincipal > | cachedSRP_ {nullptr} |
bool | pendingSubRun_ {false} |
bool | pendingEvent_ {false} |
bool | subRunIsNew_ {false} |
SubRunNumber_t | remainingSubRuns_ {1} |
bool | haveSRLimit_ {false} |
EventNumber_t | remainingEvents_ {1} |
bool | haveEventLimit_ {false} |
using art::Source< T >::Parameters = typename detail::maybe_has_Parameters<T>::Parameters |
|
inherited |
Enumerator | |
---|---|
Runs | |
RunsAndSubRuns | |
RunsSubRunsAndEvents |
Definition at line 61 of file InputSource.h.
|
explicit |
Definition at line 298 of file Source.h.
References d, art::Source< T >::detail_, art::Source< T >::fh_, art::Source< T >::finishProductRegistration_(), art::Source< T >::h_, art::Source< T >::haveEventLimit_, art::Source< T >::haveSRLimit_, art::InputSourceDescription::moduleDescription, art::Source< T >::outputCallbacks_, art::Source< T >::remainingEvents_, art::Source< T >::remainingSubRuns_, and art::Source< T >::sourceHelper_.
|
explicit |
Definition at line 322 of file Source.h.
References d, art::Source< T >::detail_, art::Source< T >::fh_, art::Source< T >::finishProductRegistration_(), art::Source< T >::h_, art::Source< T >::haveEventLimit_, art::Source< T >::haveSRLimit_, art::InputSourceDescription::moduleDescription, art::Source< T >::outputCallbacks_, art::Source< T >::remainingEvents_, and art::Source< T >::remainingSubRuns_.
|
delete |
|
delete |
|
private |
Definition at line 502 of file Source.h.
References art::Source< T >::currentFileName_, art::Source< T >::detail_, art::Source< T >::fh_, art::input::IsFile, art::input::IsStop, art::Source< T >::state_, and value.
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readNextAndRefuseEvent_(), and art::Source< T >::readNextAndRequireRun_().
|
overrideprivatevirtual |
Implements art::InputSource.
Definition at line 650 of file Source.h.
References art::Source< T >::cachedRP_, art::Source< T >::cachedSRP_, and art::Source< T >::detail_.
|
virtualinherited |
|
virtualinherited |
|
private |
Definition at line 703 of file Source.h.
References art::Source< T >::h_, fhicl::ParameterSet::id(), art::UpdateOutputCallbacks::invoke(), art::legacy, art::InputSourceDescription::moduleDescription, art::Source< T >::outputCallbacks_, art::Source< T >::presentProducts_, art::ModuleDescription::processConfiguration(), and art::ProductRegistryHelper::registerProducts().
Referenced by art::Source< T >::Source().
|
staticinherited |
Definition at line 9 of file InputSource.cc.
References art::errors::Configuration, art::InputSource::Runs, art::InputSource::RunsAndSubRuns, and art::InputSource::RunsSubRunsAndEvents.
Referenced by art::ProcessingLimits::ProcessingLimits().
|
inherited |
Definition at line 31 of file InputSource.cc.
References art::InputSource::moduleDescription_.
Referenced by art::EmptyEvent::readRun(), and art::EmptyEvent::readSubRun().
|
overrideprivatevirtual |
Implements art::InputSource.
Definition at line 523 of file Source.h.
References art::Source< T >::cachedSRP_, art::Source< T >::checkForNextFile_(), art::Source< T >::currentFileName_, art::errors::DataCorruption, art::Source< T >::fh_, art::input::IsEvent, art::input::IsFile, art::input::IsInvalid, art::input::IsRun, art::input::IsStop, art::input::IsSubRun, art::Source< T >::newE_, art::Source< T >::pendingEvent_, art::Source< T >::pendingSubRun_, art::Source< T >::readNext_(), art::Source< T >::readNextAndRefuseEvent_(), art::Source< T >::readNextAndRequireRun_(), art::Source< T >::remainingEvents_, art::Source< T >::remainingSubRuns_, and art::Source< T >::state_.
|
delete |
|
delete |
|
inherited |
Definition at line 37 of file InputSource.cc.
References art::InputSource::moduleDescription_, and art::ModuleDescription::processConfiguration().
Referenced by art::EmptyEvent::readEvent(), art::EmptyEvent::readRun(), and art::EmptyEvent::readSubRun().
|
overrideprivatevirtual |
Implements art::InputSource.
Definition at line 693 of file Source.h.
References art::Source< T >::haveEventLimit_, art::Source< T >::newE_, and art::Source< T >::remainingEvents_.
|
overrideprivatevirtual |
Implements art::InputSource.
Definition at line 637 of file Source.h.
References art::Source< T >::currentFileName_, art::Source< T >::detail_, and art::errors::LogicError.
|
private |
Definition at line 455 of file Source.h.
References art::Source< T >::cachedRP_, art::Source< T >::cachedSRP_, art::Source< T >::detail_, art::input::IsEvent, art::input::IsRun, art::input::IsSubRun, art::Source< T >::newE_, art::Source< T >::newRP_, art::Source< T >::newSRP_, art::Source< T >::pendingEvent_, art::Source< T >::pendingSubRun_, art::Source< T >::state_, art::Source< T >::subRunIsNew_, and art::Source< T >::throwIfInsane_().
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readNextAndRefuseEvent_(), and art::Source< T >::readNextAndRequireRun_().
|
private |
Definition at line 608 of file Source.h.
References art::Source< T >::checkForNextFile_(), art::Source< T >::currentFileName_, art::errors::DataCorruption, art::input::IsEvent, art::Source< T >::readNext_(), and art::Source< T >::state_.
Referenced by art::Source< T >::nextItemType().
|
private |
Definition at line 588 of file Source.h.
References art::Source< T >::cachedRP_, art::Source< T >::checkForNextFile_(), art::Source< T >::currentFileName_, art::errors::DataCorruption, art::input::IsRun, art::input::IsSubRun, art::Source< T >::readNext_(), and art::Source< T >::state_.
Referenced by art::Source< T >::nextItemType().
|
overrideprivatevirtual |
Implements art::InputSource.
Definition at line 661 of file Source.h.
References art::Source< T >::cachedRP_, art::errors::LogicError, and art::Source< T >::newRP_.
|
overrideprivatevirtual |
Implements art::InputSource.
Definition at line 674 of file Source.h.
References art::Source< T >::cachedSRP_, art::Source< T >::haveSRLimit_, art::errors::LogicError, art::Source< T >::newSRP_, art::Source< T >::remainingSubRuns_, and art::Source< T >::subRunIsNew_.
|
overrideprivatevirtual |
Implements art::InputSource.
Definition at line 623 of file Source.h.
References art::Source< T >::cachedRP_.
|
virtualinherited |
Reimplemented in art::EmptyEvent.
Definition at line 43 of file InputSource.cc.
References art::errors::Configuration.
|
overrideprivatevirtual |
Implements art::InputSource.
Definition at line 630 of file Source.h.
References art::Source< T >::cachedSRP_.
|
staticprivate |
Definition at line 346 of file Source.h.
References art::errors::DataCorruption.
Referenced by art::Source< T >::throwIfInsane_().
|
private |
Definition at line 353 of file Source.h.
References art::Source< T >::cachedRP_, art::Source< T >::cachedSRP_, art::EventPrincipal::eventID(), art::RunID::isValid(), art::SubRunID::isValid(), art::EventID::isValid(), art::errors::LogicError, art::SubRunID::runID(), art::RunPrincipal::runID(), art::EventID::subRunID(), art::SubRunPrincipal::subRunID(), and art::Source< T >::throwDataCorruption_().
Referenced by art::Source< T >::readNext_().
|
private |
Definition at line 284 of file Source.h.
Referenced by art::Source< T >::closeFile(), art::Source< T >::readNext_(), art::Source< T >::readNextAndRequireRun_(), art::Source< T >::readRun(), art::Source< T >::runRangeSetHandler(), and art::Source< T >::throwIfInsane_().
|
private |
Definition at line 285 of file Source.h.
Referenced by art::Source< T >::closeFile(), art::Source< T >::nextItemType(), art::Source< T >::readNext_(), art::Source< T >::readSubRun(), art::Source< T >::subRunRangeSetHandler(), and art::Source< T >::throwIfInsane_().
|
private |
Definition at line 276 of file Source.h.
Referenced by art::Source< T >::checkForNextFile_(), art::Source< T >::nextItemType(), art::Source< T >::readFile(), art::Source< T >::readNextAndRefuseEvent_(), and art::Source< T >::readNextAndRequireRun_().
|
private |
Definition at line 273 of file Source.h.
Referenced by art::Source< T >::checkForNextFile_(), art::Source< T >::closeFile(), art::Source< T >::readFile(), art::Source< T >::readNext_(), and art::Source< T >::Source().
|
private |
Definition at line 275 of file Source.h.
Referenced by art::Source< T >::checkForNextFile_(), art::Source< T >::nextItemType(), and art::Source< T >::Source().
|
private |
Definition at line 267 of file Source.h.
Referenced by art::Source< T >::finishProductRegistration_(), and art::Source< T >::Source().
|
private |
Definition at line 293 of file Source.h.
Referenced by art::Source< T >::readEvent(), and art::Source< T >::Source().
|
private |
Definition at line 291 of file Source.h.
Referenced by art::Source< T >::readSubRun(), and art::Source< T >::Source().
|
private |
Definition at line 280 of file Source.h.
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readEvent(), and art::Source< T >::readNext_().
|
private |
Definition at line 278 of file Source.h.
Referenced by art::Source< T >::readNext_(), and art::Source< T >::readRun().
|
private |
Definition at line 279 of file Source.h.
Referenced by art::Source< T >::readNext_(), and art::Source< T >::readSubRun().
|
private |
Definition at line 268 of file Source.h.
Referenced by art::Source< T >::finishProductRegistration_(), and art::Source< T >::Source().
|
private |
Definition at line 288 of file Source.h.
Referenced by art::Source< T >::nextItemType(), and art::Source< T >::readNext_().
|
private |
Definition at line 287 of file Source.h.
Referenced by art::Source< T >::nextItemType(), and art::Source< T >::readNext_().
|
private |
Definition at line 269 of file Source.h.
Referenced by art::Source< T >::finishProductRegistration_().
|
private |
Definition at line 292 of file Source.h.
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readEvent(), and art::Source< T >::Source().
|
private |
Definition at line 290 of file Source.h.
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readSubRun(), and art::Source< T >::Source().
|
private |
Definition at line 272 of file Source.h.
Referenced by art::Source< T >::Source().
|
private |
Definition at line 274 of file Source.h.
Referenced by art::Source< T >::checkForNextFile_(), art::Source< T >::nextItemType(), art::Source< T >::readNext_(), art::Source< T >::readNextAndRefuseEvent_(), and art::Source< T >::readNextAndRequireRun_().
|
private |
Definition at line 289 of file Source.h.
Referenced by art::Source< T >::readNext_(), and art::Source< T >::readSubRun().