Fork me on GitHub

Opened 8 years ago

Closed 8 years ago

#1069 closed How to (fixed)

fUniqueID issue

Reported by: namgyun Owned by:
Priority: major Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description (last modified by Pavel Demin)

Hello, I am Nam

Now I am trying to read fUniqueID.

Actually, I would like to read Mother particles information, in the macro, when I require like this

GenParticle *part = (GenParticle*) branchParticle->At(multi);)
cout<<part.M1<<endl;

I receive the number or barcode, I guess, this is related with fUniqueID.
So, I would like to check GenParticles Mother particles.

Do you have any idea? Could you help me?

-Nam

Change History (3)

comment:1 by Pavel Demin, 8 years ago

Description: modified (diff)

comment:2 by Pavel Demin, 8 years ago

Hello Nam,

part.M1 is an array index of the mother particle. So, accessing the mother particles can be done with the following code:

GenParticle *mother = 0;
GenParticle *part = (GenParticle*) branchParticle->At(multi);
if(part.M1 >= 0) mother = (GenParticle*) branchParticle->At(part.M1);

Best regards,

Pavel

comment:3 by Pavel Demin, 8 years ago

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