Skip to content

Commit

Permalink
update with new embedding definition that negative embedding ID is us…
Browse files Browse the repository at this point in the history
…ed for pile up background collisions. sPHENIX-Collaboration/coresoftware#364
  • Loading branch information
blackcathj committed Oct 17, 2017
1 parent 2b4d667 commit f9054f2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Tracking/SvtxEvaluatorHaiwang/SvtxEvaluatorHaiwang.C
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ void SvtxEvaluatorHaiwang::fillOutputNtuples(PHCompositeNode *topNode) {
if (g4particle) {

if (_scan_for_embedded) {
if (trutheval->get_embed(g4particle) == 0) continue;
if (trutheval->get_embed(g4particle) <= 0) continue;
}

gflavor = g4particle->get_pid();
Expand Down Expand Up @@ -889,7 +889,7 @@ void SvtxEvaluatorHaiwang::fillOutputNtuples(PHCompositeNode *topNode) {
if (g4particle) {

if (_scan_for_embedded) {
if (trutheval->get_embed(g4particle) == 0) continue;
if (trutheval->get_embed(g4particle) <= 0) continue;
}

gtrackID = g4particle->get_track_id();
Expand Down Expand Up @@ -1133,7 +1133,7 @@ void SvtxEvaluatorHaiwang::fillOutputNtuples(PHCompositeNode *topNode) {
SvtxTrack* track = iter->second;
PHG4Particle* truth = trackeval->max_truth_particle_by_nclusters(track);
if (truth) {
if (trutheval->get_embed(truth) == 0) continue;
if (trutheval->get_embed(truth) <= 0) continue;
}

for (SvtxTrack::ConstClusterIter iter = track->begin_clusters();
Expand Down Expand Up @@ -1300,7 +1300,7 @@ void SvtxEvaluatorHaiwang::fillOutputNtuples(PHCompositeNode *topNode) {
PHG4Particle* g4particle = iter->second;

if (_scan_for_embedded) {
if (trutheval->get_embed(g4particle) == 0) continue;
if (trutheval->get_embed(g4particle) <= 0) continue;
}

float gtrackID = g4particle->get_track_id();
Expand Down Expand Up @@ -1554,7 +1554,7 @@ void SvtxEvaluatorHaiwang::fillOutputNtuples(PHCompositeNode *topNode) {
if (g4particle) {

if (_scan_for_embedded) {
if (trutheval->get_embed(g4particle) == 0) continue;
if (trutheval->get_embed(g4particle) <= 0) continue;
}

gtrackID = g4particle->get_track_id();
Expand Down

0 comments on commit f9054f2

Please sign in to comment.