Fork me on GitHub

Opened 11 months ago

Closed 7 months ago

#1306 closed How to (fixed)

Including PDF reweights in ROOT tree

Reported by: kmcg Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: weights, reweight Cc:



I'm trying to study the effect of PDF uncertainties on samples generated with MadGraph? and Sherpa. With MadGraph?, for example, I generate 145 weights per event from scale and PDF variations. These weights are present under the Rwgt.Weights branch of my LHE file, and I can see all the weights in my HEPMC file, but in the Delphes ROOT file all I have are the weights in the Events.Weights branch, which comprises one weight per event. Is there something I can add to the Delphes card to carry over all weights from the HEPMC file to the Delphes ROOT tree?

Thanks a lot.

Change History (4)

comment:1 Changed 10 months ago by pavel

Currently, the branch with multiple weights is present in the .root files produced by DelphesCMSFWLite, DelphesLHEF and DelphesPythia8.

It's possible to add the branch with multiple weights to DelphesHepMC. DelphesHepMC.cpp and DelphesHepMCReader.* should be modified similarly to DelphesLHEF.cpp and DelphesLHEFReader.*.

comment:2 Changed 10 months ago by pavel

The modified DelphesHepMC.cpp and DelphesHepMCReader.* files are now in the git repository:

comment:3 Changed 10 months ago by kmcg

Hi Pavel,

Thanks so much! This solved my problem.

comment:4 Changed 7 months ago by pavel

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