LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "Source.h"
Public Types | |
using | SourceDetail = T |
enum | ProcessingMode { Runs, RunsAndSubRuns, RunsSubRunsAndEvents } |
Public Member Functions | |
Source (Source< T > const &)=delete | |
Source< T > & | operator= (Source< T > const &)=delete |
Source (fhicl::ParameterSet const &p, InputSourceDescription &d) | |
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< art::RangeSetHandler > | runRangeSetHandler () override |
std::unique_ptr< art::RangeSetHandler > | subRunRangeSetHandler () override |
auto const & | moduleDescription () const |
auto const & | processConfiguration () const |
virtual std::unique_ptr< EventPrincipal > | readEvent (EventID const &id) |
virtual void | skipEvents (int n) |
virtual void | rewind () |
virtual void | doBeginJob () |
virtual void | doEndJob () |
Private Member Functions | |
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 | |
cet::exempt_ptr< ActivityRegistry > | act_ |
ProductRegistryHelper | h_ {} |
ProductTables | presentProducts_ {ProductTables::invalid()} |
SourceHelper | sourceHelper_ |
SourceDetail | detail_ |
input::ItemType | state_ {input::IsInvalid} |
detail::FileNamesHandler< Source_wantFileServices< T >::value > | fh_ |
std::string | currentFileName_ {} |
std::unique_ptr< RunPrincipal > | newRP_ {nullptr} |
std::unique_ptr< SubRunPrincipal > | newSRP_ {nullptr} |
std::unique_ptr< EventPrincipal > | newE_ {nullptr} |
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 >::SourceDetail = T |
|
inherited |
Enumerator | |
---|---|
Runs | |
RunsAndSubRuns | |
RunsSubRunsAndEvents |
Definition at line 52 of file InputSource.h.
|
delete |
|
explicit |
Definition at line 246 of file Source.h.
References art::Source< T >::act_, 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::errors::LogicError, art::InputSourceDescription::moduleDescription, art::Source< T >::remainingEvents_, art::Source< T >::remainingSubRuns_, and art::Source< T >::sourceHelper_.
|
private |
Definition at line 444 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 fhicl::detail::atom::value().
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readNextAndRefuseEvent_(), and art::Source< T >::readNextAndRequireRun_().
|
overridevirtual |
Implements art::InputSource.
Definition at line 592 of file Source.h.
References art::Source< T >::cachedRP_, art::Source< T >::cachedSRP_, and art::Source< T >::detail_.
|
virtualinherited |
Reimplemented in art::DecrepitRelicInputSourceImplementation.
Definition at line 31 of file InputSource.cc.
|
virtualinherited |
Reimplemented in art::DecrepitRelicInputSourceImplementation.
Definition at line 35 of file InputSource.cc.
|
private |
Definition at line 645 of file Source.h.
References art::Source< T >::h_, art::ModuleDescription::id(), art::ModuleDescription::invalidID(), art::InputSourceDescription::moduleDescription, art::Source< T >::presentProducts_, art::ModuleDescription::processConfiguration(), art::InputSourceDescription::productRegistry, art::ProductRegistryHelper::registerProducts(), art::SourceHelper::setPresentProducts(), and art::Source< T >::sourceHelper_.
Referenced by art::Source< T >::Source().
|
inlineinherited |
Definition at line 59 of file InputSource.h.
Referenced by art::EmptyEvent::readRun_(), and art::EmptyEvent::readSubRun_().
|
overridevirtual |
Implements art::InputSource.
Definition at line 465 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 |
|
inlineinherited |
Definition at line 64 of file InputSource.h.
References n.
Referenced by art::EmptyEvent::readRun_(), art::EmptyEvent::readSubRun_(), art::EmptyEvent::reallyReadEvent(), and art::RootInput::RootInput().
|
virtualinherited |
Reimplemented in art::DecrepitRelicInputSourceImplementation.
Definition at line 4 of file InputSource.cc.
References art::errors::Configuration.
|
overridevirtual |
Implements art::InputSource.
Definition at line 635 of file Source.h.
References art::Source< T >::haveEventLimit_, art::Source< T >::newE_, and art::Source< T >::remainingEvents_.
|
overridevirtual |
Implements art::InputSource.
Definition at line 579 of file Source.h.
References art::Source< T >::currentFileName_, art::Source< T >::detail_, and art::errors::LogicError.
|
private |
Definition at line 396 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 550 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 530 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().
|
overridevirtual |
Implements art::InputSource.
Definition at line 603 of file Source.h.
References art::Source< T >::cachedRP_, art::errors::LogicError, and art::Source< T >::newRP_.
|
overridevirtual |
Implements art::InputSource.
Definition at line 616 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_.
|
virtualinherited |
Reimplemented in art::DecrepitRelicInputSourceImplementation.
Definition at line 22 of file InputSource.cc.
References art::errors::Configuration.
|
overridevirtual |
Implements art::InputSource.
Definition at line 565 of file Source.h.
References art::Source< T >::cachedRP_.
|
virtualinherited |
Reimplemented in art::DecrepitRelicInputSourceImplementation.
Definition at line 13 of file InputSource.cc.
References art::errors::Configuration.
|
overridevirtual |
Implements art::InputSource.
Definition at line 572 of file Source.h.
References art::Source< T >::cachedSRP_.
|
staticprivate |
Definition at line 276 of file Source.h.
References art::errors::DataCorruption.
Referenced by art::Source< T >::throwIfInsane_().
|
private |
Definition at line 283 of file Source.h.
References art::Source< T >::cachedRP_, art::Source< T >::cachedSRP_, art::RunPrincipal::id(), art::SubRunPrincipal::id(), art::EventPrincipal::id(), art::SubRunID::isValid(), art::RunID::isValid(), art::EventID::isValid(), art::errors::LogicError, art::SubRunID::runID(), art::SubRunPrincipal::runPrincipalExemptPtr(), art::EventID::subRunID(), art::EventPrincipal::subRunPrincipalExemptPtr(), and art::Source< T >::throwDataCorruption_().
Referenced by art::Source< T >::readNext_().
|
private |
Definition at line 184 of file Source.h.
Referenced by art::Source< T >::Source().
|
private |
Definition at line 201 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 202 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 193 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 189 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 192 of file Source.h.
Referenced by art::Source< T >::checkForNextFile_(), art::Source< T >::nextItemType(), and art::Source< T >::Source().
|
private |
Definition at line 186 of file Source.h.
Referenced by art::Source< T >::finishProductRegistration_(), and art::Source< T >::Source().
|
private |
Definition at line 212 of file Source.h.
Referenced by art::Source< T >::readEvent(), and art::Source< T >::Source().
|
private |
Definition at line 210 of file Source.h.
Referenced by art::Source< T >::readSubRun(), and art::Source< T >::Source().
|
private |
Definition at line 197 of file Source.h.
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readEvent(), and art::Source< T >::readNext_().
|
private |
Definition at line 195 of file Source.h.
Referenced by art::Source< T >::readNext_(), and art::Source< T >::readRun().
|
private |
Definition at line 196 of file Source.h.
Referenced by art::Source< T >::readNext_(), and art::Source< T >::readSubRun().
|
private |
Definition at line 205 of file Source.h.
Referenced by art::Source< T >::nextItemType(), and art::Source< T >::readNext_().
|
private |
Definition at line 204 of file Source.h.
Referenced by art::Source< T >::nextItemType(), and art::Source< T >::readNext_().
|
private |
Definition at line 187 of file Source.h.
Referenced by art::Source< T >::finishProductRegistration_().
|
private |
Definition at line 211 of file Source.h.
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readEvent(), and art::Source< T >::Source().
|
private |
Definition at line 209 of file Source.h.
Referenced by art::Source< T >::nextItemType(), art::Source< T >::readSubRun(), and art::Source< T >::Source().
|
private |
Definition at line 188 of file Source.h.
Referenced by art::Source< T >::finishProductRegistration_(), and art::Source< T >::Source().
|
private |
Definition at line 190 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 207 of file Source.h.
Referenced by art::Source< T >::readNext_(), and art::Source< T >::readSubRun().