Extract parton-level information from hepmc files?
I generated di-leptonic ttbar events with MadGraph_aMC@NLO 3.5.3 and the following config:
```
import model sm
# define process
define l+ = e+ mu+
define nu = vl vl~
generate p p > t t~, t > l+ vl b, t~ > l- vl~ b~
output output
launch
# simulation after hard process
shower=Pythia8
detector=off
done
# set run parameters
set run_card run_tag main
set run_card nevents 1000
set run_card iseed 0
set run_card lpp1 1 # proton beam
set run_card lpp2 1 # proton beam
set run_card ebeam1 6500
set run_card ebeam2 6500
# set pythia parameters
set pythia8_card PartonLevel:MPI off
set pythia8_card PartonLevel:ISR on
set pythia8_card PartonLevel:FSR off
set pythia8_card HadronLevel:all on
```
I want to extract parton-level information for these events and I want to do this preferably from the hepmc file (aided by particle status codes). Or actually from the particle branch of a Delphes root file, which does however have the same structure and contents. There are two reasons for this:
1. There seems to be no official way of reading lhe files (except for maybe pylhe, but I would like to do everything in my existing c++ script if possible).
2. I am using standalone pythia for event generation as well and I would like to have a common workflow after the parton-level generation step.
For standalone pythia the parton-level extraction works fine, however for MadGraph there are some events where I have a top with three direct children (bottom, lepton, neutrino) without an intermediate W. This makes parton-level extraction difficult, since the hepmc structure is hard to predict like this.
My question is: Is this expected (e.g. because this is an event with a very short W lifetime) or should the vertices in the HepMC file always be "physical"? Is there a recommended and robust way for extracting parton-level information?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Jona Ackerschott
- Solved:
- Last query:
- Last reply: