Reads a file in .json format containing data of a model and returns the corresponding Model object via its only static public function readModel.
More...
#include <jsonToPhysics.h>
|
| static std::unique_ptr< Model > | readModel (std::string const &nameFile) |
| | Reads a file in .json format containing data of a model and returns the corresponding Model object. More...
|
| |
|
| static std::unique_ptr< Gauge > | readGauge (JSON::Node *tree) |
| | Reads the gauge in the root node of the JSON tree and returns it. More...
|
| |
| static std::unique_ptr< Flavor > | readFlavor (JSON::Node *tree) |
| | Reads the flavor in the root node of the JSON tree and returns it. More...
|
| |
|
static std::vector< QuantumNumber > | readQuantumNumbers (JSON::Node *tree) |
| |
| static csl::Expr | readGaugeCoupling (JSON::Node *couplingNode) |
| | Reads the gauge coupling in a group Node and returns the corresponding csl csl::Expr. More...
|
| |
| static std::vector< std::shared_ptr< QuantumFieldParent > > | readField (JSON::Node *tree, Gauge *gauge, Flavor *flavor, Model *model, std::vector< QuantumNumber > const &qNumbers) |
| | Reads the fields of the model in the root Node of the JSON tree and returns it in the form of a std::vector of QuantumFieldParent*. The parents are newly allocated and only raw pointers are returned. More...
|
| |
|
static std::vector< std::pair< std::string, JSON::Node * > > | readYukawaNodes (JSON::Node *fields) |
| |
|
static csl::Expr | interpretYukawaCoupling (Model *model, std::string const &nameScalar, JSON::Node *node) |
| |
| static std::vector< int > | stringToDinkinLabels (std::string const &str) |
| | Little helper function that converts a string to a vector of int, corresponding to the dinkin labels of a given representation. More...
|
| |
| static GaugeIrrep | readIrrep (JSON::Node *node, Gauge *gauge) |
| | Reads the irreducible representation of a particle in its Node. More...
|
| |
| static FlavorIrrep | readFlavorIrrep (JSON::Node *node, Flavor *flavor) |
| | Reads the irreducible representation of a particle in its Node. More...
|
| |
| static void | readMass (JSON::Node *massNode, QuantumFieldParent *field) |
| | Reads the mass in a field Node and returns the corresponding csl csl::Expr. More...
|
| |
Reads a file in .json format containing data of a model and returns the corresponding Model object via its only static public function readModel.
- Parameters
-
| nameFile | The name of the .json file. |
- Returns
- The Model filled with the data.
◆ readField()
Reads the fields of the model in the root Node of the JSON tree and returns it in the form of a std::vector of QuantumFieldParent*. The parents are newly allocated and only raw pointers are returned.
- Parameters
-
| tree | Root Node of the file. |
| gauge | Pointer the the model's gauge to initialize the fields. |
- Returns
- a std::vector of QuantumFieldParent* containing the particles.
◆ readFlavor()
Reads the flavor in the root node of the JSON tree and returns it.
- Parameters
-
| tree | Pointer to to root Node. |
- Returns
- A raw pointer to a newly allocated Flavor.
◆ readFlavorIrrep()
Reads the irreducible representation of a particle in its Node.
For each group, the set of dinkin labels (or numerator and denominator for U(1)) must be given. If not, the trivial representation is supposed for this group. The representation is then created at the gauge level.
- Parameters
-
| node | Node of the representation. |
| gauge | Pointer to the gauge to initialize properly the representations. |
- Returns
- A GaugeIrrep read in the file.
◆ readGauge()
Reads the gauge in the root node of the JSON tree and returns it.
- Parameters
-
| tree | Pointer to to root Node. |
- Returns
- A raw pointer to a newly allocated Gauge.
◆ readGaugeCoupling()
Reads the gauge coupling in a group Node and returns the corresponding csl csl::Expr.
- Parameters
-
| couplingNode | Pointer to the coupling Node. |
- Returns
- The expression (aka csl::Expr) corresponding to the coupling.
◆ readIrrep()
Reads the irreducible representation of a particle in its Node.
For each group, the set of dinkin labels (or numerator and denominator for U(1)) must be given. If not, the trivial representation is supposed for this group. The representation is then created at the gauge level.
- Parameters
-
| node | Node of the representation. |
| gauge | Pointer to the gauge to initialize properly the representations. |
- Returns
- A GaugeIrrep read in the file.
◆ readMass()
Reads the mass in a field Node and returns the corresponding csl csl::Expr.
- Parameters
-
| massNode | Pointer to the mass Node. |
- Returns
- The expression (aka csl::Expr) corresponding to the mass.
◆ readModel()
| unique_ptr< Model > mty::JSONToHEP::readModel |
( |
std::string const & |
nameFile | ) |
|
|
static |
Reads a file in .json format containing data of a model and returns the corresponding Model object.
- Parameters
-
| nameFile | The name of the .json file. |
- Returns
- The Model filled with the data.
◆ stringToDinkinLabels()
| vector< int > mty::JSONToHEP::stringToDinkinLabels |
( |
std::string const & |
str | ) |
|
|
staticprivate |
Little helper function that converts a string to a vector of int, corresponding to the dinkin labels of a given representation.
- Parameters
-
- Returns
- a std::vector of int containing the labels.
The documentation for this class was generated from the following files: