remage
Simulation framework for HPGe-based experiments
Toggle main menu visibility
Loading...
Searching...
No Matches
RMGRun.hh
1
// Copyright (C) 2022 Luigi Pertoldi <https://orcid.org/0000-0002-0467-2571>
2
//
3
// This program is free software: you can redistribute it and/or modify it under
4
// the terms of the GNU Lesser General Public License as published by the Free
5
// Software Foundation, either version 3 of the License, or (at your option) any
6
// later version.
7
//
8
// This program is distributed in the hope that it will be useful, but WITHOUT
9
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11
// details.
12
//
13
// You should have received a copy of the GNU Lesser General Public License
14
// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16
#ifndef _RMG_RUN_HH_
17
#define _RMG_RUN_HH_
18
19
#include <chrono>
20
21
#include "G4Run.hh"
22
29
class
RMGRun
:
public
G4Run
{
30
31
public
:
32
33
using
TimePoint = std::chrono::time_point<std::chrono::system_clock>;
34
36
[[nodiscard]]
const
TimePoint&
GetStartTime
()
const
{
return
fStartTime; }
38
void
SetStartTime
(TimePoint t) { fStartTime = t; }
39
40
private
:
41
42
TimePoint fStartTime;
43
};
44
45
#endif
46
47
// vim: tabstop=2 shiftwidth=2 expandtab
G4Run
RMGRun
Per-run object extending G4Run with bookkeeping needed by remage.
Definition
RMGRun.hh:29
RMGRun::GetStartTime
const TimePoint & GetStartTime() const
Wall-clock time at which the run was started.
Definition
RMGRun.hh:36
RMGRun::SetStartTime
void SetStartTime(TimePoint t)
Record the wall-clock time at which the run was started.
Definition
RMGRun.hh:38
include
RMGRun.hh
Generated by
1.17.0