more decimal point on the cross section

Asked by Hwidong Yoo

Dear experts,

I am using CalcHep to generate BSM events with LHE output (using the calchep_batch). In the output of LHE file, there is cross section information like

<crossSection unit="pb">0.000001</crossSection>

An issue is the precision of the cross section is not as high as I need and it would be great if I have more decimal point like 0.000001xxx for example. I wonder where I can handle in the program. Thanks in advance.

Regards,
Hwidong

Question information

Language:
English Edit question
Status:
Answered
For:
CalcHEP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alexander Pukhov (pukhov) said :
#2

Sorry! I was sure we have replied.

It is rather easy. Please open file c_source/mix_events/event2lhe.c and at line 82 replace %f format on %E one.

<crossSection unit=\"pb\">%f</crossSection>\n",Finfo->cs); => <crossSection unit=\"pb\">%E</crossSection>\n",Finfo->cs);

The same about
event_mixer.c line 122
and
event_mixer.c line 231

Thank you for your note. I'll implement corresponding corrections in next oficial version.

Alexander Pukhov

Revision history for this message
Alexander Belyaev (alexander.belyaev) said :
#3

Your question was answered,
did this solve your problem?

Can you help with this problem?

Provide an answer of your own, or ask Hwidong Yoo for more information if necessary.

To post a message you must log in.