-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Produce sMajor, sMinor in EgammaHLTClusterShapeProducer #43885
Produce sMajor, sMinor in EgammaHLTClusterShapeProducer #43885
Conversation
cms-bot internal usage |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38741
|
A new Pull Request was created by @swagata87 (Swagata Mukherjee) for master. It involves the following packages:
@cmsbuild, @mmusich, @Martin-Grunewald can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
type egamma |
|
||
reco::CaloClusterPtr SCseed = recoecalcandref->superCluster()->seed(); | ||
const EcalRecHitCollection* rechits = | ||
(std::abs(recoecalcandref->eta()) < 1.479) ? rechitsEB_.product() : rechitsEE_.product(); |
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.
Further up in this file there is a line:
if (EtaSC > 1.479)
should that be std::abs(EtaSC)
as this variable is also a recoecalcandref->eta()
?
Ie double EtaSC = std::abs(recoecalcandref->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.
this could be a bug;
but the else {
loop where this potential bug lives, is not used anywhere in egamma HLT.
So even if it is a bug it can be ignored.
I can't confirm if it's a bug as I don't know what this is actually doing:
if (EtaSC > 1.479)
sigmaee = sigmaee - 0.02 * (EtaSC - 2.3);
}
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.
Would it be OK to remove the else
branch and put the then
branch to be executed always?
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.
yes I think it's better to remove it as a cleanup.
I'm talking to EGM POG just to make sure they agree.
I will get back to this.
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.
(After a chat with Riccardo S.) removed the else loop, as sigmaEtaEta etc is obsolete and not used anymore in favor of the better variable like sigmaIEtaIEta etc.
@cms-sw/egamma-pog-l2
@DebabrataBhowmik
@ravindkv
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.
Could you please backport to 14_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.
Do we need a backport? The main aim of this PR is to be able to perform phase2 HLT studies easily, using the 2 variables sMajor and sMinor. It's not that much needed for Run3 actually.
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.
According to the PPD schedule, 14_0 is to be used for the Phase-2 MC campaign:
https://docs.google.com/spreadsheets/d/1XqkT_HYs04ZbLKs7k4SyPZ9DcNfN7ZmHQxv2I_iI-Hw/edit#gid=402259138
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.
ah okay, thanks Martin. I will make a backport to 14_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.
Backport PR is made here: #43908
-code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38744
Code check has found code style and quality issues which could be resolved by applying following patch(s)
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38746
|
Pull request #43885 was updated. @Martin-Grunewald, @mmusich, @cmsbuild can you please check and sign again. |
please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8f3bfa/37274/summary.html Comparison SummarySummary:
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38792
|
Pull request #43885 was updated. @Martin-Grunewald, @cmsbuild, @mmusich can you please check and sign again. |
@cmsbuild please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-43885/38793
|
Pull request #43885 was updated. @Martin-Grunewald, @mmusich can you please check and sign again. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8f3bfa/37342/summary.html Comparison SummarySummary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @antoniovilela, @sextonkennedy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
PR description:
Produce sMajor, sMinor via EgammaHLTClusterShapeProducer in ECAL. These variables are useful for displaced e/gamma HLT path. In phase2, we would like to add some displaced e/gamma paths where we would like to cut on these variables. This PR is to enable such studies easily for Phase2 HLT.
PR validation:
runTheMatrix.py -l 24834.0
worked fine.Additionally, checked that we are getting reasonable values for sMajor, sMinor. This check was done from Phase2 EGamma HLT setup, using this root file:
These are the histograms for sMajor and sMinor, for barrel, at HLT
PS: Took this opportunity to do some cleanup. Removed sigmaEtaEta type variables as they are obsolete.