LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
art::ResultsAuxiliary Class Reference

#include "ResultsAuxiliary.h"

Public Member Functions

 ResultsAuxiliary ()
 
void write (std::ostream &os) const
 
ProcessHistoryIDprocessHistoryID () const
 
void setProcessHistoryID (ProcessHistoryID const &phid) const
 
bool mergeAuxiliary (ResultsAuxiliary const &aux)
 

Public Attributes

ProcessHistoryID processHistoryID_
 
std::set< ProcessHistoryIDallEventsProcessHistories_
 

Static Public Attributes

static constexpr BranchType branch_type = InResults
 

Detailed Description

Definition at line 24 of file ResultsAuxiliary.h.

Constructor & Destructor Documentation

art::ResultsAuxiliary::ResultsAuxiliary ( )
inline

Definition at line 28 of file ResultsAuxiliary.h.

References write().

ProcessHistoryID processHistoryID_
std::set< ProcessHistoryID > allEventsProcessHistories_

Member Function Documentation

bool art::ResultsAuxiliary::mergeAuxiliary ( ResultsAuxiliary const &  aux)

Definition at line 11 of file ResultsAuxiliary.cc.

References allEventsProcessHistories_.

Referenced by setProcessHistoryID().

12 {
13 
14  allEventsProcessHistories_.insert(newAux.allEventsProcessHistories_.begin(),
15  newAux.allEventsProcessHistories_.end());
16 
17  // Keep the process history ID that is in the preexisting principal
18  // It may have been updated to include the current process.
19  // There is one strange other case where the two ProcessHistoryIDs
20  // could be different which should not be important and we just ignore.
21  // There could have been previous processes which only dropped products.
22  // These processes could have dropped the same branches but had different
23  // process names ... Ignore this.
24 
25  return true;
26 }
std::set< ProcessHistoryID > allEventsProcessHistories_
ProcessHistoryID& art::ResultsAuxiliary::processHistoryID ( ) const
inline

Definition at line 33 of file ResultsAuxiliary.h.

References processHistoryID_.

34  {
35  return processHistoryID_;
36  }
ProcessHistoryID processHistoryID_
void art::ResultsAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid) const
inline

Definition at line 39 of file ResultsAuxiliary.h.

References mergeAuxiliary(), and processHistoryID_.

Referenced by art::ResultsPrincipal::setProcessHistoryID().

40  {
41  processHistoryID_ = phid;
42  }
ProcessHistoryID processHistoryID_
void art::ResultsAuxiliary::write ( std::ostream &  os) const

Definition at line 5 of file ResultsAuxiliary.cc.

References processHistoryID_.

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

6 {
7  os << "Process History ID = " << processHistoryID_ << std::endl;
8 }
ProcessHistoryID processHistoryID_

Member Data Documentation

std::set<ProcessHistoryID> art::ResultsAuxiliary::allEventsProcessHistories_

Definition at line 52 of file ResultsAuxiliary.h.

Referenced by mergeAuxiliary().

constexpr BranchType art::ResultsAuxiliary::branch_type = InResults
static

Definition at line 26 of file ResultsAuxiliary.h.


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