Container for run parameters.
More...
#include <RunHeader.h>
|
int | runNumber_ {0} |
| Run number.
|
|
std::string | detectorName_ {""} |
| Detector name.
|
|
std::string | description_ {""} |
| Run description.
|
|
long int | runStart_ {0} |
| Run start in seconds since epoch.
|
|
long int | runEnd_ {0} |
| Run end in seconds since epoch.
|
|
std::string | softwareTag_ {fire::version::GIT_SHA1} |
| git SHA-1 hash associated with the software tag used to generate this file.
|
|
fire::io::ParameterStorage | parameters_ |
| run parameteres
|
|
Container for run parameters.
There are several parameters that we hold for all runs and then we also hold a more dynamic ParameterStorage object for holding parameters that users wish to add within Processor::beforeNewRun.
◆ attach()
template<typename DataSet >
void fire::RunHeader::attach |
( |
DataSet & |
d | ) |
|
|
inlineprivate |
Attach to our fire::io::Data.
We attach all of our parameters.
- Parameters
-
◆ get()
template<typename ParameterType >
const ParameterType & fire::RunHeader::get |
( |
const std::string & |
name | ) |
const |
|
inline |
Get a run parameter.
- Template Parameters
-
ParameterType | type of parameter to retrieve |
- Parameters
-
[in] | name | name of parameter to retrieve |
- Returns
- value of parameter for this run
◆ getDescription()
const std::string & fire::RunHeader::getDescription |
( |
| ) |
const |
|
inline |
- Returns
- A short description of the run.
◆ getDetectorName()
const std::string & fire::RunHeader::getDetectorName |
( |
| ) |
const |
|
inline |
- Returns
- The name of the detector used to create the events.
◆ getRunEnd()
int fire::RunHeader::getRunEnd |
( |
| ) |
const |
|
inline |
Get the end time of the run in seconds since epoch.
- Returns
- The end time of the run.
◆ getRunNumber()
int fire::RunHeader::getRunNumber |
( |
| ) |
const |
|
inline |
◆ getRunStart()
int fire::RunHeader::getRunStart |
( |
| ) |
const |
|
inline |
Get the start time of the run in seconds since epoch.
- Returns
- The start time of the run.
◆ getSoftwareTag()
const std::string & fire::RunHeader::getSoftwareTag |
( |
| ) |
const |
|
inline |
- Returns
- The git SHA-1 associated with the software tag used to generate this file.
◆ runStart()
void fire::RunHeader::runStart |
( |
const int |
run | ) |
|
|
inline |
Start the run.
Provide the run number and record the timestamp.
- Parameters
-
◆ set()
template<typename ParameterType >
void fire::RunHeader::set |
( |
const std::string & |
name, |
|
|
const ParameterType & |
val |
|
) |
| |
|
inline |
Set a run parameter.
- Template Parameters
-
ParameterType | type of parameter to set |
- Parameters
-
[in] | name | name of parameter to set |
[in] | val | value of parameter to set for this run |
◆ stream()
Stream this object into the input ostream.
Includes new-line characters to separate out the different parameter maps
- Parameters
-
◆ operator<<
Stream this object to an output stream.
Needs to be here and labeled as friend for it to be compatible with Boost logging.
- See also
- RunHeader::stream
- Parameters
-
[in] | s | ostream to write to |
[in] | h | RunHeader to write out |
- Returns
- modified ostream
The documentation for this class was generated from the following files: