BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSModulatorInfo.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 BDSMODULATORINFO_H
19#define BDSMODULATORINFO_H
20
21#include "BDSModulatorType.hh"
22
23#include "G4Types.hh"
24
32{
33public:
35 BDSModulatorInfo() = delete;
37 BDSModulatorInfo(BDSModulatorType modulatorTypeIn,
38 G4double frequencyIn,
39 G4double phaseIn = 0,
40 G4double tOffsetIn = 0,
41 G4double scaleIn = 1.0,
42 G4double amplitudeOffsetIn = 0,
43 G4double T0In = 0,
44 G4double T1In = 0);
45
46 ~BDSModulatorInfo() = default;
47
49 friend std::ostream& operator<< (std::ostream &out, BDSModulatorInfo const &info);
50
53 G4double frequency;
54 G4double phase;
55 G4double tOffset;
56 G4double scale;
58 G4double T0;
59 G4double T1;
61
62 G4String nameOfParserDefinition;
63};
64
65#endif
Holder class for all information required to describe a modulator.
G4double T1
Public member for direct access.
friend std::ostream & operator<<(std::ostream &out, BDSModulatorInfo const &info)
output stream
BDSModulatorInfo()=delete
Deleted default constructor to ensure one of supplied constructors is used.
G4double frequency
Public member for direct access.
BDSModulatorType modulatorType
Public member for direct access.
G4double T0
Public member for direct access.
G4double phase
Public member for direct access.
G4double tOffset
Public member for direct access.
G4double scale
Public member for direct access.
G4double amplitudeOffset
Public member for direct access.