Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LesHouchesEvents: how to read .lhe file

  1. Nov 30, 2016 #1

    I have a .lhe file for the u u > u u interaction and i want to extract the initial and final values of momenta but i don't know how. I could write a c++ program and insert them in arrays but how to exclude all the rest (MG5 Proc card, warnings etc) ?

    sorry for any language mistakes
  2. jcsd
  3. Nov 30, 2016 #2


    User Avatar
    Gold Member

    Read in everything in the file and only keep what you want; that's the normal way of doing such things. You might ever be able to find on-line code that already has everything to read the file.
  4. Dec 1, 2016 #3


    User Avatar
    Gold Member

    maybe if you search for the LheAnalysis tool in the CERN Twiki it can help you?
  5. Dec 1, 2016 #4
    I see.. Thank you !

    I didn't have a clue about it, thanks a lot!
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted