Skip to content

Commit

Permalink
use std::array for sfermion quantum numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Oct 20, 2016
1 parent 4f95142 commit e53e302
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/sfermions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ namespace sfermions {

static const double oneOverRoot2 = 1./sqrt(2.); // 0.7071067811865475

const double Isospin[NUMBER_OF_MSSM_SPARTICLES] = {
const std::array<double, NUMBER_OF_MSSM_SPARTICLES> Isospin = {
0.5, -0.5, 0.5, -0.5
};

const double Hypercharge_left[NUMBER_OF_MSSM_SPARTICLES] = {
const std::array<double, NUMBER_OF_MSSM_SPARTICLES> Hypercharge_left = {
1./3., 1./3., -1., -1.
};

const double Hypercharge_right[NUMBER_OF_MSSM_SPARTICLES] = {
const std::array<double, NUMBER_OF_MSSM_SPARTICLES> Hypercharge_right = {
-4./3., 2./3., 0., 2.
};

Expand Down
12 changes: 6 additions & 6 deletions src/sfermions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#ifndef SFERMIONS_H
#define SFERMIONS_H

#include <array>
#include <Eigen/Core>

namespace flexiblesusy {
Expand All @@ -32,14 +33,13 @@ enum Sparticles {
NUMBER_OF_MSSM_SPARTICLES
};

extern const double Isospin[NUMBER_OF_MSSM_SPARTICLES];
extern const double Hypercharge_left[NUMBER_OF_MSSM_SPARTICLES];
extern const double Hypercharge_right[NUMBER_OF_MSSM_SPARTICLES];

extern const std::array<double, NUMBER_OF_MSSM_SPARTICLES> Isospin;
extern const std::array<double, NUMBER_OF_MSSM_SPARTICLES> Hypercharge_left;
extern const std::array<double, NUMBER_OF_MSSM_SPARTICLES> Hypercharge_right;

/**
* data needed to fill 2 x 2 sfermion mass matrix
*/
* parameters needed to fill 2 x 2 sfermion mass matrix
*/
struct Mass_data {
double ml2; ///< soft mass of left-handed sfermion
double mr2; ///< soft mass of right-handed sfermion
Expand Down
1 change: 1 addition & 0 deletions templates/two_scale_convergence_tester.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// File generated at @DateAndTime@

#include "@ModelName@_two_scale_convergence_tester.hpp"
#include <array>
#include <cmath>
#include <algorithm>
#include "wrappers.hpp"
Expand Down

0 comments on commit e53e302

Please sign in to comment.