Skip to content

Commit fcf85d9

Browse files
author
Changhwan Choi
committed
Resolved OriginType comparison to literal int
1 parent 6bd68c1 commit fcf85d9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

PWGJE/Core/JetTaggingUtilities.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -997,8 +997,7 @@ int vertexClustering(AnyCollision const& collision, AnalysisJet const& jet, AnyT
997997
trkLabels["trkOrigin"].push_back(0); // mismatched coll track
998998
} else {
999999
int orig = RecoDecay::getParticleOrigin(particles, particle, searchUpToQuark);
1000-
trkLabels["trkOrigin"].push_back((orig > 0) ? orig : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3
1001-
: 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary
1000+
trkLabels["trkOrigin"].push_back((orig != RecoDecay::OriginType::None) ? static_cast<int>(orig) : (trkLabels["trkVtxIndex"][trkIdx] == 0) ? 3 : 4); // 1: charm, 2: beauty, 3: primary, 4: other secondary
10021001
}
10031002
}
10041003

0 commit comments

Comments
 (0)