-
Notifications
You must be signed in to change notification settings - Fork 487
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
PWGHF: new task for W/Z->e in mid-rapidity #7582
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
Co-authored-by: Vít Kučera <vit.kucera@cern.ch>
Dear Vit, |
recommitted after implementing suggestions by Vit |
Thanks @sashingo for implementing the comments. |
Hello, I think I address all the comments by Vit. |
Head branch was pushed to by a user without write access
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.
Hi @sashingo , thanks for implementing the comments. Please seem some further suggestions.
if (dPhi > o2::constants::math::PI) { | ||
dPhi -= 2 * o2::constants::math::PI; | ||
} else if (dPhi < -o2::constants::math::PI) { | ||
dPhi += 2 * o2::constants::math::PI; | ||
} |
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.
if (dPhi > o2::constants::math::PI) { | |
dPhi -= 2 * o2::constants::math::PI; | |
} else if (dPhi < -o2::constants::math::PI) { | |
dPhi += 2 * o2::constants::math::PI; | |
} | |
dPhi = RecoDecay::constrainAngle(dPhi, -o2::constants::math::PI); |
Requires including RecoDecay.h
.
registry.fill(HIST("hMatchPhi"), phiEmc, match.track_as<TrackEle>().phi()); | ||
registry.fill(HIST("hMatchEta"), etaEmc, match.track_as<TrackEle>().eta()); | ||
|
||
double R = std::sqrt(std::pow(dPhi, 2) + std::pow(dEta, 2)); |
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.
double R = std::sqrt(std::pow(dPhi, 2) + std::pow(dEta, 2)); | |
double r = RecoDecay::sqrtSumOfSquares(dPhi, dEta); |
Rmim = R; | ||
dPhi_mim = dPhi; | ||
dEta_mim = dEta; |
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.
Rmim = R; | |
dPhi_mim = dPhi; | |
dEta_mim = dEta; | |
rMin = r; | |
dPhiMin = dPhi; | |
dEtaMin = dEta; |
double dEta_mim = 999.9; | ||
|
||
if (tracksofcluster.size()) { | ||
int nmatch = 0; |
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.
int nmatch = 0; | |
int nMatch = 0; |
return WorkflowSpec{ | ||
adaptAnalysisTask<HfTaskElectronWeakBoson>(cfgc)}; |
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.
return WorkflowSpec{ | |
adaptAnalysisTask<HfTaskElectronWeakBoson>(cfgc)}; | |
return WorkflowSpec{adaptAnalysisTask<HfTaskElectronWeakBoson>(cfgc)}; |
Hi Vit, |
PWGHF: a new task for W/Z decay to electron in midrapidity in Run3