Project

General

Profile

Bug #892

Incorrect beam Energy

Added by Kyberd, Paul almost 12 years ago. Updated almost 12 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Simulation
Target version:
Start date:
02 February 2012
Due date:
% Done:

0%

Estimated time:
Workflow:
New Issue

Description

Running with a datacard file including
simulation_reference_particle = {
"position":{"x":0.0, "y":-0.0, "z":-5500.0},
"momentum":{"x":0.0, "y":0.0, "z":1.0},
"particle_id":-13, "energy":226.0, "time":0.0, "random_seed":10

The energy shown in the structure ['mc']['primary']['energy'] is 210


Files

datacard (8.43 KB) datacard Kyberd, Paul, 02 February 2012 08:32
energy_distro.png (5.54 KB) energy_distro.png Rogers, Chris, 02 February 2012 08:39
datacard_rogers (8.43 KB) datacard_rogers Rogers, Chris, 02 February 2012 08:39
plot_energy.py (154 Bytes) plot_energy.py Rogers, Chris, 02 February 2012 08:39
#1

Updated by Rogers, Chris almost 12 years ago

  • Project changed from Analysis to MAUS
#2

Updated by Rogers, Chris almost 12 years ago

  • Category set to Simulation
  • Assignee set to Rogers, Chris
  • Target version set to Future MAUS release
  • Workflow set to New Issue

Can you give me the full datacards file? cheers

#3

Updated by Kyberd, Paul almost 12 years ago

When the input energy is changed to 250 the beam energy takes a number of values all around 225.

#4

Updated by Rogers, Chris almost 12 years ago

Sounds like a bug - confusing 'p' with 'energy'. Will check...

#5

Updated by Rogers, Chris almost 12 years ago

Looks okay to me... using attached datacard_rogers (I changed the geometry to a test geometry) and plotting script

#6

Updated by Rogers, Chris almost 12 years ago

And just to confirm - the primaries in the file that I can see all have

{u'random_seed': 953453411, u'energy': 226.0, u'particle_id': -13, u'time': 0.0, u'position': {u'y': -0.0, u'x': 0.0, u'z': -5500.0}, u'momentum': {u'y': 0.0, u'x': 0.0, u'z': 199.7806535307077}}

(u means unicode)

#7

Updated by Kyberd, Paul almost 12 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Having regenerated the file I agree with you. Must have made a mistake when I generated the original file.

#8

Updated by Rogers, Chris almost 12 years ago

  • Status changed from Closed to Rejected
  • % Done changed from 100 to 0

No problem

Also available in: Atom PDF