file frontends/Rivet_3_1_5.cpp

[No description available] More…

Functions

Name
if(scan_level )

Attributes

Name
BE_INI_FUNCTION
scan_level

Detailed Description

Author: Tomek Procter (t.procter.1@research.gla.ac.uk)

Date: 2021 July


Frontend source for the rivet backend.

Actual implementation of rivet ini function.


Authors (add name and date if you modify):

Functions Documentation

function if

if(
    scan_level 
)

Attributes Documentation

variable BE_INI_FUNCTION

BE_INI_FUNCTION {
  
  static bool scan_level = true;

variable scan_level

scan_level = false;

Source code

//   GAMBIT: Global and Modular BSM Inference Tool
//   *********************************************
///  \file
///
///  Frontend source for the rivet backend.
///
///  Actual implementation of rivet ini function.
///
///  *********************************************
///
///  Authors (add name and date if you modify):
///
///  \author Tomek Procter
///          (t.procter.1@research.gla.ac.uk)
///  \date 2021 July
///  *********************************************

#include "gambit/Backends/frontend_macros.hpp"

#ifndef EXCLUDE_YODA
#ifndef EXCLUDE_HEPMC

#include "gambit/Backends/frontends/Rivet_3_1_5.hpp"
#include "gambit/Utils/util_functions.hpp"


BE_INI_FUNCTION
{
  // Scan-level initialisation
  static bool scan_level = true;
  if (scan_level)
  {
    std::string rivet_analyses_dir = std::string(GAMBIT_DIR)+
        "/Backends/installed/rivet/3.1.5/analyses";

    //Check if the rivet_analyses_dir if it actually exists: if it
    //doesn't then installation probably hasn't installed properly.
    if (Utils::file_exists(rivet_analyses_dir))
    {
      addAnalysisLibPath(rivet_analyses_dir);
    }
    else
    {
      backend_error().raise(LOCAL_INFO, "Rivet analysis directory does not exist.");
    }
  }
  scan_level = false;
}
END_BE_INI_FUNCTION

#endif
#endif

Updated on 2023-06-26 at 21:36:58 +0000