LesHouchesEvents: how to read .lhe file

  • Thread starter Thread starter CoronaBorealis
  • Start date Start date
  • Tags Tags
    File
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 4K views
CoronaBorealis
Messages
2
Reaction score
0
Hello,

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
 
Physics news on Phys.org
CoronaBorealis said:
Hello,

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
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.
 
phinds said:
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.
I see.. Thank you !

ChrisVer said:
maybe if you search for the LheAnalysis tool in the CERN Twiki it can help you?
I didn't have a clue about it, thanks a lot!