Skip to content

Commit

Permalink
Add check for TriggerWord being set (#311)
Browse files Browse the repository at this point in the history
* Add check for TriggerWord being set

* Set StopLoop to 1 when failed to get TriggerWord
  • Loading branch information
rory42edwards authored Nov 15, 2024
1 parent 2e1e018 commit eff6d84
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion UserTools/EventSelector/EventSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ bool EventSelector::Initialise(std::string configfile, DataModel &data){
m_variables.Get("NoVeto",fNoVetoCut);
m_variables.Get("Veto",fVetoCut);
m_variables.Get("ThroughGoing",fThroughGoing);
m_variables.Get("TriggerWord",fTriggerWord);
bool got_trigger_word = m_variables.Get("TriggerWord",fTriggerWord);
if (!got_trigger_word) {
Log("EventSelector Tool: Woah there, buddy! We set TriggerWord around these parts. Come back when you've done that. \n If you're not sure what they might need to be, check out Table 3.6 in Michael Nieslony's thesis.");
m_data->vars.Set("StopLoop",1);
return false;
}
m_variables.Get("SaveStatusToStore", fSaveStatusToStore);
m_variables.Get("IsMC",fIsMC);
m_variables.Get("RecoPDG",fRecoPDG);
Expand Down

0 comments on commit eff6d84

Please sign in to comment.