Public Member Functions | Private Attributes | List of all members
art::SubRun Class Referencefinal

#include <SubRun.h>

Inheritance diagram for art::SubRun:
art::DataViewImpl

Public Member Functions

 ~SubRun ()
 
 SubRun (SubRunPrincipal const &srp, ModuleContext const &mc, RangeSet const &rs=RangeSet::invalid())
 
 SubRun (SubRun const &)=delete
 
 SubRun (SubRun &&)=delete
 
SubRunoperator= (SubRun const &)=delete
 
SubRunoperator= (SubRun &&)=delete
 
SubRunID id () const
 
Run const & getRun () const
 

Private Attributes

std::unique_ptr< Run const > const run_
 

Additional Inherited Members

- Private Member Functions inherited from art::DataViewImpl
 ~DataViewImpl ()
 
 DataViewImpl (BranchType bt, Principal const &p, ModuleContext const &mc, bool recordParents, RangeSet const &rs=RangeSet::invalid())
 
 DataViewImpl (DataViewImpl const &)=delete
 
 DataViewImpl (DataViewImpl &&)=delete
 
DataViewImploperator= (DataViewImpl const &)=delete
 
DataViewImploperator= (DataViewImpl &)=delete
 
RunID runID () const
 
SubRunID subRunID () const
 
EventID eventID () const
 
RunNumber_t run () const
 
SubRunNumber_t subRun () const
 
EventNumber_t event () const
 
Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
Timestamp time () const
 
bool isRealData () const
 
EventAuxiliary::ExperimentType experimentType () const
 
History const & history () const
 
ProcessHistoryID const & processHistoryID () const
 
ProcessHistory const & processHistory () const
 
template<typename PROD >
bool removeCachedProduct (Handle< PROD > &) const
 
EDProductGetter const * productGetter (ProductID const pid) const
 
bool getProcessParameterSet (std::string const &process, fhicl::ParameterSet &) const
 
template<typename PROD >
PROD const & getProduct (InputTag const &tag) const
 
template<typename PROD >
PROD const & getProduct (ProductToken< PROD > const &token) const
 
template<typename PROD >
Handle< PROD > getHandle (SelectorBase const &) const
 
template<typename PROD >
Handle< PROD > getHandle (ProductID const pid) const
 
template<typename PROD >
Handle< PROD > getHandle (InputTag const &tag) const
 
template<typename PROD >
Handle< PROD > getHandle (ProductToken< PROD > const &token) const
 
template<typename PROD >
ValidHandle< PROD > getValidHandle (InputTag const &tag) const
 
template<typename PROD >
ValidHandle< PROD > getValidHandle (ProductToken< PROD > const &token) const
 
template<typename PROD >
std::vector< InputTaggetInputTags (SelectorBase const &selector=MatchAllSelector{}) const
 
template<typename PROD >
std::vector< ProductToken< PROD > > getProductTokens (SelectorBase const &selector=MatchAllSelector{}) const
 
template<typename PROD >
std::vector< Handle< PROD > > getMany (SelectorBase const &selector=MatchAllSelector{}) const
 
template<typename PROD >
bool get (SelectorBase const &, Handle< PROD > &result) const
 
template<typename PROD >
bool get (ProductID const pid, Handle< PROD > &result) const
 
template<typename PROD >
bool getByLabel (std::string const &label, std::string const &instance, Handle< PROD > &result) const
 
template<typename PROD >
bool getByLabel (std::string const &label, std::string const &instance, std::string const &process, Handle< PROD > &result) const
 
template<typename PROD >
bool getByLabel (InputTag const &tag, Handle< PROD > &result) const
 
template<typename PROD >
bool getByToken (ProductToken< PROD > const &token, Handle< PROD > &result) const
 
template<typename PROD >
PROD const * getPointerByLabel (InputTag const &tag) const
 
template<typename PROD >
void getMany (SelectorBase const &, std::vector< Handle< PROD >> &results) const
 
template<typename PROD >
void getManyByType (std::vector< Handle< PROD >> &results) const
 
template<typename ELEMENT >
std::size_t getView (std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName, std::vector< ELEMENT const * > &result) const
 
template<typename ELEMENT >
std::size_t getView (std::string const &moduleLabel, std::string const &productInstanceName, std::vector< ELEMENT const * > &result) const
 
template<typename ELEMENT >
std::size_t getView (InputTag const &, std::vector< ELEMENT const * > &result) const
 
template<typename ELEMENT >
std::size_t getView (ViewToken< ELEMENT > const &, std::vector< ELEMENT const * > &result) const
 
template<typename ELEMENT >
bool getView (std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName, View< ELEMENT > &result) const
 
template<typename ELEMENT >
bool getView (std::string const &moduleLabel, std::string const &productInstanceName, View< ELEMENT > &result) const
 
template<typename ELEMENT >
bool getView (InputTag const &, View< ELEMENT > &result) const
 
template<typename ELEMENT >
bool getView (ViewToken< ELEMENT > const &, View< ELEMENT > &result) const
 
template<typename T >
ProductID getProductID (std::string const &instance_name="") const
 
cet::exempt_ptr< BranchDescription const > getProductDescription (ProductID) const
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, std::string const &instance={})
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, std::string const &instance, RangeSet const &rs)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > semantic)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, FragmentSemantic< Level::Run > semantic)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, RangedFragmentSemantic< Level::Run > semantic)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, std::string const &instance, FullSemantic< Level::Run >)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, std::string const &instance, FragmentSemantic< Level::Run >)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, std::string const &instance, RangedFragmentSemantic< Level::Run > semantic)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, FullSemantic< Level::SubRun > semantic)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, FragmentSemantic< Level::SubRun > semantic)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, RangedFragmentSemantic< Level::SubRun > semantic)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, std::string const &instance, FullSemantic< Level::SubRun >)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, std::string const &instance, FragmentSemantic< Level::SubRun >)
 
template<typename PROD >
ProductID put (std::unique_ptr< PROD > &&edp, std::string const &instance, RangedFragmentSemantic< Level::SubRun > semantic)
 
void movePutProductsToPrincipal (Principal &principal)
 
void movePutProductsToPrincipal (Principal &principal, bool const checkProducts, std::map< TypeLabel, BranchDescription > const *expectedProducts)
 

Detailed Description

Definition at line 21 of file SubRun.h.

Constructor & Destructor Documentation

art::SubRun::~SubRun ( )
default
art::SubRun::SubRun ( SubRunPrincipal const &  srp,
ModuleContext const &  mc,
RangeSet const &  rs = RangeSet::invalid() 
)
explicit

Definition at line 12 of file SubRun.cc.

15  : DataViewImpl{InSubRun, srp, mc, false, rs}
16  , run_{srp.runPrincipalExemptPtr() ? new Run{srp.runPrincipal(), mc} :
17  nullptr}
18  {}
std::unique_ptr< Run const > const run_
Definition: SubRun.h:67
DataViewImpl(BranchType bt, Principal const &p, ModuleContext const &mc, bool recordParents, RangeSet const &rs=RangeSet::invalid())
Definition: DataViewImpl.cc:36
art::SubRun::SubRun ( SubRun const &  )
delete
art::SubRun::SubRun ( SubRun &&  )
delete

Member Function Documentation

Run const & art::SubRun::getRun ( ) const

Definition at line 27 of file SubRun.cc.

28  {
29  if (!run_) {
31  << "Tried to obtain a NULL run.\n";
32  }
33  return *run_;
34  }
std::unique_ptr< Run const > const run_
Definition: SubRun.h:67
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66
SubRunID art::SubRun::id ( ) const

Definition at line 21 of file SubRun.cc.

22  {
23  return DataViewImpl::subRunID();
24  }
SubRunID subRunID() const
Definition: DataViewImpl.cc:57
SubRun& art::SubRun::operator= ( SubRun const &  )
delete
SubRun& art::SubRun::operator= ( SubRun &&  )
delete

Member Data Documentation

std::unique_ptr<Run const> const art::SubRun::run_
private

Definition at line 67 of file SubRun.h.


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