BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
BDSPolarizationState.hh
1/*
2Beam Delivery Simulation (BDSIM) Copyright (C) Royal Holloway,
3University of London 2001 - 2024.
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#ifndef BDSPOLARIZATIONSTATE_H
20#define BDSPOLARIZATIONSTATE_H
21#include "globals.hh"
22#include "G4ThreeVector.hh"
23#include "parser/beam.h"
24
33{
34public:
35 BDSPolarizationState(const GMAD::Beam& beamDefinition);
37 inline void SetPol1(G4double pol1In){pol1=pol1In;}
38 inline void SetPol2(G4double pol2In){pol1=pol2In;}
39 inline void SetPol3(G4double pol3In){pol1=pol3In;}
40 inline G4double GetPol1() {return pol1;}
41 inline G4double GetPol2() {return pol2;}
42 inline G4double GetPol3() {return pol3;}
43 inline void SetPolarization(G4ThreeVector polarizationIn){polarization=polarizationIn;}
44 inline G4ThreeVector GetPolarization() {return polarization;}
45
46private:
47 G4double pol1=0;
48 G4double pol2=0;
49 G4double pol3=0;
50 G4ThreeVector polarization;
51
52};
53
54
55
56#endif
Polarization state to pass to processes.
Beam class.
Definition beam.h:44