Mass invarint of ttbar pair by Pythia

  • Context: Graduate 
  • Thread starter Thread starter Safinaz
  • Start date Start date
  • Tags Tags
    Mass Pair
Click For Summary

Discussion Overview

The discussion revolves around calculating and plotting the invariant mass distribution of a top-antitop (ttbar) pair using Pythia in proton-proton collisions. Participants are addressing issues related to programming in C++ and the correct implementation of the algorithm to extract the desired mass distribution from event data.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes their attempt to create a C++ program to calculate the ttbar pair mass invariant distribution from Pythia-generated events, noting that nothing is displayed in the histogram.
  • Another participant suggests adding debug output in the event loop to identify issues and points out that the indentation of the code is messy.
  • A participant questions the logic used to check for pairs of particles, indicating that the current condition may not correctly identify a top-antitop pair.
  • There is a discussion about the importance of including the W bosons in the mass calculation, with one participant proposing a method to track the top quark in the event loop.
  • Another participant suggests a more precise condition for checking the presence of both a b-quark and a b-bar quark in the event.
  • A participant expresses a willingness to explore other tools for the calculation due to their current limitations in C++ programming.

Areas of Agreement / Disagreement

Participants express differing views on the correct approach to calculating the invariant mass, particularly regarding the inclusion of W bosons and the logic for identifying particle pairs. The discussion remains unresolved with multiple competing perspectives on the implementation details.

Contextual Notes

Participants highlight potential limitations in the current code, including assumptions about particle identification and the need for clearer logic in the event loop. There are also unresolved questions about the handling of particle decays and the overall structure of the program.

Who May Find This Useful

This discussion may be useful for individuals interested in particle physics simulations, programming with Pythia, and those seeking to understand the complexities of calculating invariant masses in high-energy physics events.

Safinaz
Messages
255
Reaction score
8
Hi all,

I'm not so expert in C++, but I try to make a a simple program to calculate
and plot the ttbar pair mass invariant distributtion by pythia in pp collition
(pp -> ttbar), taking the events from .lhe file in pythia exampls.

Now about the program attached here , i made the steps as following but
nothing shown in the Histogram .. may be there is some thing wrong in the loop ..
the steps :

- booked the Histogram
- start the event loop
- defined t , tbar
-start the particle loop
- make a contour to find the pairs
- calculate the invM.

So any help about that ? to know how to make such program
if anyone knows about pythia ..

Thank you,
Safinaz
 

Attachments

Physics news on Phys.org
for (int iEvent = 0; iEvent<100; ++iEvent)
I would expect {}-brackets for this loop.
If that is not the issue, add debug output in the loop (This should always be the first step if you cannot spot the issue). Do you get something meaningful from pythia? Do you get something meaningful for the histogram entry?

The indentation is really messy.

if (N + n > 1) {
This does not check for pairs, two b without a bbar pass this test as well (okay, that is rare).

What happened to the W boson from the top decay?
 
Hi,

The ask about W boson, i think you mean we should to take into account the decay of the first generation
particles, so i defined before the particle loop a variable "iTop " and inside the loop
" if (pythia.event.id() == 6) iTop = i;" , i think that should work,

If : if (N+n >1) { --} dosn't account for the pair , what could be the probable loop ? or how to calculate the mass of these pairs ?

S.
 
Your topic is "invariant mass of ttbar pair", but you calculate a mass based on b-quarks. As far as I can see, you are missing the energy and momentum of the two W.

"if (N+n >1)" -> "if (N >0 && n>0)"
Just check if both a b and a bbar are present in the event.
 
Hi,

Any way thank you for your comments, i may use another tool to do this calculation until i know better in c++.S.
 

Similar threads

  • · Replies 0 ·
Replies
0
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 0 ·
Replies
0
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 2 ·
Replies
2
Views
471
  • · Replies 42 ·
2
Replies
42
Views
8K
Replies
7
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 8 ·
Replies
8
Views
4K