BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Public Member Functions | Data Fields | Private Member Functions
GMAD::Region Class Reference

Region class for parser. More...

#include <region.h>

Inheritance diagram for GMAD::Region:
Inheritance graph
Collaboration diagram for GMAD::Region:
Collaboration graph

Public Member Functions

 Region ()
 constructor More...
 
void clear ()
 reset More...
 
void print () const
 print some properties More...
 
template<typename T >
void set_value (std::string property, T value)
 set methods by property name and value More...
 
- Public Member Functions inherited from GMAD::Published< Region >
bool NameExists (const std::string &name) const
 
Published< Region >::template AttributeMap< T > & attribute_map () const
 

Data Fields

std::string name
 name More...
 
double defaultRangeCut
 
double prodCutPhotons
 
double prodCutElectrons
 
double prodCutPositrons
 
double prodCutProtons
 

Private Member Functions

void PublishMembers ()
 publish members More...
 

Additional Inherited Members

- Protected Types inherited from GMAD::Published< Region >
using AttributeMap = typename std::unordered_map< std::string, T C::* >
 Define AttributeMap of string and class member pointer. More...
 
- Protected Member Functions inherited from GMAD::Published< Region >
void publish (const std::string &name, T C::*mp)
 Make pointer to member from class C and type T with accessible with a name. More...
 
void set (Region *instance, const Region *instance2, const std::string &name)
 Set member with name of class instance to value of second instance. More...
 
AttributeMap< T > & attribute_map () const
 Access method to static map for type T and class C.
 
get (const Region *instance, const std::string &name) const
 Get method for class C. More...
 
void set (Region *instance, const std::string &name, double value)
 
void set (Region *instance, const std::string &name, GMAD::Array *const &value)
 
void set (Region *instance, const std::string &name, const T &value)
 

Detailed Description

Region class for parser.

Author
Jochem Snuverink

Definition at line 35 of file region.h.

Constructor & Destructor Documentation

◆ Region()

Region::Region ( )

constructor

Definition at line 23 of file region.cc.

References clear(), and PublishMembers().

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void Region::clear ( )

reset

Definition at line 29 of file region.cc.

Referenced by Region().

Here is the caller graph for this function:

◆ print()

void Region::print ( ) const

print some properties

Definition at line 51 of file region.cc.

References name.

◆ PublishMembers()

void Region::PublishMembers ( )
private

publish members

Definition at line 41 of file region.cc.

References name, and GMAD::Published< Region >::publish().

Referenced by Region().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_value()

template<typename T >
void GMAD::Region::set_value ( std::string  property,
value 
)

set methods by property name and value

Definition at line 62 of file region.h.

References GMAD::Published< Region >::set().

Here is the call graph for this function:

Field Documentation

◆ defaultRangeCut

double GMAD::Region::defaultRangeCut

Definition at line 40 of file region.h.

◆ name

std::string GMAD::Region::name

name

Definition at line 38 of file region.h.

Referenced by print(), and PublishMembers().

◆ prodCutElectrons

double GMAD::Region::prodCutElectrons

Definition at line 42 of file region.h.

◆ prodCutPhotons

double GMAD::Region::prodCutPhotons

Definition at line 41 of file region.h.

◆ prodCutPositrons

double GMAD::Region::prodCutPositrons

Definition at line 43 of file region.h.

◆ prodCutProtons

double GMAD::Region::prodCutProtons

Definition at line 44 of file region.h.


The documentation for this class was generated from the following files: