Originally from https://github.com/sviret/HL_LHC, split into its own repository