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

Don't require signal processes to have a mass #663

Open
ajgilbert opened this issue Sep 25, 2015 · 0 comments
Open

Don't require signal processes to have a mass #663

ajgilbert opened this issue Sep 25, 2015 · 0 comments
Assignees

Comments

@ajgilbert
Copy link
Contributor

When creating the mapping rules should check if mass is convertible to float and if not don't put $MASS in the pattern:

CombineHarvester ch_signals =
std::move(this->cp().bin({bin}).signals().histograms());
auto sig_proc_set =
ch_signals.SetFromProcs(std::mem_fn(&ch::Process::process));
for (auto sig_proc : sig_proc_set) {
mappings.emplace_back(sig_proc, bin, bin + "/" + sig_proc + "$MASS",
bin + "/" + sig_proc + "$MASS_$SYSTEMATIC");
}
}

@ajgilbert ajgilbert self-assigned this Sep 25, 2015
@ajgilbert ajgilbert added this to the CH September Update milestone Sep 25, 2015
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

No branches or pull requests

1 participant