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

Physics biasing class for parser. More...

#include <physicsbiasing.h>

Collaboration diagram for GMAD::PhysicsBiasing:
Collaboration graph

Public Member Functions

 PhysicsBiasing ()
 constructor More...
 
void clear ()
 reset More...
 
void print () const
 print some properties More...
 
void set_value (const std::string &property, double value)
 set methods by property name, numeric values More...
 
void set_value (const std::string &property, Array *value)
 set methods by property name, list of numeric values More...
 
void set_value (const std::string &property, std::string value)
 set methods by property name, string values More...
 

Data Fields

std::string name
 
std::string particle
 particle name More...
 
std::string process
 geant4 process: single string, but can have multiple processes separated with a space More...
 
std::vector< std::string > processList
 
std::vector< double > factor
 factors corresponding to process More...
 
std::vector< PhysicsBiasingType > flag
 flag which particles are biased More...
 

Detailed Description

Physics biasing class for parser.

Author
Jochem Snuverink

Definition at line 40 of file physicsbiasing.h.

Constructor & Destructor Documentation

◆ PhysicsBiasing()

PhysicsBiasing::PhysicsBiasing ( )

constructor

Definition at line 29 of file physicsbiasing.cc.

Member Function Documentation

◆ clear()

void PhysicsBiasing::clear ( )

reset

Definition at line 31 of file physicsbiasing.cc.

References factor, flag, name, particle, and process.

◆ print()

void PhysicsBiasing::print ( ) const

print some properties

Definition at line 41 of file physicsbiasing.cc.

References factor, flag, name, particle, and process.

◆ set_value() [1/3]

void PhysicsBiasing::set_value ( const std::string &  property,
Array value 
)

set methods by property name, list of numeric values

Definition at line 67 of file physicsbiasing.cc.

References factor, flag, and GMAD::Array::set_vector().

Here is the call graph for this function:

◆ set_value() [2/3]

void PhysicsBiasing::set_value ( const std::string &  property,
double  value 
)

set methods by property name, numeric values

Definition at line 54 of file physicsbiasing.cc.

References factor, and flag.

◆ set_value() [3/3]

void PhysicsBiasing::set_value ( const std::string &  property,
std::string  value 
)

set methods by property name, string values

Definition at line 86 of file physicsbiasing.cc.

References name, particle, and process.

Field Documentation

◆ factor

std::vector<double> GMAD::PhysicsBiasing::factor

factors corresponding to process

Definition at line 50 of file physicsbiasing.h.

Referenced by clear(), print(), and set_value().

◆ flag

std::vector<PhysicsBiasingType> GMAD::PhysicsBiasing::flag

flag which particles are biased

Definition at line 52 of file physicsbiasing.h.

Referenced by clear(), print(), and set_value().

◆ name

std::string GMAD::PhysicsBiasing::name

name

Definition at line 43 of file physicsbiasing.h.

Referenced by clear(), print(), and set_value().

◆ particle

std::string GMAD::PhysicsBiasing::particle

particle name

Definition at line 45 of file physicsbiasing.h.

Referenced by clear(), print(), and set_value().

◆ process

std::string GMAD::PhysicsBiasing::process

geant4 process: single string, but can have multiple processes separated with a space

Definition at line 47 of file physicsbiasing.h.

Referenced by clear(), print(), and set_value().

◆ processList

std::vector<std::string> GMAD::PhysicsBiasing::processList

Definition at line 48 of file physicsbiasing.h.


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