remage
Simulation framework for HPGe-based experiments
 
Loading...
Searching...
No Matches
RMGHardwareMessenger.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_HARDWARE_MESSENGER_HH_
17#define _RMG_HARDWARE_MESSENGER_HH_
18
19#include "G4UIcmdWithADoubleAndUnit.hh"
20#include "G4UImessenger.hh"
21
23class RMGHardware;
25
26 public:
27
35
40 void SetNewValue(G4UIcommand* command, G4String newValues) override;
41
44
46 void DefineStepLimits();
47
50
51 private:
52
53 RMGHardware* fHardware;
54 G4UIcommand* fRegisterCmd = nullptr;
55 G4UIcmdWithADoubleAndUnit* fStepLimitsCmd = nullptr;
56 G4UIcommand* fSelectiveEminLimitCmd = nullptr;
57
58 void RegisterDetectorCmd(const std::string& parameters);
59 void StepLimitsCmd(const std::string& parameters);
60 void SelectiveEminLimitCmd(const std::string& parameters);
61};
62
63#endif
64
65// vim: tabstop=2 shiftwidth=2 expandtab
void DefineStepLimits()
Define the commands to set the step limits.
Definition RMGHardwareMessenger.cc:82
void SetNewValue(G4UIcommand *command, G4String newValues) override
Set the values for command.
Definition RMGHardwareMessenger.cc:37
void DefineSelectiveEminLimits()
Define the commands to set particle-selective minimum kinetic energy limits.
Definition RMGHardwareMessenger.cc:98
void DefineRegisterDetector()
Define the commands to set the sensitive detectors.
Definition RMGHardwareMessenger.cc:44
RMGHardwareMessenger(RMGHardware *hw)
Constructor based on a RMGHardware pointer.
Definition RMGHardwareMessenger.cc:24
Definition RMGHardware.hh:39