BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSMessenger.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) BDSIM Collaboration, 2001 - 2026.
3
4This file is part of BDSIM.
5
6BDSIM is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published
8by the Free Software Foundation version 3 of the License.
9
10BDSIM is distributed in the hope that it will be useful, but
11WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
17*/
18#ifndef BDSMESSENGER_H
19#define BDSMESSENGER_H
20
21#include <string>
22
23#include "globals.hh"
24#include "G4UImessenger.hh"
25
27class G4UIcmdWithAString;
28class G4UIcmdWithoutParameter;
29class G4UIcommand;
30class G4UIdirectory;
31
38class BDSMessenger: public G4UImessenger
39{
40public:
42 virtual ~BDSMessenger();
43
44 void SetNewValue(G4UIcommand* command, G4String newValue);
45 void BeamLineList();
46 std::string BDSBeamlineElementToString(G4int iElement);
47 void ElementNameSearch(std::string name);
48 void GoToElement(const std::string& value);
49 void ElementTypeSearch(std::string type);
50 void SamplerList();
51 void ViewSamplers();
52 std::string BDSSamplerToString(G4int iSampler);
53 std::string BDSSamplerToString(std::string samplerName);
54 void ListQueries();
55
56protected:
57 G4UIdirectory* bdsDirectory;
58 G4UIdirectory* bdsBeamlineDirectory;
59 G4UIcmdWithoutParameter* beamlineListCmd;
60 G4UIcmdWithAString* elementNameSearchCmd;
61 BDSUIcmdStringInt* elementGoToCmd;
62 G4UIdirectory* bdsSamplersDirectory;
63 G4UIcmdWithoutParameter* samplerListCmd;
64 G4UIcmdWithoutParameter* samplerViewCmd;
65 G4UIcmdWithoutParameter* queryListCmd;
66};
67
68#endif
User interface commands.
UI command with string, then optional integer argument.