Fork me on GitHub

Ticket #1142 (closed How to: fixed)

Opened 6 weeks ago

Last modified 4 weeks ago

Convert .hepmc to .root confirmation

Reported by: Krunal Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc: kbgedia24@…
Blocked By: Blocking:

Description

I have .hepmc file which is generated by Pythia8 which is interfaced with Madgraph5. I wanted to convert this .hepmc file to .root file. I saw that Dephes has this converter. I just wished to know that is the conversion done correctly even for .hepmc files which deal with particle shower Pythia 8 file (i.e it does not have any reconstructed events in the file)?

Change History

comment:1 Changed 6 weeks ago by Krunal

  • Cc kbgedia24@… added

comment:2 follow-up: ↓ 3 Changed 6 weeks ago by mselvaggi

Hi,

if you simply want to convert hepmc you can use the cards/converter_card.tcl, where you replace:

https://github.com/delphes/delphes/blob/master/cards/converter_card.tcl#L15

by

  add Branch Delphes/allParticles Particle GenParticle

Michele

comment:3 in reply to: ↑ 2 Changed 6 weeks ago by Krunal

Replying to mselvaggi:

Hi,

if you simply want to convert hepmc you can use the cards/converter_card.tcl, where you replace:

https://github.com/delphes/delphes/blob/master/cards/converter_card.tcl#L15

by

  add Branch Delphes/allParticles Particle GenParticle

Michele

Hi Michele,

Thank you for the reply. Also, I wished to know that since there are cards which also allow interfacing with Fastjet while conversion, can I run fastjet in Anti-kt algorithm or in kt algorithm?

Best regards,

comment:4 follow-up: ↓ 5 Changed 6 weeks ago by mselvaggi

Hi,

if you want Fastjet clustering then I suggest you use the delphes_card_CMS for instance, and access the so-called GenJet collection, which clusters stables particles without detector effect.

Michele

comment:5 in reply to: ↑ 4 Changed 6 weeks ago by Krunal

Replying to mselvaggi:

Hi,

if you want Fastjet clustering then I suggest you use the delphes_card_CMS for instance, and access the so-called GenJet collection, which clusters stables particles without detector effect.

Michele


Hi Michele,

Thank you for the quick reply! I tried that but I guess it uses "T. Chan's closest pair algorithm". Is it possible to use sequential algorithms like anti-kt?

Best regards,

comment:7 in reply to: ↑ 6 Changed 6 weeks ago by Krunal

Replying to mselvaggi:

No, it uses anti-kT:

https://github.com/delphes/delphes/blob/master/cards/delphes_card_CMS.tcl#L606-L616

Hi Michele,

Thank you! It solves my problem perfectly.

Best regards,

comment:8 Changed 4 weeks ago by pavel

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.