LesHouchesEvents: how to read .lhe file

  • Thread starter Thread starter CoronaBorealis
  • Start date Start date
  • Tags Tags
    File
Click For Summary

Discussion Overview

The discussion revolves around extracting initial and final momentum values from a .lhe file related to the u u > u u interaction. Participants explore methods for filtering out unnecessary information from the file, such as the MG5 Proc card and warnings.

Discussion Character

  • Technical explanation, Homework-related

Main Points Raised

  • One participant expresses uncertainty about how to extract specific momentum values from a .lhe file and considers writing a C++ program to manage the data.
  • Another participant suggests that reading the entire file and then filtering out the unwanted information is a standard approach.
  • A third participant proposes searching for the LheAnalysis tool in the CERN Twiki as a potential resource for assistance.
  • There are repeated suggestions regarding the normal method of handling .lhe files, emphasizing the importance of retaining only the desired data.

Areas of Agreement / Disagreement

Participants generally agree on the approach of reading the entire file and filtering the data, but there is no consensus on specific methods or tools to use for this task.

Contextual Notes

Participants do not clarify the specific programming techniques or libraries that may be useful for extracting the data, nor do they provide detailed steps for implementation.

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
 
Technology 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.
 
maybe if you search for the LheAnalysis tool in the CERN Twiki it can help you?
 
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!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 9 ·
Replies
9
Views
4K
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
Replies
81
Views
8K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
7
Views
3K