Skip to content

Commit 73fdf42

Browse files
authored
Update taggingHFE.cxx
1 parent 2a16ce7 commit 73fdf42

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGEM/Dilepton/Tasks/taggingHFE.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <string>
1818
#include <array>
1919
#include <utility>
20+
#include <iostream>
2021

2122
#include "Math/Vector4D.h"
2223
#include "Framework/runDataProcessing.h"
@@ -1369,6 +1370,9 @@ struct taggingHFE {
13691370
if (cfgEventGeneratorType >= 0 && mcCollision.getSubGeneratorId() != cfgEventGeneratorType) {
13701371
continue;
13711372
}
1373+
if (!(genD0.isPhysicalPrimary() || genD0.producedByGenerator())) {
1374+
continue;
1375+
}
13721376
if ((isSemiLeptonic<11, -12>(genD0, mcParticles) || isSemiLeptonic<-11, 12>(genD0, mcParticles))) {
13731377
float ptE = 999.f, ptK = 999.f;
13741378
float etaE = 999.f, etaK = 999.f;

0 commit comments

Comments
 (0)