From 95a53ec573effa79888a689c0ec1ad6132b0e7c8 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Tue, 24 Sep 2024 20:41:21 -0400 Subject: [PATCH] * fix indentation, no functional change [rtj] --- src/GlueXPrimaryGenerator.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/GlueXPrimaryGenerator.cc b/src/GlueXPrimaryGenerator.cc index 9981185..f02e12c 100644 --- a/src/GlueXPrimaryGenerator.cc +++ b/src/GlueXPrimaryGenerator.cc @@ -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();