Fork me on GitHub

Opened 7 years ago

Closed 7 years ago

#1142 closed How to (fixed)

Convert .hepmc to .root confirmation

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

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 (8)

comment:1 by Krunal Gedia, 7 years ago

Cc: kbgedia24@… added

comment:2 by Michele Selvaggi, 7 years ago

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

in reply to:  2 comment:3 by Krunal Gedia, 7 years ago

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 by Michele Selvaggi, 7 years ago

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

in reply to:  4 comment:5 by Krunal Gedia, 7 years ago

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,

in reply to:  6 comment:7 by Krunal Gedia, 7 years ago

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 by Pavel Demin, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.