Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
art::SourceHelper Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/art/v2_13_00/source/art/Framework/IO/Sources/SourceHelper.h"

Public Member Functions

 SourceHelper (ModuleDescription const &md, bool const parentageEnabled, bool const rangesEnabled)
 
 SourceHelper (SourceHelper const &)=delete
 
 SourceHelper (SourceHelper &&)=delete
 
SourceHelperoperator= (SourceHelper const &)=delete
 
SourceHelperoperator= (SourceHelper &&)=delete
 
template<typename T >
Ptr< TmakePtr (TypeLabel const &t, Principal const &p, typename Ptr< T >::key_type key) const
 
RunPrincipalmakeRunPrincipal (RunAuxiliary const &runAux) const
 
RunPrincipalmakeRunPrincipal (RunID r, Timestamp const &startTime) const
 
RunPrincipalmakeRunPrincipal (RunNumber_t r, Timestamp const &startTime) const
 
SubRunPrincipalmakeSubRunPrincipal (SubRunAuxiliary const &subRunAux) const
 
SubRunPrincipalmakeSubRunPrincipal (SubRunID const &sr, Timestamp const &startTime) const
 
SubRunPrincipalmakeSubRunPrincipal (RunNumber_t r, SubRunNumber_t sr, Timestamp const &startTime) const
 
EventPrincipalmakeEventPrincipal (EventAuxiliary const &eventAux, std::shared_ptr< History > &&history) const
 
EventPrincipalmakeEventPrincipal (EventID const &e, Timestamp const &startTime, bool isRealData=true, EventAuxiliary::ExperimentType eType=EventAuxiliary::Data) const
 
EventPrincipalmakeEventPrincipal (RunNumber_t r, SubRunNumber_t sr, EventNumber_t e, Timestamp const &startTime, bool isRealData=true, EventAuxiliary::ExperimentType eType=EventAuxiliary::Data) const
 
template<typename T >
art::Ptr< TmakePtr (TypeLabel const &tl, Principal const &p, typename Ptr< T >::key_type key) const
 

Private Member Functions

void throwIfProductsNotRegistered_ () const
 
void setPresentProducts (cet::exempt_ptr< ProductTables const > presentProducts)
 

Private Attributes

cet::exempt_ptr< ProductTables const > presentProducts_ {nullptr}
 
ModuleDescription md_
 
bool const parentageEnabled_ {true}
 
bool const rangesEnabled_ {true}
 

Friends

template<typename T >
class Source
 

Detailed Description

Definition at line 37 of file SourceHelper.h.

Constructor & Destructor Documentation

art::SourceHelper::SourceHelper ( ModuleDescription const &  md,
bool const  parentageEnabled,
bool const  rangesEnabled 
)
explicit
art::SourceHelper::SourceHelper ( SourceHelper const &  )
delete
art::SourceHelper::SourceHelper ( SourceHelper &&  )
delete

Member Function Documentation

EventPrincipal* art::SourceHelper::makeEventPrincipal ( EventAuxiliary const &  eventAux,
std::shared_ptr< History > &&  history 
) const
EventPrincipal* art::SourceHelper::makeEventPrincipal ( EventID const &  e,
Timestamp const &  startTime,
bool  isRealData = true,
EventAuxiliary::ExperimentType  eType = EventAuxiliary::Data 
) const
EventPrincipal* art::SourceHelper::makeEventPrincipal ( RunNumber_t  r,
SubRunNumber_t  sr,
EventNumber_t  e,
Timestamp const &  startTime,
bool  isRealData = true,
EventAuxiliary::ExperimentType  eType = EventAuxiliary::Data 
) const
template<typename T >
Ptr<T> art::SourceHelper::makePtr ( TypeLabel const &  t,
Principal const &  p,
typename Ptr< T >::key_type  key 
) const
template<typename T >
art::Ptr<T> art::SourceHelper::makePtr ( TypeLabel const &  tl,
Principal const &  p,
typename Ptr< T >::key_type  key 
) const

Definition at line 106 of file SourceHelper.h.

References art::Principal::branchType(), findDuplicateFiles::key, md_, BlessedPlots::pid, art::Principal::productGetter(), and moon_position_table_new3::tl().

109 {
110  BranchDescription const pd{p.branchType(), tl, md_};
111  ProductID const pid{pd.productID()};
112  return Ptr<T>{pid, key, p.productGetter(pid)};
113 }
const char * p
Definition: xmltok.h:285
ModuleDescription md_
Definition: SourceHelper.h:99
RunPrincipal* art::SourceHelper::makeRunPrincipal ( RunAuxiliary const &  runAux) const
RunPrincipal* art::SourceHelper::makeRunPrincipal ( RunID  r,
Timestamp const &  startTime 
) const
RunPrincipal* art::SourceHelper::makeRunPrincipal ( RunNumber_t  r,
Timestamp const &  startTime 
) const
SubRunPrincipal* art::SourceHelper::makeSubRunPrincipal ( SubRunAuxiliary const &  subRunAux) const
SubRunPrincipal* art::SourceHelper::makeSubRunPrincipal ( SubRunID const &  sr,
Timestamp const &  startTime 
) const
SubRunPrincipal* art::SourceHelper::makeSubRunPrincipal ( RunNumber_t  r,
SubRunNumber_t  sr,
Timestamp const &  startTime 
) const
SourceHelper& art::SourceHelper::operator= ( SourceHelper const &  )
delete
SourceHelper& art::SourceHelper::operator= ( SourceHelper &&  )
delete
void art::SourceHelper::setPresentProducts ( cet::exempt_ptr< ProductTables const >  presentProducts)
private
void art::SourceHelper::throwIfProductsNotRegistered_ ( ) const
private

Friends And Related Function Documentation

template<typename T >
friend class Source
friend

Definition at line 95 of file SourceHelper.h.

Member Data Documentation

ModuleDescription art::SourceHelper::md_
private

Definition at line 99 of file SourceHelper.h.

Referenced by makePtr().

bool const art::SourceHelper::parentageEnabled_ {true}
private

Definition at line 100 of file SourceHelper.h.

cet::exempt_ptr<ProductTables const> art::SourceHelper::presentProducts_ {nullptr}
private

Definition at line 98 of file SourceHelper.h.

bool const art::SourceHelper::rangesEnabled_ {true}
private

Definition at line 101 of file SourceHelper.h.


The documentation for this class was generated from the following file: