LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "EventPrincipal.h"
Public Types | |
using | Auxiliary = EventAuxiliary |
using | GroupCollection = std::map< ProductID, std::unique_ptr< Group >> |
using | const_iterator = GroupCollection::const_iterator |
using | ProcessNameConstIterator = ProcessHistory::const_iterator |
using | GroupQueryResultVec = std::vector< GroupQueryResult > |
using | size_type = GroupCollection::size_type |
using | ProcessName = std::string |
Public Member Functions | |
EventPrincipal (EventAuxiliary const &aux, ProcessConfiguration const &pc, cet::exempt_ptr< ProductTable const > presentProducts, std::shared_ptr< History > history=std::make_shared< History >(), std::unique_ptr< BranchMapper > &&mapper=std::make_unique< BranchMapper >(), std::unique_ptr< DelayedReader > &&rtrv=std::make_unique< NoDelayedReader >(), bool lastInSubRun=false) | |
SubRunPrincipal const & | subRunPrincipal () const |
cet::exempt_ptr< SubRunPrincipal const > | subRunPrincipalExemptPtr () const |
void | setSubRunPrincipal (cet::exempt_ptr< SubRunPrincipal const > srp) |
EventID const & | id () const |
Timestamp const & | time () const |
bool | isReal () const |
EventAuxiliary::ExperimentType | ExperimentType () const |
EventAuxiliary const & | aux () const |
SubRunNumber_t | subRun () const |
RunNumber_t | run () const |
EventNumber_t | event () const |
EventSelectionIDVector const & | eventSelectionIDs () const |
History const & | history () const |
void | put (std::unique_ptr< EDProduct > &&edp, BranchDescription const &pd, std::unique_ptr< ProductProvenance const > &&productProvenance) |
void | fillGroup (BranchDescription const &) override |
BranchType | branchType () const override |
bool | isLastInSubRun () const |
RangeSet | seenRanges () const override |
EDProductGetter const * | productGetter (ProductID const pid) const |
OutputHandle | getForOutput (ProductID const, bool resolveProd) const |
GroupQueryResult | getBySelector (WrappedTypeID const &wrapped, SelectorBase const &) const |
GroupQueryResult | getByProductID (ProductID const pid) const |
GroupQueryResult | getByLabel (WrappedTypeID const &wrapped, std::string const &label, std::string const &productInstanceName, std::string const &processName) const |
GroupQueryResultVec | getMany (WrappedTypeID const &wrapped, SelectorBase const &) const |
GroupQueryResultVec | getMatchingSequence (SelectorBase const &) const |
void | removeCachedProduct (ProductID const pid) const |
void | addSecondaryPrincipal (std::unique_ptr< Principal > &&val) |
void | setProducedProducts (ProductTable const &producedProducts) |
void | readImmediate () const |
void | readProvenanceImmediate () const |
ProcessHistory const & | processHistory () const |
ProcessConfiguration const & | processConfiguration () const |
BranchMapper const & | branchMapper () const |
size_t | size () const |
const_iterator | begin () const |
const_iterator | cbegin () const |
const_iterator | end () const |
const_iterator | cend () const |
void | addToProcessHistory () |
EDProductGetter const * | getEDProductGetter (ProductID const pid) const |
Static Public Attributes | |
static constexpr BranchType | branch_type = Auxiliary::branch_type |
Protected Member Functions | |
BranchMapper & | branchMapper () |
void | fillGroup (std::unique_ptr< Group > &&group) |
DelayedReader & | productReader () |
int | tryNextSecondaryFile () const |
cet::exempt_ptr< Group const > | getGroupForPtr (ProductID const pid) const |
cet::exempt_ptr< Group const > | getGroup (ProductID const pid) const |
cet::exempt_ptr< Group const > | getResolvedGroup (ProductID const pid, bool resolveProd) const |
Private Member Functions | |
void | throwIfExistingGroup (BranchDescription const &pd) const |
ProcessHistoryID const & | processHistoryID () const override |
void | setProcessHistoryID (ProcessHistoryID const &phid) override |
Private Attributes | |
EventAuxiliary | aux_ |
cet::exempt_ptr< SubRunPrincipal const > | subRunPrincipal_ {nullptr} |
std::shared_ptr< History > | history_ |
bool | lastInSubRun_ {false} |
Definition at line 30 of file EventPrincipal.h.
Definition at line 32 of file EventPrincipal.h.
|
inherited |
Definition at line 52 of file Principal.h.
|
inherited |
Definition at line 51 of file Principal.h.
|
inherited |
Definition at line 54 of file Principal.h.
|
inherited |
Definition at line 56 of file Principal.h.
|
inherited |
Definition at line 53 of file Principal.h.
|
inherited |
Definition at line 55 of file Principal.h.
art::EventPrincipal::EventPrincipal | ( | EventAuxiliary const & | aux, |
ProcessConfiguration const & | pc, | ||
cet::exempt_ptr< ProductTable const > | presentProducts, | ||
std::shared_ptr< History > | history = std::make_shared<History>() , |
||
std::unique_ptr< BranchMapper > && | mapper = std::make_unique<BranchMapper>() , |
||
std::unique_ptr< DelayedReader > && | rtrv = std::make_unique<NoDelayedReader>() , |
||
bool | lastInSubRun = false |
||
) |
Definition at line 20 of file EventPrincipal.cc.
References art::Principal::addToProcessHistory(), aux(), aux_, history(), history_, art::InEvent, art::ProductMetaData::instance(), lastInSubRun_, art::Principal::productReader(), and art::DelayedReader::setGroupFinder().
|
inlineinherited |
Definition at line 100 of file Principal.h.
References art::Principal::secondaryPrincipals_.
|
inherited |
Definition at line 80 of file Principal.cc.
References art::errors::Configuration, art::thread_safe_registry_via_id< K, M >::emplace(), art::Principal::processConfiguration_, art::Principal::processHistory_, art::Principal::processHistoryModified_, art::ProcessConfiguration::processName(), and art::Principal::setProcessHistoryID().
Referenced by art::Principal::cend(), EventPrincipal(), art::RunPrincipal::RunPrincipal(), art::SubRunPrincipal::SubRunPrincipal(), art::RootOutput::write(), art::RootOutput::writeRun(), and art::RootOutput::writeSubRun().
|
inline |
Definition at line 81 of file EventPrincipal.h.
References aux_.
Referenced by EventPrincipal(), ExperimentType(), id(), isReal(), time(), and art::RootOutputFile::writeOne().
|
inlineinherited |
|
inlineinherited |
Definition at line 144 of file Principal.h.
References art::Principal::branchMapperPtr_.
Referenced by art::Principal::fillGroup(), art::detail::KeptProvenance::insertAncestors(), art::ResultsPrincipal::put(), art::RunPrincipal::put(), art::SubRunPrincipal::put(), and put().
|
inlineprotectedinherited |
Definition at line 192 of file Principal.h.
References art::Principal::branchMapperPtr_.
|
inlineoverridevirtual |
Implements art::Principal.
Definition at line 118 of file EventPrincipal.h.
References branch_type.
|
inlineinherited |
|
inlineinherited |
Definition at line 174 of file Principal.h.
References art::Principal::addToProcessHistory(), art::Principal::branchType(), art::Principal::fillGroup(), art::Principal::groups_, and art::Principal::seenRanges().
|
inlineinherited |
|
inline |
Definition at line 96 of file EventPrincipal.h.
References art::EventID::event(), eventSelectionIDs(), and id().
EventSelectionIDVector const & art::EventPrincipal::eventSelectionIDs | ( | ) | const |
|
inline |
Definition at line 75 of file EventPrincipal.h.
References aux(), and art::EventAuxiliary::experimentType().
|
overridevirtual |
Implements art::Principal.
Definition at line 68 of file EventPrincipal.cc.
References art::Principal::fillGroup(), art::RangeSet::invalid(), art::gfactory::make_group(), art::BranchDescription::productID(), and throwIfExistingGroup().
Referenced by history().
|
inlineprotectedinherited |
Definition at line 205 of file Principal.h.
References art::Principal::branchMapper(), art::Principal::deferredGetter_(), art::Principal::findGroups(), art::Principal::findGroupsForProcess(), art::Principal::findGroupsForProduct(), art::Principal::findGroupsFromInputFile(), art::BranchDescription::friendlyClassName(), art::Principal::getGroup(), art::Principal::getGroupForPtr(), art::Principal::getResolvedGroup(), art::Principal::groups_, art::Principal::matchingSequenceFromInputFile(), art::BranchDescription::moduleLabel(), art::Principal::presentFromSource(), art::Principal::processHistoryID(), art::BranchDescription::processName(), art::BranchDescription::producedClassName(), art::BranchDescription::productID(), art::Principal::setProcessHistoryID(), art::Principal::store_, and art::Principal::tryNextSecondaryFile().
|
inherited |
Definition at line 143 of file Principal.cc.
References art::Principal::findGroupsForProduct(), art::WrappedTypeID::product_type, and art::errors::ProductNotFound.
Referenced by art::DataViewImpl::getByLabel_().
|
inherited |
Definition at line 131 of file Principal.cc.
References art::Principal::getGroupForPtr(), and art::errors::ProductNotFound.
Referenced by art::DataViewImpl::getByProductID_(), art::Principal::getEDProductGetterImpl(), and art::Principal::productGetter().
|
inherited |
Definition at line 110 of file Principal.cc.
References art::Principal::findGroupsForProduct(), art::WrappedTypeID::product_type, and art::errors::ProductNotFound.
Referenced by art::DataViewImpl::get_().
|
inlineinherited |
Definition at line 25 of file EDProductGetterFinder.h.
References art::EDProductGetterFinder::getEDProductGetterImpl().
|
inherited |
Definition at line 424 of file Principal.cc.
References art::Principal::getResolvedGroup(), art::OutputHandle::invalid(), and art::OutputHandle::rangeOfValidity().
Referenced by art::RootOutputFile::fillBranches(), art::detail::KeptProvenance::insertAncestors(), and art::ProvenanceCheckerOutput::write().
Definition at line 525 of file Principal.cc.
References art::Principal::groups_.
Referenced by art::Principal::fillGroup(), art::Principal::findGroupsForProcess(), art::Principal::getGroupForPtr(), history(), art::Principal::removeCachedProduct(), and throwIfExistingGroup().
|
protectedinherited |
Definition at line 481 of file Principal.cc.
References art::Principal::getGroup(), art::Principal::presentFromSource(), art::Principal::producedProducts_, art::Principal::secondaryPrincipals_, and art::Principal::tryNextSecondaryFile().
Referenced by art::Principal::fillGroup(), art::Principal::getByProductID(), and art::Principal::getResolvedGroup().
|
inherited |
Definition at line 178 of file Principal.cc.
References art::Principal::findGroupsForProduct().
Referenced by art::DataViewImpl::getMany_().
|
inherited |
Definition at line 195 of file Principal.cc.
References art::Principal::findGroups(), art::Principal::matchingSequenceFromInputFile(), art::Principal::producedProducts_, art::Principal::secondaryPrincipals_, and art::Principal::tryNextSecondaryFile().
Referenced by art::DataViewImpl::getMatchingSequenceByLabel_().
|
protectedinherited |
Definition at line 452 of file Principal.cc.
References art::Principal::getGroupForPtr().
Referenced by art::Principal::fillGroup(), and art::Principal::getForOutput().
|
inline |
Definition at line 104 of file EventPrincipal.h.
References fillGroup(), art::Principal::getGroup(), history_, and put().
Referenced by EventPrincipal(), art::Event::history(), art::Event::processHistoryID(), processHistoryID(), and setProcessHistoryID().
|
inline |
Definition at line 59 of file EventPrincipal.h.
References aux(), and art::EventAuxiliary::id().
Referenced by art::OutputModule::doWriteEvent(), event(), art::RootInput::readEvent_(), run(), subRun(), art::Source< T >::throwIfInsane_(), art::RootOutput::write(), and art::EndPathExecutor::writeEvent().
|
inline |
Definition at line 124 of file EventPrincipal.h.
References lastInSubRun_.
Referenced by art::EndPathExecutor::writeEvent().
|
inline |
Definition at line 69 of file EventPrincipal.h.
References aux(), and art::EventAuxiliary::isRealData().
|
inlineinherited |
Definition at line 138 of file Principal.h.
References art::Principal::processConfiguration_.
Referenced by art::get_ProductDescription().
|
inlineinherited |
Definition at line 132 of file Principal.h.
References art::Principal::processHistory_.
Referenced by art::Principal::findGroups(), and art::DataViewImpl::processHistory().
|
inlineoverrideprivatevirtual |
Implements art::Principal.
Definition at line 138 of file EventPrincipal.h.
References history(), and art::History::processHistoryID().
|
inherited |
Definition at line 532 of file Principal.cc.
References art::Principal::deferredGetter_(), art::Principal::getByProductID(), and art::GroupQueryResult::result().
Referenced by art::SourceHelper::makePtr(), art::Results::productGetter(), art::Run::productGetter(), art::SubRun::productGetter(), and art::Event::productGetter().
|
inlineprotectedinherited |
Definition at line 198 of file Principal.h.
References art::Principal::store_.
Referenced by EventPrincipal(), art::ResultsPrincipal::ResultsPrincipal(), art::RunPrincipal::RunPrincipal(), and art::SubRunPrincipal::SubRunPrincipal().
void art::EventPrincipal::put | ( | std::unique_ptr< EDProduct > && | edp, |
BranchDescription const & | pd, | ||
std::unique_ptr< ProductProvenance const > && | productProvenance | ||
) |
Definition at line 76 of file EventPrincipal.cc.
References art::Principal::branchMapper(), art::Principal::fillGroup(), art::BranchMapper::insert(), art::RangeSet::invalid(), art::gfactory::make_group(), art::BranchDescription::productID(), and throwIfExistingGroup().
Referenced by art::Event::commit(), and history().
|
inlineinherited |
Definition at line 112 of file Principal.h.
References art::Principal::groups_, and art::Principal::readProvenanceImmediate().
|
inlineinherited |
Definition at line 123 of file Principal.h.
References art::Principal::branchMapperPtr_, and art::Principal::groups_.
Referenced by art::Principal::readImmediate().
|
inherited |
Definition at line 259 of file Principal.cc.
References art::Principal::getGroup(), art::errors::ProductNotFound, and art::Principal::secondaryPrincipals_.
Referenced by art::DataViewImpl::removeCachedProduct_().
|
inline |
|
inlineoverridevirtual |
Implements art::Principal.
Definition at line 129 of file EventPrincipal.h.
References art::RangeSet::invalid(), and throwIfExistingGroup().
|
inlineoverrideprivatevirtual |
Implements art::Principal.
Definition at line 144 of file EventPrincipal.h.
References history(), and art::History::setProcessHistoryID().
|
inlineinherited |
Definition at line 106 of file Principal.h.
References art::Principal::producedProducts_.
|
inline |
Definition at line 53 of file EventPrincipal.h.
References subRunPrincipal_.
|
inlineinherited |
Definition at line 150 of file Principal.h.
References art::Principal::groups_.
Referenced by art::DataViewImpl::size().
|
inline |
SubRunPrincipal const & art::EventPrincipal::subRunPrincipal | ( | ) | const |
Definition at line 45 of file EventPrincipal.cc.
References art::errors::NullPointerError, and subRunPrincipal_.
|
inline |
Definition at line 48 of file EventPrincipal.h.
References subRunPrincipal_.
Referenced by art::Source< T >::throwIfInsane_().
|
private |
Definition at line 55 of file EventPrincipal.cc.
References art::BranchDescription::branchType(), art::BranchDescription::friendlyClassName(), art::Principal::getGroup(), art::BranchDescription::moduleLabel(), art::BranchDescription::processName(), art::BranchDescription::productID(), art::BranchDescription::productInstanceName(), and art::errors::ProductRegistrationFailure.
Referenced by fillGroup(), put(), and seenRanges().
|
inline |
|
protectedinherited |
Definition at line 184 of file Principal.cc.
References art::Principal::nextSecondaryFileIdx_, and art::Principal::store_.
Referenced by art::Principal::fillGroup(), art::Principal::findGroupsForProduct(), art::Principal::getGroupForPtr(), and art::Principal::getMatchingSequence().
|
private |
Definition at line 150 of file EventPrincipal.h.
Referenced by aux(), and EventPrincipal().
|
static |
Definition at line 33 of file EventPrincipal.h.
Referenced by branchType().
|
private |
Definition at line 153 of file EventPrincipal.h.
Referenced by EventPrincipal(), eventSelectionIDs(), and history().
|
private |
Definition at line 154 of file EventPrincipal.h.
Referenced by EventPrincipal(), and isLastInSubRun().
|
private |
Definition at line 152 of file EventPrincipal.h.
Referenced by setSubRunPrincipal(), subRunPrincipal(), and subRunPrincipalExemptPtr().