Skip to content
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

Add check for TriggerWord being set #311

Open
wants to merge 1 commit into
base: Application
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion UserTools/EventSelector/EventSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ 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.");
return false;
}
m_variables.Get("SaveStatusToStore", fSaveStatusToStore);
m_variables.Get("IsMC",fIsMC);
m_variables.Get("RecoPDG",fRecoPDG);
Expand Down
Loading