HackAnalysis  2
Public Member Functions | Public Attributes | List of all members
SettingsContainer Class Reference

Class to hold settings, read from the YAML file, such as number of cores, deltaR for the jets, etc. More...

#include <running.h>

Public Member Functions

void SetDefaults ()
 
 SettingsContainer (std::string &YAMLfname)
 
void ReadYAML (std::string &YAMLfname)
 ReadYAML options. More...
 
template<typename T1 >
void SetValue (T1 &var, const string &varname, YODA_YAML::Node &config)
 
template<typename T1 >
void SetValue (T1 &var, YODA_YAML::Node &result)
 

Public Attributes

int ncores
 
int nevents
 
int npileup
 
string outfile
 
string cfgfile
 
string lhefile
 
string histofile
 
string cutflowfile
 
string hepmcfile
 
string jsonfile
 
bool writehistos
 
bool includePileUp
 
bool checkconvergence
 
double convergencemargin
 
bool store_events
 
bool store_hadrons
 
vector< std::string > Analyses_To_Run
 
vector< std::string > pythia_strings
 
string pileupfilename
 
double xs
 
double Rjet
 

Detailed Description

Class to hold settings, read from the YAML file, such as number of cores, deltaR for the jets, etc.

Member Function Documentation

◆ ReadYAML()

void SettingsContainer::ReadYAML ( std::string &  YAMLfname)

ReadYAML options.

Add particles from an SLHA file with QNUMBERS with option "QNUMBERS file"

(incomplete) list of options for the YAML file:

cores: number of cores

Config file: cfg file for pythia

LHE file -> .lhe or .lhe.gz file for analysePYTHIA_LHE. For multicore operation they should be numbered by thisname0.lhe.gz, thisname1.lhe.gz, ... up to ncores-1.

HEPMC file name

Name for the output json file

Option to supply a cross-section, either to override the pythia-determined value or for hepmc files

Rjet -> jet radius, defaults to 0.4

nevents -> number of events

◆ SetDefaults()

void SettingsContainer::SetDefaults ( )

Default settings are given here

< default to 1 core

< million events should be enough as a default for most files

< default cross-section negative -> will determine from pythia if running

< Rjet set to 0.4 by default

< store event files in HackAnalysis event format ... default is false

< keep hadrons in the written event files ... default is false


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