No initial state particles

Asked by Sebastian Bruggisser

Dear all,

I am running an analysis in MA5 expert mode of some .hep files. The files are a result of a MadGraph/Pythia simulation. For my analysis I need access to initial state particles. However there don't seem to be any visible in MA5. Here is an example code I am using:

if (event.mc()!=0)
  {
    for (unsigned int i=0;i<event.mc()->particles().size();i++)
    {
      const MCParticleFormat& part = event.mc()->particles()[i];
      if (PHYSICS->Id->IsInitialState(part))
      {
         cout << "an initial state particle" << endl;
      }
    }
  }

which doesn't display anything (if I am only using final state particles of the same data set, everything is fine). Also I tried using

part.statuscode()

where I see that all particles are either final state particles (statuscode = 1) or intermediate states (statuscode 2 and 3).

Is there a way to recover the initial state particles?

Thanks in advance,
Sebastian

Question information

Language:
English Edit question
Status:
Solved
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Fuks
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Benjamin Fuks (fuks) said :
#2

Hi
I will have a look to the problem when back to my office on Monday.
Cheers
Benjamin

-------- Original message --------
From: Launchpad Janitor <email address hidden>
Date: 24/10/2015 10:28 (GMT+01:00)
To: <email address hidden>
Subject: Re: [Question #272216]: No initial state particles

Question #272216 on MadAnalysis 5 changed:
https://answers.launchpad.net/madanalysis5/+question/272216

    Status: Open => Expired

Launchpad Janitor expired the question:
This question was expired because it remained in the 'Open' state
without activity for the last 15 days.

--
You received this question notification because you are an answer
contact for MadAnalysis 5.

Revision history for this message
Best Benjamin Fuks (fuks) said :
#4

Hi Sebastian,

The problem is related to the way pythia6 works: it uses a status code of 3 for all the particles associated with the hard process in MadGraph. As a consequence, those particles are considered as intermediate by madanalysis 5 (since they have the statuscode 3). In order to access them, you may need to know that:
 - the particles 0 and 1 are the colliding protons;
 - the particles 2 an 3 are the colliding partons.
By modifying the code generated by madanalysis 5, you should then be able to get the information you want.

I hope this helps.

Cheers,

Benjamin

PS: the launchpad janitor is a robot… it is useless to ask it anything :)

On 08 Oct 2015, at 19:08 , Sebastian Bruggisser <email address hidden> wrote:

> New question #272216 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/272216
>
> Dear all,
>
> I am running an analysis in MA5 expert mode of some .hep files. The files are a result of a MadGraph/Pythia simulation. For my analysis I need access to initial state particles. However there don't seem to be any visible in MA5. Here is an example code I am using:
>
> if (event.mc()!=0)
> {
> for (unsigned int i=0;i<event.mc()->particles().size();i++)
> {
> const MCParticleFormat& part = event.mc()->particles()[i];
> if (PHYSICS->Id->IsInitialState(part))
> {
> cout << "an initial state particle" << endl;
> }
> }
> }
>
> which doesn't display anything (if I am only using final state particles of the same data set, everything is fine). Also I tried using
>
> part.statuscode()
>
> where I see that all particles are either final state particles (statuscode = 1) or intermediate states (statuscode 2 and 3).
>
> Is there a way to recover the initial state particles?
>
> Thanks in advance,
> Sebastian
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.

Revision history for this message
Sebastian Bruggisser (olessiologin) said :
#5

Hi Benjamin,

Great, that seems to work just fine.

Thanks allot.

Cheers,
Seb

PS: Yes I noticed with the launchpad janitor... Beginners mistake :-)

Revision history for this message
Sebastian Bruggisser (olessiologin) said :
#6

Thanks Benjamin Fuks, that solved my question.