Bug #892
Incorrect beam Energy
0%
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
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
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.
Updated by Rogers, Chris almost 12 years ago
Sounds like a bug - confusing 'p' with 'energy'. Will check...
Updated by Rogers, Chris almost 12 years ago
- File energy_distro.png energy_distro.png added
- File datacard_rogers datacard_rogers added
- File plot_energy.py plot_energy.py added
Looks okay to me... using attached datacard_rogers (I changed the geometry to a test geometry) and plotting script
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)
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.
Updated by Rogers, Chris almost 12 years ago
- Status changed from Closed to Rejected
- % Done changed from 100 to 0
No problem