Skip to content

Commit

Permalink
Merge pull request #53 from NNPDF/pol_pos
Browse files Browse the repository at this point in the history
Polarized positivity
  • Loading branch information
giacomomagni authored Dec 11, 2023
2 parents 12c7966 + 73e353b commit 37e89b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pinefarm/external/positivity.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def generate_pineappl(self):
self.pid = self.runcard["pid"]
self.q2 = self.runcard["q2"]
self.hadron_pid = self.runcard["hadron_pid"]
self.polarized = self.runcard.get("polarized", "False")

# init pineappl objects
lumi_entries = [pineappl.lumi.LumiEntry([(self.pid, self.lepton_pid, 1.0)])]
Expand Down Expand Up @@ -72,6 +73,7 @@ def generate_pineappl(self):
grid.set_key_value("initial_state_2", str(self.lepton_pid))
grid.set_key_value("runcard", json.dumps(self.runcard))
grid.set_key_value("lumi_id_types", "pdg_mc_ids")
grid.set_key_value("polarized", self.polarized)
grid.optimize()
grid.write(str(self.grid))

Expand Down

0 comments on commit 37e89b9

Please sign in to comment.