bsmart.tools.MadGraphHackAnalysis

Tool to run the pipeline madgraph to create lhe file then hackanalysis to drive pythia and perform analysis.

Need to specify in tools:

"MadGraphHackAnalysis" : {
    "HackAnalysis" : "/path/to/executable", (e.g. analysePYTHIA_LHE.exe)
    "YAML file" "<NAME>.yaml"    (file for configuring HackAnalysis run  )
}

plus, in addition, settings for running madgraph which can also be found in ../collider/MGaux.py These include as obligatory:

  • “MadGraph” : “/path/to/modeldir/bin/generate_events”, (if you have already generated the output directory for your process)

OR

  • “Proc Card”: “proc_card.dat”, ( for generating the madgraph directory based on a series of commands to provide to madgraph)

  • “MadGraph Path”: “/path/to/MG5_aMC_v3.5.XX/bin/mg5_aMC”, (so that we can run MadGraph )

  • “Output Directory”: “/path/to/where/you/want/to/put/the/output”, (this is OPTIONAL: if you have the command output <outputname> in your proc_card.dat then BSMArt will find it)

other optional MadGraph settings include:

{
    "python2": "True",  (if you need to run madgraph via python2)
    "MadGraph Directory": "/path/to/modeldir",  (if you want to specify the path to the modeldir, otherwise the code will infer it)
    "QNUMBERS file": "myQNUMBERs.slha", (for models that have particles unknown to pythia)
    "MadSpin": "True", (if you want to run MadSpin and have it handled by BSMArt)
    "k-factor": 1.2, (for multiplying the cross-section by a k-factor)
    "Cross-sections" : "/path/to/csv/file/containing/cross-sections.csv",      (if you have tabulated cross-sections as a function of *one* variable to use instead of the one computed in MadGraph; this is documented in the InterpolateXSection.py file.)
}

25/03/13: Make more robust, in case for some reason HackAnalysis fails to run when doing batches, will give two more tries with the same point

Information

BSMArt Name: MadGraphHackAnalysis

Requires:
  • pyyaml

Settings:

  • HackAnalysis: Path to HackAnalysis executable

  • YAML file: Path to YAML config file

  • MadGraph: Path to generate_events

  • Proc Card: Path to proc_card.dat

  • MadGraph Path: Path to mg5_aMC

  • Output Directory: Path to output directory

  • Mode: LHE or HEPMC

  • GridPack: Boolean

  • Check Absolute Convergence: Boolean

  • Check Convergence: Boolean

  • Efficiency Threshold: Float

  • Convergence Margin: Float

  • Check Exclusion: Boolean

  • Batch Size: Int

  • Store Events: Boolean

  • Cores: Int

class bsmart.tools.MadGraphHackAnalysis.NewTool(name, settings, global_settings=None)[source]

Bases: HepTool

MadGraphHackAnalysis runs madgraph and extracts the cross-section plus uncertainty

Various settings are possible:

run(spc_file, temp_dir, log, data_point)[source]