Public Member Functions | Private Attributes | List of all members
gar::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 17 of file RunData.h.

Constructor & Destructor Documentation

RunData::RunData ( )

Definition at line 17 of file RunData.cxx.

18  : fDetName("nodetectorname")
19  {
20  }
std::string fDetName
detector name
Definition: RunData.h:26
RunData::RunData ( std::string const &  detectorName)
explicit

Definition at line 23 of file RunData.cxx.

24  : fDetName(detectorName)
25  {
26  }
std::string fDetName
detector name
Definition: RunData.h:26

Member Function Documentation

void RunData::aggregate ( RunData const &  other)

Definition at line 29 of file RunData.cxx.

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

Definition at line 41 of file RunData.h.

41 { return fDetName; }
std::string fDetName
detector name
Definition: RunData.h:26

Member Data Documentation

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

detector name

Definition at line 26 of file RunData.h.


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