Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 8, 2023
1 parent b4984f9 commit 55492be
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pipeline/metadata/solarFlux/solarPlotHiddenPhoton.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@
parser.add_argument(
"--N", dest="samples", type=int, help="The number of generated particles"
)
parser.add_argument(
"--mass", dest="mass", type=float, help="Hidden photon mass [eV]"
)
parser.add_argument("--mass", dest="mass", type=float, help="Hidden photon mass [eV]")

args = parser.parse_args()

mass = 10 # eV
mass = 10 # eV
if args.mass != None:
mass = args.mass

Expand Down Expand Up @@ -94,14 +92,14 @@

comb_spt = TH2D("comb_spt", "Energy versus solar radius", 20000, 0, 20, 100, 0, 1)
for x in range(samples):
x = combinedFlux.GetRandomEnergyAndRadius((-1,-1))
x = combinedFlux.GetRandomEnergyAndRadius((-1, -1))
comb_spt.Fill(x[0], x[1])

rnd = TRandom3(0)
solarDisk = TH2D("solar_disk", "SolarDisk", 120, -1.2, 1.2, 120, -1.2, 1.2)
for x in range(samples):
angle = rnd.Rndm() * 2 * math.pi
x = combinedFlux.GetRandomEnergyAndRadius((-1,-1))
x = combinedFlux.GetRandomEnergyAndRadius((-1, -1))
solarDisk.Fill(x[1] * math.cos(angle), x[1] * math.sin(angle))

pad1.cd(1)
Expand Down

0 comments on commit 55492be

Please sign in to comment.