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