LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
RunData.cxx
Go to the documentation of this file.
1
9
#include "
larcoreobj/SummaryData/RunData.h
"
10
11
#include <stdexcept>
// std::runtime_error
12
13
namespace
sumdata
{
14
15
//---------------------------------------------------------
16
RunData::RunData
() : fDetName(
"nodetectorname"
) {}
17
18
//---------------------------------------------------------
19
RunData::RunData
(std::string
const
&
detectorName
) :
fDetName
(detectorName) {}
20
21
//---------------------------------------------------------
22
void
RunData::aggregate
(
RunData
const
&
other
)
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()
33
34
//---------------------------------------------------------
35
36
}
sumdata::RunData::DetName
std::string const & DetName() const
Definition:
RunData.h:35
sumdata::RunData::fDetName
std::string fDetName
Detector name.
Definition:
RunData.h:26
detectorName
std::string detectorName
Definition:
tagConditionsTableInDB.cc:15
sumdata::RunData::aggregate
void aggregate(RunData const &other)
Definition:
RunData.cxx:22
fhicl::other
Definition:
exception.h:26
sumdata
Definition:
GeometryConfigurationInfo.h:18
sumdata::RunData::RunData
RunData()
Definition:
RunData.cxx:16
RunData.h
sumdata::RunData
Definition:
RunData.h:15
larcoreobj
v09_10_01
source
larcoreobj
SummaryData
RunData.cxx
Generated on Thu May 2 2024 20:59:35 for LArSoft by
1.8.11