BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSModulatorInfo.cc
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2023.
4
5This file is part of BDSIM.
6
7BDSIM is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published
9by the Free Software Foundation version 3 of the License.
10
11BDSIM is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with BDSIM. If not, see <http://www.gnu.org/licenses/>.
18*/
19#include "BDSModulatorInfo.hh"
20#include "BDSModulatorType.hh"
21
22#include "globals.hh"
23
24#include <ostream>
25
27 G4double frequencyIn,
28 G4double phaseIn,
29 G4double tOffsetIn,
30 G4double scaleIn,
31 G4double amplitudeOffsetIn,
32 G4double T0In,
33 G4double T1In):
34 modulatorType(modulatorTypeIn),
35 frequency(frequencyIn),
36 phase(phaseIn),
37 tOffset(tOffsetIn),
38 scale(scaleIn),
39 amplitudeOffset(amplitudeOffsetIn),
40 T0(T0In),
41 T1(T1In),
42 nameOfParserDefinition("")
43{;}
44
45std::ostream& operator<< (std::ostream& out, BDSModulatorInfo const& info)
46{
47 out << "Parser definition name: \"" << info.nameOfParserDefinition << "\"\n";
48 out << "modulator type : \"" << info.modulatorType << "\n";
49 out << "frequency: " << info.frequency << "\n";
50 out << "phase: " << info.phase << "\n";
51 out << "tOffset: " << info.tOffset << "\n";
52 out << "scale: " << info.scale << "\n";
53 out << "amplitudeOffset: " << info.amplitudeOffset << "\n";
54 out << "T0 " << info.T0 << "\n";
55 out << "T1 " << info.T1 << "\n";
56 out << G4endl;
57 return out;
58}
Holder class for all information required to describe a modulator.
G4double T1
Public member for direct access.
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.