Public Member Functions | Public Attributes | Static Public Attributes | List of all members
art::SubRunAuxiliary Class Reference

#include "/cvmfs/nova.opensciencegrid.org/externals/canvas/v3_06_01/source/canvas/Persistency/Provenance/SubRunAuxiliary.h"

Public Member Functions

 SubRunAuxiliary ()=default
 
 SubRunAuxiliary (SubRunID const &theId, Timestamp const &theTime, Timestamp const &theEndTime)
 
 SubRunAuxiliary (RunNumber_t const theRun, SubRunNumber_t const theSubRun, Timestamp const &theTime, Timestamp const &theEndTime)
 
void write (std::ostream &os) const
 
ProcessHistoryID const & processHistoryID () const
 
void setProcessHistoryID (ProcessHistoryID const &phid) const
 
SubRunID const & id () const
 
RunID const & runID () const
 
RunNumber_t run () const
 
SubRunNumber_t subRun () const
 
Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
void setEndTime (Timestamp const &time)
 
void setRangeSetID (unsigned const id) const
 
auto rangeSetID () const
 
bool mergeAuxiliary (SubRunAuxiliary const &newAux)
 

Public Attributes

ProcessHistoryID processHistoryID_ {}
 
unsigned rangeSetID_ {-1u}
 
SubRunID id_ {}
 
Timestamp beginTime_ {}
 
Timestamp endTime_ {}
 

Static Public Attributes

static constexpr BranchType branch_type = InSubRun
 

Detailed Description

Definition at line 18 of file SubRunAuxiliary.h.

Constructor & Destructor Documentation

art::SubRunAuxiliary::SubRunAuxiliary ( )
default
art::SubRunAuxiliary::SubRunAuxiliary ( SubRunID const &  theId,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

Definition at line 24 of file SubRunAuxiliary.h.

References beginTime_, and endTime_.

27  : id_{theId}, beginTime_{theTime}, endTime_{theEndTime}
28  {}
art::SubRunAuxiliary::SubRunAuxiliary ( RunNumber_t const  theRun,
SubRunNumber_t const  theSubRun,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

Definition at line 30 of file SubRunAuxiliary.h.

References beginTime_, endTime_, and write().

34  : id_{theRun, theSubRun}, beginTime_{theTime}, endTime_{theEndTime}
35  {}

Member Function Documentation

Timestamp const& art::SubRunAuxiliary::beginTime ( ) const
inline

Definition at line 73 of file SubRunAuxiliary.h.

References beginTime_.

Referenced by art::SubRun::beginTime(), and art::SubRunPrincipal::beginTime().

74  {
75  return beginTime_;
76  }
Timestamp const& art::SubRunAuxiliary::endTime ( ) const
inline

Definition at line 79 of file SubRunAuxiliary.h.

References endTime_.

Referenced by art::SubRun::endTime(), and art::SubRunPrincipal::endTime().

80  {
81  return endTime_;
82  }
SubRunID const& art::SubRunAuxiliary::id ( ) const
inline

Definition at line 52 of file SubRunAuxiliary.h.

References id_.

Referenced by art::SubRun::id(), art::SubRunPrincipal::id(), and setRangeSetID().

53  {
54  return id_;
55  }
bool art::SubRunAuxiliary::mergeAuxiliary ( SubRunAuxiliary const &  newAux)

Referenced by rangeSetID().

ProcessHistoryID const& art::SubRunAuxiliary::processHistoryID ( ) const
inline

Definition at line 40 of file SubRunAuxiliary.h.

References processHistoryID_.

41  {
42  return processHistoryID_;
43  }
ProcessHistoryID processHistoryID_
auto art::SubRunAuxiliary::rangeSetID ( ) const
inline

Definition at line 97 of file SubRunAuxiliary.h.

References mergeAuxiliary(), and rangeSetID_.

98  {
99  return rangeSetID_;
100  }
RunNumber_t art::SubRunAuxiliary::run ( ) const
inline

Definition at line 62 of file SubRunAuxiliary.h.

References id_, and art::SubRunID::run().

Referenced by art::SubRun::run(), and art::SubRunPrincipal::run().

63  {
64  return id_.run();
65  }
RunNumber_t run() const
Definition: SubRunID.h:83
RunID const& art::SubRunAuxiliary::runID ( ) const
inline

Definition at line 57 of file SubRunAuxiliary.h.

References id_, and art::SubRunID::runID().

58  {
59  return id_.runID();
60  }
RunID const & runID() const
Definition: SubRunID.h:77
void art::SubRunAuxiliary::setEndTime ( Timestamp const &  time)
inline

Definition at line 85 of file SubRunAuxiliary.h.

References endTime_, and art::Timestamp::invalidTimestamp().

Referenced by art::SubRunPrincipal::setEndTime().

86  {
88  endTime_ = time;
89  }
::xsd::cxx::tree::time< char, simple_type > time
Definition: Database.h:194
static constexpr Timestamp invalidTimestamp()
Definition: Timestamp.h:83
void art::SubRunAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid) const
inline

Definition at line 46 of file SubRunAuxiliary.h.

References processHistoryID_.

47  {
48  processHistoryID_ = phid;
49  }
ProcessHistoryID processHistoryID_
void art::SubRunAuxiliary::setRangeSetID ( unsigned const  id) const
inline

Definition at line 92 of file SubRunAuxiliary.h.

References id(), and rangeSetID_.

93  {
94  rangeSetID_ = id;
95  }
SubRunID const & id() const
SubRunNumber_t art::SubRunAuxiliary::subRun ( ) const
inline

Definition at line 67 of file SubRunAuxiliary.h.

References id_, and art::SubRunID::subRun().

Referenced by art::SubRun::subRun(), and art::SubRunPrincipal::subRun().

68  {
69  return id_.subRun();
70  }
SubRunNumber_t subRun() const
Definition: SubRunID.h:89
void art::SubRunAuxiliary::write ( std::ostream &  os) const

Referenced by operator<<(), and SubRunAuxiliary().

Member Data Documentation

Timestamp art::SubRunAuxiliary::beginTime_ {}

Definition at line 111 of file SubRunAuxiliary.h.

Referenced by beginTime(), and SubRunAuxiliary().

constexpr BranchType art::SubRunAuxiliary::branch_type = InSubRun
static

Definition at line 20 of file SubRunAuxiliary.h.

Timestamp art::SubRunAuxiliary::endTime_ {}

Definition at line 112 of file SubRunAuxiliary.h.

Referenced by endTime(), setEndTime(), and SubRunAuxiliary().

SubRunID art::SubRunAuxiliary::id_ {}

Definition at line 109 of file SubRunAuxiliary.h.

Referenced by id(), run(), runID(), and subRun().

ProcessHistoryID art::SubRunAuxiliary::processHistoryID_ {}
mutable

Definition at line 106 of file SubRunAuxiliary.h.

Referenced by processHistoryID(), and setProcessHistoryID().

unsigned art::SubRunAuxiliary::rangeSetID_ {-1u}
mutable

Definition at line 107 of file SubRunAuxiliary.h.

Referenced by rangeSetID(), and setRangeSetID().


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