@@ -178,18 +178,18 @@ int createO2tables(const char* inputFile = "delphes.root",
178178 if (IsSecondary (particles , iparticle )) {
179179 mcparticle .fFlags |= 1 ;
180180 }
181- mcparticle .fMother0 = particle -> M1 ;
182- if (mcparticle .fMother0 > -1 )
183- mcparticle .fMother0 += fOffsetLabel ;
184- mcparticle .fMother1 = particle -> M2 ;
185- if (mcparticle .fMother1 > -1 )
186- mcparticle .fMother1 += fOffsetLabel ;
187- mcparticle .fDaughter0 = particle -> D1 ;
188- if (mcparticle .fDaughter0 > -1 )
189- mcparticle .fDaughter0 += fOffsetLabel ;
190- mcparticle .fDaughter1 = particle -> D2 ;
191- if (mcparticle .fDaughter1 > -1 )
192- mcparticle .fDaughter1 += fOffsetLabel ;
181+ mcparticle .fIndexMcParticles_Mother0 = particle -> M1 ;
182+ if (mcparticle .fIndexMcParticles_Mother0 > -1 )
183+ mcparticle .fIndexMcParticles_Mother0 += fOffsetLabel ;
184+ mcparticle .fIndexMcParticles_Mother1 = particle -> M2 ;
185+ if (mcparticle .fIndexMcParticles_Mother1 > -1 )
186+ mcparticle .fIndexMcParticles_Mother1 += fOffsetLabel ;
187+ mcparticle .fIndexMcParticles_Daughter0 = particle -> D1 ;
188+ if (mcparticle .fIndexMcParticles_Daughter0 > -1 )
189+ mcparticle .fIndexMcParticles_Daughter0 += fOffsetLabel ;
190+ mcparticle .fIndexMcParticles_Daughter1 = particle -> D2 ;
191+ if (mcparticle .fIndexMcParticles_Daughter1 > -1 )
192+ mcparticle .fIndexMcParticles_Daughter1 += fOffsetLabel ;
193193 mcparticle .fWeight = 1. ;
194194
195195 mcparticle .fPx = particle -> Px ;
0 commit comments