LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
sumdata::RunData Class Reference

#include "RunData.h"

Public Member Functions

 RunData ()
 
void aggregate (RunData const &other)
 
 RunData (std::string const &detectorName)
 
std::string const & DetName () const
 

Private Attributes

std::string fDetName
 Detector name. More...
 

Detailed Description

Definition at line 15 of file RunData.h.

Constructor & Destructor Documentation

sumdata::RunData::RunData ( )

Definition at line 16 of file RunData.cxx.

16 : fDetName("nodetectorname") {}
std::string fDetName
Detector name.
Definition: RunData.h:26
sumdata::RunData::RunData ( std::string const &  detectorName)
explicit

Definition at line 19 of file RunData.cxx.

std::string fDetName
Detector name.
Definition: RunData.h:26
std::string detectorName

Member Function Documentation

void sumdata::RunData::aggregate ( RunData const &  other)

What to do when multiple RunData objects are found for the same run.

Exceptions
std::runtime_errorif other has a different DetName()

Definition at line 22 of file RunData.cxx.

References DetName().

23  {
24 
25  // Each run is required to have the same detector name.
26  // This might be a problem for Monte Carlo jobs which tend to use the same
27  // run number for everything.
28  if (other.DetName() != DetName()) {
29  throw std::runtime_error("The same run sees different detector setups: '" + DetName() +
30  "' and '" + other.DetName());
31  }
32  } // RunData::aggregate()
std::string const & DetName() const
Definition: RunData.h:35
std::string const & sumdata::RunData::DetName ( ) const
inline

Definition at line 35 of file RunData.h.

References fDetName.

Referenced by aggregate().

36 {
37  return fDetName;
38 }
std::string fDetName
Detector name.
Definition: RunData.h:26

Member Data Documentation

std::string sumdata::RunData::fDetName
private

Detector name.

Definition at line 26 of file RunData.h.

Referenced by DetName().


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