-
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
implementation of WH(tautau) analysis #216
Conversation
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.
Some smaller remarks; the rest looks fine ! (although I did not check the triple selection code, since you are the only user of it ;) )
src/lorentzvectors.cxx
Outdated
return ROOT::Math::PtEtaPhiEVector(default_float,default_float,default_float, | ||
default_float);; | ||
auto dileptonsystem = p4_1 + p4_2; | ||
auto dileptonsystem_scaled = 0.47*dileptonsystem; |
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.
why not use a more generic implementation, where you can configure this correction factor ? From what I see, the lt and tt functions are identical apart from the 0.47 and the 0.69
src/quantities.cxx
Outdated
/// | ||
/// \returns a dataframe with the new column | ||
|
||
ROOT::RDF::RNode Lt(ROOT::RDF::RNode df, const std::string &outputname, |
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.
choose a more descriptive name like sum_pts()
src/quantities.cxx
Outdated
/// | ||
/// \returns a dataframe with the new column | ||
|
||
ROOT::RDF::RNode eta_vis(ROOT::RDF::RNode df, const std::string &outputname, |
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.
a more descriptive name, maybe pair_eta ?
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.
I think it is more consistent to use eta_vis and phi_vis, since we have also m_vis and pt_vis
src/quantities.cxx
Outdated
/// | ||
/// \returns a dataframe with the new column | ||
|
||
ROOT::RDF::RNode phi_vis(ROOT::RDF::RNode df, const std::string &outputname, |
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.
same as above
add generic implementation to combine an arbitrary number of 4 vectors
src/lorentzvectors.cxx
Outdated
const ROOT::Math::PtEtaPhiMVector &p4_2) { | ||
if (p4_1.pt() < 0.0 || p4_2.pt() < 0.0) | ||
return ROOT::Math::PtEtaPhiEVector(default_float,default_float,default_float, | ||
[p4_miss_sf](const ROOT::Math::PtEtaPhiMVector &p4_23) { |
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.
use general names here: scale and p4 should be fine
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.
👍🏼
No description provided.