Data lines in SLHA files should start with spaces

Report the bugs you found
Post Reply
Socob
Posts: 30
Joined: 7. Dec 2017, 16:18

Data lines in SLHA files should start with spaces

Post by Socob » 22. Feb 2018, 15:26

The SUSY Les Houches Accord specifies (arXiv:hep-ph/0311123, section 3):
  • The first character of every line is reserved for control and comment statements. Data lines should have the first character empty.
  • A line with a blank first character is a data statement, to be interpreted according to what data the current block contains. Comments and/or descriptions added after the data values, e.g. “ ... # comment”, should always be added, to increase readability of the file for human readers.
According to that, each data line (lines within a block) must start with at least one space. However, lines in SLHA files generated by SARAH (using MakeSPheno[]) generally don’t start with spaces (see Package/SPheno/SPhenoLesHouchesAndMake.m). This is causing problems, for example, with pySLHA (arXiv:1305.4194). When pySLHA encounters such lines without initial spaces, it simply removes them from the input entirely. Thus, it would be nice if SARAH’s SLHA files could be made conforming by adding a space before every data line.

FStaub
Site Admin
Posts: 822
Joined: 13. Apr 2016, 14:05

Re: Data lines in SLHA files should start with spaces

Post by FStaub » 23. Feb 2018, 14:26

To what blocks do you refer exactly? The spectrum file look fine. Or do you mean the Les Houches input files (which I would expect to be read only by SPheno)?

Socob
Posts: 30
Joined: 7. Dec 2017, 16:18

Re: Data lines in SLHA files should start with spaces

Post by Socob » 24. Feb 2018, 19:20

Oh, sorry – I mean the Les Houches input files (LesHouches.in.*). I wanted to use pySLHA to manipulate the input files for SPheno and ran into the issue described above.

FStaub
Site Admin
Posts: 822
Joined: 13. Apr 2016, 14:05

Re: Data lines in SLHA files should start with spaces

Post by FStaub » 26. Feb 2018, 14:33

ok, here now with spaces.
Attachments
SPhenoLesHouchesAndMake.m
(36.74 KiB) Downloaded 253 times

Post Reply