Skip to content

Commit

Permalink
* fix indentation, no functional change [rtj]
Browse files Browse the repository at this point in the history
  • Loading branch information
rjones30 committed Sep 25, 2024
1 parent 57df3e6 commit 95a53ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/GlueXPrimaryGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,13 @@ void GlueXPrimaryGenerator::GeneratePrimaryVertex(G4Event *event)
double Etot = momentum.getE() * GeV;
G4PrimaryParticle *pp = new G4PrimaryParticle(part, px, py, pz, Etot);
hddm_s::PolarizationList polars = it_product->getPolarizations();
if (polars.size() > 0) {
hddm_s::PolarizationList::iterator polar = polars.begin();
if (polars.size() > 0) {
hddm_s::PolarizationList::iterator polar = polars.begin();
pp->SetPolarization(polar->getPx(), polar->getPy(), polar->getPz());
}
else {
}
else {
pp->SetPolarization(0, 0, 0);
}
}
vertex->SetPrimary(pp);
event_info->SetGlueXTrackID(++Nprimaries, trackId);
double mass = part->GetPDGMass();
Expand Down

0 comments on commit 95a53ec

Please sign in to comment.