BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
python.h
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#ifndef GMAD_H
20#define GMAD_H
21
22namespace GMAD
23{
25 extern "C" {
26 int GmadParser_c(char *name);
27
28 /* Interface to extern beamline_list */
29 int GetNElements();
30 int GetType(int);
31 const char* GetName(int);
32 double GetLength(int);
33 double GetAngle(int);
34 double* GetKs(int);
35 double GetAper1(int);
36 double GetAper2(int);
37 double GetAper3(int);
38 double GetAper4(int);
39 const char* GetApertureType(int);
40 double GetBeampipeThickness(int);
41
42 }
43}
44#endif
Parser namespace for GMAD language. Combination of Geant4 and MAD.
double GetBeampipeThickness(int)
Beam Pipe Thickness.
Definition: python.cc:114
const char * GetName(int)
Name of element.
Definition: python.cc:38
int GetType(int)
Type of element.
Definition: python.cc:45
double * GetKs(int)
All magnetic ks.
Definition: python.cc:66
double GetAper3(int)
Aperture 3.
Definition: python.cc:93
double GetAper1(int)
Aperture 1.
Definition: python.cc:79
double GetAper4(int)
Aperture 4.
Definition: python.cc:100
int GmadParser_c(char *name)
Definition: python.cc:27
int GetNElements()
Length of list.
Definition: python.cc:33
double GetLength(int)
Length of element.
Definition: python.cc:52
double GetAngle(int)
Angle of element.
Definition: python.cc:59
const char * GetApertureType(int)
Aperture Type.
Definition: python.cc:107
double GetAper2(int)
Aperture 2.
Definition: python.cc:86