-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample scripts for validating future samples #1216
Changes from 1 commit
043c3f1
91d70ed
bd0ebe5
909d2b2
b407ba3
73497ed
c376dfa
b3f0073
7feeeff
e141757
26bbe9d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,9 +36,7 @@ namespace dqm { | |
if (parent_track_id == 0) { | ||
histograms_.fill("pdgid_primaries", pdgid_label(pdgid)); | ||
histograms_.fill("energy_primaries", energy); | ||
if (energy > 4001) { | ||
hard_thresh = 5000; | ||
} | ||
hard_thresh = (2500/4000)*energy; | ||
primary_daughters = daughters; | ||
for (const ldmx::SimTrackerHit &sphit : targetSPHits) { | ||
if (sphit.getTrackID() == it.first && sphit.getPosition()[2] < 0) { | ||
|
@@ -89,7 +87,7 @@ namespace dqm { | |
} | ||
|
||
int SampleValidation::pdgid_label(const int pdgid) { | ||
int label = 0; | ||
int label = 18; | ||
if (pdgid == -11) label = 1; // e+ | ||
|
||
if (pdgid == 11) label = 2; // e- | ||
|
@@ -118,11 +116,11 @@ namespace dqm { | |
|
||
if (pdgid == 310) label = 14; // K-Short | ||
|
||
if (pdgid > 2300) label = 16; //exotic (e.g., baryon with strangeness) | ||
if (pdgid == 3122 || pdgid == 3222 || pdgid == 3212 || pdgid == 3112 || pdgid == 3322 || pdgid == 3312) label = 16; // strange baryon | ||
|
||
if (pdgid > 10000) label = 15; //nuclei | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it worth differentiating between general nuclei and light ions here? The production of alpha, deuterium, and tritium from PN interactions is non-trivial. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can include this distinction since I meant for the label to mainly catch remnants of a tungsten explosion. Do you think "light"/"heavy" nuclei is granular enough, with "light" being only hydrogen or helium nuclides? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The bertini cascade will attempt to take nucleons being ejected from the cascade that are "similar" and bunch them together into deuterium, tritium, alpha (called "Coalescence") so you can get these even for quite ordinary interactions. There is a version of a test for what counts as a light ion here (that probably should live somewhere else...) |
||
|
||
if (pdgid == 622) label = 17; // dark photon | ||
if (pdgid == 622) label = 17; // dark photon, need pdg id for other models like ALPs and SIMPs | ||
|
||
return label; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! Just add a comment that this is a catch-all/overflow bin for code readability