All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RunData.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file larcoreobj/SummaryData/RunData.h
3 ///
4 /// Definition of object to store run related information
5 ///
6 /// \author brebel@fnal.gov
7 ////////////////////////////////////////////////////////////////////////
8 #ifndef LARCOREOBJ_SUMMARYDATA_RUNDATA_H
9 #define LARCOREOBJ_SUMMARYDATA_RUNDATA_H
10 
11 #include <string>
12 
13 namespace sumdata {
14 
15  class RunData{
16 
17  public:
18 
19  RunData(); // Default constructor
20 
21  /// What to do when multiple `RunData` objects are found for the same run.
22  ///
23  /// @throws std::runtime_error if `other` has a different `DetName()`
24  void aggregate(RunData const& other);
25 
26  private:
27 
28  std::string fDetName; ///< Detector name.
29 
30  public:
31  explicit RunData(std::string const& detectorName);
32  std::string const& DetName() const;
33 
34 
35  }; // RunData
36 } // namespace sumdata
37 
38 
39 inline std::string const& sumdata::RunData::DetName() const { return fDetName; }
40 
41 
42 #endif // LARCOREOBJ_SUMMARYDATA_RUNDATA_H
std::string const & DetName() const
Definition: RunData.h:39
std::string fDetName
Detector name.
Definition: RunData.h:28
void aggregate(RunData const &other)
Definition: RunData.cxx:28