Skip to content

Added GR and shield veto functionality#114

Open
parshadkp wants to merge 9 commits intocositools:develop/emfrom
parshadkp:develop/em-dee-triggers
Open

Added GR and shield veto functionality#114
parshadkp wants to merge 9 commits intocositools:develop/emfrom
parshadkp:develop/em-dee-triggers

Conversation

@parshadkp
Copy link
Copy Markdown

@parshadkp parshadkp commented Mar 23, 2026

GR and shield veto added. Checked response correctness by using a low energy and a high energy Cosima source. May need to update m_ShieldVetoWindowSize in the future.

This will close issue: #95.

Changed MModuleDEESMEX to set vetoes so that EventSaver ignores the events. Also fixed the veto window size requirement for shield triggers in shield trigger module by setting veto true within the veto window.
Checked shield veto works as expected for low and high energy sources. Removed print statement for m_NumShieldVetoCounts.
@parshadkp parshadkp requested a review from zoglauer March 23, 2026 17:57
@parshadkp parshadkp linked an issue Mar 23, 2026 that may be closed by this pull request
@parshadkp parshadkp mentioned this pull request Mar 23, 2026
@parshadkp parshadkp marked this pull request as draft March 24, 2026 16:36
parshadkp and others added 3 commits March 27, 2026 18:21
Co-authored-by: Felix Hagemann <hagemann@berkeley.edu>
These values are likely to change over time so keep them as values that can be passed in.
@parshadkp parshadkp marked this pull request as ready for review March 27, 2026 22:44
@parshadkp parshadkp requested a review from fhagemann March 27, 2026 22:44
@parshadkp
Copy link
Copy Markdown
Author

parshadkp commented Mar 27, 2026

GR and shield veto added. Checked response correctness by using a low energy and a high energy Cosima source. May need to update m_ShieldVetoWindowSize in the future.

This will close issue: #95.

Updated code to read m_ShieldVetoWindowSize from deadtime_Parameters.txt file, which can be easily changed. Also addressed Felix's comment in latest commit.

@parshadkp parshadkp requested a review from ckierans March 31, 2026 16:43

//! Get number of strip hits erased
int GetStripHitsErased() const { return m_StripHitsErased; }
// int GetStripHitsErased() const { return m_StripHitsErased; }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you comment on why you removed m_StripHitsErased and all associated functionalities? Will this be dealt with in another (sub)module?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No other modules uses this and this was only used for the printing at the end of the StripTriggerModule. This was just meant to be a diagnostic printout.

Comment on lines +181 to +188
// // Track which GeD detectors got hit (for later deadtime update)
// list<MDEEStripHit>& LVHits = Event->GetDEEStripHitLVListReference();
// for (const MDEEStripHit& Hit : LVHits) {
// int DetID = Hit.m_ROE.GetDetectorID();
// if (DetID >= 0 && DetID < nDets) {
// m_DetectorsHitForShieldVeto[DetID] = 1;
// }
// }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this commented? Do you plan on adding it back later (in a modified form)?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I will remove this permanently. This was leftover from old balloon code.

Co-authored-by: Felix Hagemann <hagemann@berkeley.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guard ring strip number

2 participants