Comments (4)
To solve this issue, I added this line to the functionand abs(particle.pid) == 13
to make it only go down the muon decay line:
def get_final_muon_descendant(particle):
"""
Get the final state muon descendant of a given particle.
"""
# Check if the particle itself is a final state muon
if particle.status == 1 and abs(particle.pid) == 13:
return particle
# If the particle is a muon and has an end vertex, check its descendants recursively
elif particle.end_vertex and abs(particle.pid) == 13:
for p in particle.end_vertex.particles_out:
final_muon = get_final_muon_descendant(p)
if final_muon is not None:
return final_muon
# If the particle is not a final state muon and does not have an end vertex, return None
return None
from llp_sleptons_rpv_susy.
This is the output after updating the code:
We are still getting the same muons with high Pt. I looked into the event with muon_Pt ~ 500 GeV
from llp_sleptons_rpv_susy.
Here is the event:
And here is the muon with Pt ~ 0.49 TeV:
As strange as it seems, it is pair produced by a photon!
The actual muon from the smuon decay is marked in green, the suspicious 0.49 TeV muon is circled in red
from llp_sleptons_rpv_susy.
@trholmes
Could you please take a look at this issue? This is the weird muon with pt ~0.5 TeV
I will look at the events with the other 7 muons that were not produced directly by a smuon decay and have pt> 65 GeV
from llp_sleptons_rpv_susy.
Related Issues (20)
- Fraction of surviving events
- Automation HOT 4
- Modifying the UFO Model Parameters. Tuesday 09/26 HOT 1
- Getting started
- Efficiencies as weights. October 3rd
- Selection cuts and efficiency code using weights
- Turning on Pythia via TXT Problem Solved BUT New SERF Problem HOT 1
- Oct 24 Update: Pythia Issues Resolved HOT 1
- For my own reference
- Weights
- Expected Events from Weights: Nov 21st HOT 1
- Tuesday Dec 5th
- Acceptance_Weights_Expected Gives Inaccurate Output HOT 1
- Wrong Units in .HEPMC File HOT 1
- Cutflow: pass trigger and at least 2 baseline leptons selection
- Condor Submission to and from EOS HOT 4
- Acceptance, Friday March 1st HOT 2
- Generation via CMVFS/LCG Source HOT 7
- Immortal Smuons HOT 1
- Fri Apr. 26 - 10 ns
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llp_sleptons_rpv_susy.